Skip to content

Commit

Permalink
Migrated BPM perspective
Browse files Browse the repository at this point in the history
Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
  • Loading branch information
StanZGenchev committed Jan 3, 2025
1 parent a7cff58 commit e51f0fc
Show file tree
Hide file tree
Showing 44 changed files with 1,778 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/group/group-platform-ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-perspective-security</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-perspective-processes</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-view-welcome</artifactId>
Expand Down
20 changes: 20 additions & 0 deletions components/platform-ide/perspective-processes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# folders
dist/
.settings/
target/
derby/
dirigible_local/

# files
.DS_Store
.project
.classpath
*.bak
*.class
*.jar
derby.log
/bin/
/target/
/target/
/target/
/target/
29 changes: 29 additions & 0 deletions components/platform-ide/perspective-processes/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>

<p>April 25, 2020</p>
<h3>License</h3>

<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 2.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>

<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>

</body>
</html>
21 changes: 21 additions & 0 deletions components/platform-ide/perspective-processes/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-parent</artifactId>
<version>11.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<name>Components - IDE - Processes - Perspective</name>
<artifactId>dirigible-components-perspective-processes</artifactId>
<packaging>jar</packaging>

<properties>
<license.header.location>../../../licensing-header.txt</license.header.location>
<parent.pom.folder>../../../</parent.pom.folder>
</properties>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-historic-process-instances-view',
label: 'Historic Process Instances',
region: 'left',
autoFocusTab: false,
path: '/services/web/perspective-processes/views/bpm-historic-process-instances.html',
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-image-viewer',
label: 'Process Inspector',
region: 'center',
lazyLoad: false,
autoFocusTab: true,
path: '/services/web/perspective-processes/views/bpm-image-viewer.html',
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const perspectiveData = {
id: 'bpm-workspace',
label: 'Processes Workspace',
path: '/services/web/perspective-processes/processes.html',
order: 820,
icon: '/services/web/perspective-processes/images/process.svg',
};
if (typeof exports !== 'undefined') {
exports.getPerspective = () => perspectiveData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-process-context-view',
label: 'Process Context',
region: 'bottom',
autoFocusTab: false,
path: '/services/web/perspective-processes/views/bpm-process-context.html',
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-process-definitions-view',
label: 'Process Definitions',
region: 'left',
autoFocusTab: false,
path: '/services/web/perspective-processes/views/bpm-process-definitions.html',
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-process-instances-view',
label: 'Process Instances',
region: 'left',
autoFocusTab: false,
path: '/services/web/perspective-processes/views/bpm-process-instances.html',
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-process-jobs-view',
label: 'Jobs Incidents',
region: 'bottom',
autoFocusTab: false,
path: '/services/web/perspective-processes/views/bpm-process-jobs.html',
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-user-task-details',
label: 'Process Task Details',
path: '/services/web/perspective-processes/dialogs/bpm-task-details.html'
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const viewData = {
id: 'bpm-user-tasks',
region: 'bottom',
label: 'User Tasks',
autoFocusTab: false,
path: '/services/web/perspective-processes/views/bpm-tasks.html'
};
if (typeof exports !== 'undefined') {
exports.getView = () => viewData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
exports.getMenu = () => ({
perspectiveId: 'bpm-workspace',
include: {
window: true,
help: true,
},
items: []
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!--
Copyright (c) 2010-2024 Eclipse Dirigible contributors
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
SPDX-FileCopyrightText: Eclipse Dirigible contributors
SPDX-License-Identifier: EPL-2.0
-->
<!DOCTYPE HTML>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" ng-app="taskDetails" ng-controller="TaskDetailsController">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" sizes="any" href="data:;base64,iVBORw0KGgo=">
<title dg-view-title></title>
<script type="text/javascript" src="services/bpm-tasks-details-window.js"></script>
<theme></theme>
<script type="text/javascript" src="/services/web/ide-bpm-workspace/services/bpm-task-details-window.js">
</script>
<script type="text/javascript" src="/services/js/resources-core/services/loader.js?id=ide-view-js"></script>
<link type="text/css" rel="stylesheet"
href="/services/js/resources-core/services/loader.js?id=ide-view-css" />
</head>

<body class="dg-vbox">
<fd-busy-indicator-extended class="dg-fill-parent" ng-hide="state.error || !state.isBusy" dg-size="l">
{{state.busyText}}
</fd-busy-indicator-extended>
<table fd-table outer-borders="none" display-mode="compact" class="dg-list-border-bottom">
<thead fd-table-header>
<tr fd-table-row></tr>
</thead>
<tbody fd-table-body>
<tr fd-table-row ng-repeat="prop in rows">
<td fd-table-cell><strong>{{ prop.name }}</strong></td>
<td fd-table-cell>{{ prop.value }}</td>
</tr>
</tbody>
</table>
<fd-message-page glyph="sap-icon--error" ng-if="state.error">
<fd-message-page-title>Editor encounterd an error!</fd-message-page-title>
<fd-message-page-subtitle>{{errorMessage}}</fd-message-page-subtitle>
</fd-message-page>

<script type="text/javascript">
angular.module('taskDetails', ['ideUI', 'ideView'])
.controller('TaskDetailsController', ['$scope', 'ViewParameters', function ($scope, ViewParameters) {
$scope.errorMessage = 'Аn unknown error was encountered. Please see console for more information.';
$scope.state = {
isBusy: true,
error: false,
busyText: "Loading...",
};
$scope.rows = [];
const props = [
['Operation type', 'operationType'],
['Email', 'email'],
['Created', 'createdAt'],
['Finished', 'isFinished']
];

$scope.dataParameters = ViewParameters.get();
if (!$scope.dataParameters.hasOwnProperty('taskDetails')) {
$scope.state.error = true;
$scope.errorMessage = "The 'taskDetails' data parameter is missing.";
} else {
for (let prop of props){
const value = $scope.dataParameters.taskDetails[prop[1]] || '';
$scope.rows.push({ name: prop[0], value });
}
$scope.state.isBusy = false;
}
}]);
</script>
</body>

</html>
Loading

0 comments on commit e51f0fc

Please sign in to comment.