@eclipse-glsp-examples/workflow-server 1.1.0-next.146ae06.49 → 1.1.0-next.231d53b.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/browser.d.ts +16 -0
- package/browser.js +18 -0
- package/lib/browser/mock-model-storage.js +2 -2
- package/lib/browser/mock-model-storage.js.map +1 -1
- package/lib/common/handler/create-activity-node-handler.js +2 -2
- package/lib/common/handler/create-activity-node-handler.js.map +1 -1
- package/lib/common/handler/create-automated-task-handler.js +2 -2
- package/lib/common/handler/create-automated-task-handler.js.map +1 -1
- package/lib/common/handler/create-decision-node-handler.js +2 -2
- package/lib/common/handler/create-decision-node-handler.js.map +1 -1
- package/lib/common/handler/create-fork-node-handler.js +2 -2
- package/lib/common/handler/create-fork-node-handler.js.map +1 -1
- package/lib/common/handler/create-fork-or-join-node-handler.js +2 -2
- package/lib/common/handler/create-fork-or-join-node-handler.js.map +1 -1
- package/lib/common/handler/create-join-node-handler.js +2 -2
- package/lib/common/handler/create-join-node-handler.js.map +1 -1
- package/lib/common/handler/create-manual-task-handler.js +2 -2
- package/lib/common/handler/create-manual-task-handler.js.map +1 -1
- package/lib/common/handler/create-merge-node-handler.js +2 -2
- package/lib/common/handler/create-merge-node-handler.js.map +1 -1
- package/lib/common/handler/create-task-handler.js +2 -2
- package/lib/common/handler/create-task-handler.js.map +1 -1
- package/lib/common/handler/create-workflow-node-operation-handler.js +2 -2
- package/lib/common/handler/create-workflow-node-operation-handler.js.map +1 -1
- package/lib/common/labeledit/workflow-label-edit-validator.js +2 -2
- package/lib/common/labeledit/workflow-label-edit-validator.js.map +1 -1
- package/lib/common/layout/workflow-layout-configurator.js +2 -2
- package/lib/common/layout/workflow-layout-configurator.js.map +1 -1
- package/lib/common/marker/workflow-model-validator.js +2 -2
- package/lib/common/marker/workflow-model-validator.js.map +1 -1
- package/lib/common/model/workflow-navigation-target-resolver.js +2 -2
- package/lib/common/model/workflow-navigation-target-resolver.js.map +1 -1
- package/lib/common/provider/abstract-next-or-previous-navigation-target-provider.js +2 -2
- package/lib/common/provider/abstract-next-or-previous-navigation-target-provider.js.map +1 -1
- package/lib/common/provider/next-node-navigation-target-provider.js +2 -2
- package/lib/common/provider/next-node-navigation-target-provider.js.map +1 -1
- package/lib/common/provider/node-documentation-navigation-target-provider.js +2 -2
- package/lib/common/provider/node-documentation-navigation-target-provider.js.map +1 -1
- package/lib/common/provider/previous-node-navigation-target-provider.js +2 -2
- package/lib/common/provider/previous-node-navigation-target-provider.js.map +1 -1
- package/lib/common/provider/workflow-command-palette-action-provider.js +2 -2
- package/lib/common/provider/workflow-command-palette-action-provider.js.map +1 -1
- package/lib/common/provider/workflow-context-menu-item-provider.js +2 -2
- package/lib/common/provider/workflow-context-menu-item-provider.js.map +1 -1
- package/lib/common/taskedit/edit-task-operation-handler.js +3 -3
- package/lib/common/taskedit/edit-task-operation-handler.js.map +1 -1
- package/lib/common/taskedit/task-edit-context-provider.js +2 -2
- package/lib/common/taskedit/task-edit-context-provider.js.map +1 -1
- package/lib/common/taskedit/task-edit-validator.js +2 -2
- package/lib/common/taskedit/task-edit-validator.js.map +1 -1
- package/lib/common/util/model-types.d.ts +6 -6
- package/lib/common/util/model-types.d.ts.map +1 -1
- package/lib/common/util/model-types.js +1 -1
- package/lib/common/util/model-types.js.map +1 -1
- package/lib/common/workflow-diagram-configuration.d.ts.map +1 -1
- package/lib/common/workflow-diagram-configuration.js +6 -13
- package/lib/common/workflow-diagram-configuration.js.map +1 -1
- package/lib/common/workflow-diagram-module.d.ts +2 -1
- package/lib/common/workflow-diagram-module.d.ts.map +1 -1
- package/lib/common/workflow-diagram-module.js +8 -4
- package/lib/common/workflow-diagram-module.js.map +1 -1
- package/lib/common/workflow-edge-creation-checker.d.ts +21 -0
- package/lib/common/workflow-edge-creation-checker.d.ts.map +1 -0
- package/lib/common/workflow-edge-creation-checker.js +25 -0
- package/lib/common/workflow-edge-creation-checker.js.map +1 -0
- package/lib/common/workflow-glsp-server.js +2 -2
- package/lib/common/workflow-glsp-server.js.map +1 -1
- package/lib/common/workflow-popup-factory.js +2 -2
- package/lib/common/workflow-popup-factory.js.map +1 -1
- package/lib/node/app.js +2 -2
- package/lib/node/app.js.map +1 -1
- package/lib/node/workflow-cli-parser.d.ts +1 -1
- package/lib/node/workflow-cli-parser.js +1 -1
- package/node.d.ts +16 -0
- package/node.js +18 -0
- package/package.json +10 -7
- package/src/common/workflow-diagram-configuration.ts +6 -13
- package/src/common/workflow-diagram-module.ts +6 -0
- package/src/common/workflow-edge-creation-checker.ts +31 -0
- package/src/node/app.ts +2 -2
- package/src/node/workflow-cli-parser.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-edit-context-provider.js","sourceRoot":"","sources":["../../../src/common/taskedit/task-edit-context-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAAmI;AACnI,yCAA+C;AAC/C,wDAA8C;AAC9C,+EAAkE;AAG3D,IAAM,6BAA6B,qCAAnC,MAAM,6BAA6B;IAAnC;QAKM,cAAS,GAAG,aAAa,CAAC;IAmCvC,CAAC;IA9BG,UAAU,CAAC,aAA4B;;QACnC,MAAM,IAAI,GAAG,MAAA,MAAA,aAAa,CAAC,IAAI,0CAAG,MAAM,EAAE,QAAQ,EAAE,mCAAI,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,IAAA,oBAAW,EAAC,0BAAQ,CAAC,CAAC,CAAC;QACrH,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,+BAA6B,CAAC,WAAW,CAAC,EAAE;YAC5D,MAAM,MAAM,GAAG,QAAQ,CAAC,EAAE,CAAC;YAC3B,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,EAAE;YAChG;gBACxB,KAAK,EAAE,WAAW;gBAClB,OAAO,EAAE,EAAE;gBACX,IAAI,EAAE,GAAG,+BAA6B,CAAC,eAAe,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,CAAC,EAAE;aAC3E;SACJ,CAAC;IACN,CAAC;;AAvCQ,sEAA6B;AACtB,6CAAe,GAAG,WAAW,AAAd,CAAe;AAC9B,yCAAW,GAAG,OAAO,AAAV,CAAW;AACtB,yCAAW,GAAG,OAAO,AAAV,CAAW;AAK5B;IADT,IAAA,kBAAM,EAAC,mBAAU,CAAC;;iEACc;wCARxB,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAwCzC"}
|
|
@@ -53,8 +53,8 @@ let TaskEditValidator = class TaskEditValidator {
|
|
|
53
53
|
return server_1.ValidationStatus.NONE;
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
TaskEditValidator =
|
|
56
|
+
exports.TaskEditValidator = TaskEditValidator;
|
|
57
|
+
exports.TaskEditValidator = TaskEditValidator = __decorate([
|
|
57
58
|
(0, inversify_1.injectable)()
|
|
58
59
|
], TaskEditValidator);
|
|
59
|
-
exports.TaskEditValidator = TaskEditValidator;
|
|
60
60
|
//# sourceMappingURL=task-edit-validator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-edit-validator.js","sourceRoot":"","sources":["../../../src/common/taskedit/task-edit-validator.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA2G;AAC3G,yCAAuC;AACvC,6EAA6E;AAGtE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QACM,cAAS,GAAG,aAAa,CAAC;IAuBvC,CAAC;IArBG,QAAQ,CAAC,MAAmC;QACxC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACzB,IAAI,IAAI,CAAC,UAAU,CAAC,0DAA6B,CAAC,eAAe,CAAC,EAA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iBAAiB,CAwB7B"}
|
|
@@ -21,13 +21,13 @@ export declare namespace ModelTypes {
|
|
|
21
21
|
const WEIGHTED_EDGE = "edge:weighted";
|
|
22
22
|
const ICON = "icon";
|
|
23
23
|
const ACTIVITY_NODE = "activityNode";
|
|
24
|
-
const DECISION_NODE:
|
|
25
|
-
const MERGE_NODE:
|
|
26
|
-
const FORK_NODE:
|
|
27
|
-
const JOIN_NODE:
|
|
24
|
+
const DECISION_NODE = "activityNode:decision";
|
|
25
|
+
const MERGE_NODE = "activityNode:merge";
|
|
26
|
+
const FORK_NODE = "activityNode:fork";
|
|
27
|
+
const JOIN_NODE = "activityNode:join";
|
|
28
28
|
const TASK = "task";
|
|
29
|
-
const MANUAL_TASK:
|
|
30
|
-
const AUTOMATED_TASK:
|
|
29
|
+
const MANUAL_TASK = "task:manual";
|
|
30
|
+
const AUTOMATED_TASK = "task:automated";
|
|
31
31
|
const CATEGORY = "category";
|
|
32
32
|
const STRUCTURE = "struct";
|
|
33
33
|
function toNodeType(type: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-types.d.ts","sourceRoot":"","sources":["../../../src/common/util/model-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,yBAAiB,UAAU,CAAC;IACjB,MAAM,aAAa,kBAAkB,CAAC;IACtC,MAAM,UAAU,eAAe,CAAC;IAChC,MAAM,WAAW,gBAAgB,CAAC;IAClC,MAAM,UAAU,eAAe,CAAC;IAChC,MAAM,aAAa,kBAAkB,CAAC;IACtC,MAAM,IAAI,SAAS,CAAC;IACpB,MAAM,aAAa,iBAAiB,CAAC;IACrC,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"model-types.d.ts","sourceRoot":"","sources":["../../../src/common/util/model-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,yBAAiB,UAAU,CAAC;IACjB,MAAM,aAAa,kBAAkB,CAAC;IACtC,MAAM,UAAU,eAAe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ACd,sBAAW,GAAG,GAAG,WAAA,IAAI,SAAS,CAAC;IAC/B,yBAAc,GAAG,GAAG,WAAA,IAAI,YAAY,CAAC;IACrC,mBAAQ,GAAG,UAAU,CAAC;IACtB,oBAAS,GAAG,QAAQ,CAAC;IAElC,SAAgB,UAAU,CAAC,IAAY;QACnC,QAAQ,IAAI,EAAE;YACV,KAAK,WAAA,aAAa;gBACd,OAAO,cAAc,CAAC;YAC1B,KAAK,WAAA,UAAU;gBACX,OAAO,WAAW,CAAC;YACvB,KAAK,WAAA,SAAS;gBACV,OAAO,UAAU,CAAC;YACtB,KAAK,WAAA,SAAS;gBACV,OAAO,UAAU,CAAC;YACtB,KAAK,WAAA,WAAW;gBACZ,OAAO,QAAQ,CAAC;YACpB,KAAK,WAAA,cAAc;gBACf,OAAO,WAAW,CAAC;YACvB,KAAK,WAAA,QAAQ;gBACT,OAAO,UAAU,CAAC;YACtB;gBACI,OAAO,SAAS,CAAC;SACxB;IACL,CAAC;IAnBe,qBAAU,aAmBzB,CAAA;AACL,CAAC,EAtCgB,UAAU,0BAAV,UAAU,QAsC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-configuration.d.ts","sourceRoot":"","sources":["../../src/common/workflow-diagram-configuration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAgB,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EACH,oBAAoB,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-configuration.d.ts","sourceRoot":"","sources":["../../src/common/workflow-diagram-configuration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAgB,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EACH,oBAAoB,EAIpB,wBAAwB,EACxB,gBAAgB,EAEnB,MAAM,sBAAsB,CAAC;AAK9B,qBACa,4BAA6B,YAAW,oBAAoB;IACrE,IAAI,WAAW,IAAI,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAavD;IAED,IAAI,cAAc,IAAI,aAAa,EAAE,CAiBpC;IAED,IAAI,aAAa,IAAI,YAAY,EAAE,CAalC;IAED,UAAU,mBAA2B;IACrC,iBAAiB,UAAQ;IACzB,cAAc,UAAQ;CACzB;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAE3E;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAyBzE"}
|
|
@@ -61,15 +61,7 @@ let WorkflowDiagramConfiguration = class WorkflowDiagramConfiguration {
|
|
|
61
61
|
deletable: true,
|
|
62
62
|
resizable: true,
|
|
63
63
|
reparentable: true,
|
|
64
|
-
containableElementTypeIds: [
|
|
65
|
-
model_types_1.ModelTypes.DECISION_NODE,
|
|
66
|
-
model_types_1.ModelTypes.MERGE_NODE,
|
|
67
|
-
model_types_1.ModelTypes.FORK_NODE,
|
|
68
|
-
model_types_1.ModelTypes.JOIN_NODE,
|
|
69
|
-
model_types_1.ModelTypes.AUTOMATED_TASK,
|
|
70
|
-
model_types_1.ModelTypes.MANUAL_TASK,
|
|
71
|
-
model_types_1.ModelTypes.CATEGORY
|
|
72
|
-
]
|
|
64
|
+
containableElementTypeIds: [model_types_1.ModelTypes.TASK, model_types_1.ModelTypes.ACTIVITY_NODE, model_types_1.ModelTypes.CATEGORY]
|
|
73
65
|
}
|
|
74
66
|
];
|
|
75
67
|
}
|
|
@@ -81,16 +73,17 @@ let WorkflowDiagramConfiguration = class WorkflowDiagramConfiguration {
|
|
|
81
73
|
repositionable: true,
|
|
82
74
|
deletable: true,
|
|
83
75
|
routable: true,
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
dynamic: true,
|
|
77
|
+
sourceElementTypeIds: [model_types_1.ModelTypes.ACTIVITY_NODE],
|
|
78
|
+
targetElementTypeIds: [model_types_1.ModelTypes.TASK, model_types_1.ModelTypes.ACTIVITY_NODE]
|
|
86
79
|
}
|
|
87
80
|
];
|
|
88
81
|
}
|
|
89
82
|
};
|
|
90
|
-
WorkflowDiagramConfiguration =
|
|
83
|
+
exports.WorkflowDiagramConfiguration = WorkflowDiagramConfiguration;
|
|
84
|
+
exports.WorkflowDiagramConfiguration = WorkflowDiagramConfiguration = __decorate([
|
|
91
85
|
(0, inversify_1.injectable)()
|
|
92
86
|
], WorkflowDiagramConfiguration);
|
|
93
|
-
exports.WorkflowDiagramConfiguration = WorkflowDiagramConfiguration;
|
|
94
87
|
function createDefaultShapeTypeHint(elementId) {
|
|
95
88
|
return { elementTypeId: elementId, repositionable: true, deletable: true, resizable: true, reparentable: true };
|
|
96
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-configuration.js","sourceRoot":"","sources":["../../src/common/workflow-diagram-configuration.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAmF;AACnF,iDAQ8B;AAC9B,yCAAuC;AACvC,uDAAqE;AACrE,oDAAyD;AAGlD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;
|
|
1
|
+
{"version":3,"file":"workflow-diagram-configuration.js","sourceRoot":"","sources":["../../src/common/workflow-diagram-configuration.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAmF;AACnF,iDAQ8B;AAC9B,yCAAuC;AACvC,uDAAqE;AACrE,oDAAyD;AAGlD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QAkDH,eAAU,GAAG,yBAAgB,CAAC,MAAM,CAAC;QACrC,sBAAiB,GAAG,IAAI,CAAC;QACzB,mBAAc,GAAG,IAAI,CAAC;IAC1B,CAAC;IApDG,IAAI,WAAW;QACX,MAAM,OAAO,GAAG,IAAA,0BAAiB,GAAE,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,wBAAK,CAAC,aA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,wBAAK,CAAC,SAAS;YACf,wBAAK,CAAC,SAAS;YACf,wBAAK,CAAC,QAAQ;SACjB;KACJ,CAAC;AACN,CAAC;AAzBD,8DAyBC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { BindingTarget, CommandPaletteActionProvider, ContextActionsProvider, ContextEditValidator, ContextMenuItemProvider, DiagramConfiguration, GLSPServer, GModelDiagramModule, InstanceMultiBinding, LabelEditValidator, ModelValidator, MultiBinding, NavigationTargetProvider, NavigationTargetResolver, OperationHandlerConstructor, PopupModelFactory, ServerModule, SourceModelStorage } from '@eclipse-glsp/server';
|
|
16
|
+
import { BindingTarget, CommandPaletteActionProvider, ContextActionsProvider, ContextEditValidator, ContextMenuItemProvider, DiagramConfiguration, EdgeCreationChecker, GLSPServer, GModelDiagramModule, InstanceMultiBinding, LabelEditValidator, ModelValidator, MultiBinding, NavigationTargetProvider, NavigationTargetResolver, OperationHandlerConstructor, PopupModelFactory, ServerModule, SourceModelStorage } from '@eclipse-glsp/server';
|
|
17
17
|
export declare class WorkflowServerModule extends ServerModule {
|
|
18
18
|
protected bindGLSPServer(): BindingTarget<GLSPServer>;
|
|
19
19
|
}
|
|
@@ -32,5 +32,6 @@ export declare class WorkflowDiagramModule extends GModelDiagramModule {
|
|
|
32
32
|
protected configureNavigationTargetProviders(binding: MultiBinding<NavigationTargetProvider>): void;
|
|
33
33
|
protected configureContextActionProviders(binding: MultiBinding<ContextActionsProvider>): void;
|
|
34
34
|
protected configureContextEditValidators(binding: MultiBinding<ContextEditValidator>): void;
|
|
35
|
+
protected bindEdgeCreationChecker(): BindingTarget<EdgeCreationChecker> | undefined;
|
|
35
36
|
}
|
|
36
37
|
//# sourceMappingURL=workflow-diagram-module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EACrB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EACrB,MAAM,sBAAsB,CAAC;AA2B9B,qBACa,oBAAqB,SAAQ,YAAY;cAC/B,cAAc,IAAI,aAAa,CAAC,UAAU,CAAC;CAGjE;AAED,qBACa,qBAAsB,SAAQ,mBAAmB;IACvC,sBAAsB,EAAE,MAAM,aAAa,CAAC,kBAAkB,CAAC;gBAA/D,sBAAsB,EAAE,MAAM,aAAa,CAAC,kBAAkB,CAAC;IAIlF,IAAI,WAAW,IAAI,MAAM,CAExB;cAEkB,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,GAAG,IAAI;IAc/G,SAAS,CAAC,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;cAItD,4BAA4B,IAAI,aAAa,CAAC,wBAAwB,CAAC,GAAG,SAAS;cAInF,2BAA2B,IAAI,aAAa,CAAC,uBAAuB,CAAC,GAAG,SAAS;cAIjF,gCAAgC,IAAI,aAAa,CAAC,4BAA4B,CAAC,GAAG,SAAS;cAI3F,sBAAsB,IAAI,aAAa,CAAC,kBAAkB,CAAC,GAAG,SAAS;cAIvE,qBAAqB,IAAI,aAAa,CAAC,iBAAiB,CAAC,GAAG,SAAS;cAIrE,kBAAkB,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,SAAS;cAI/D,kCAAkC,CAAC,OAAO,EAAE,YAAY,CAAC,wBAAwB,CAAC,GAAG,IAAI;cAOzF,+BAA+B,CAAC,OAAO,EAAE,YAAY,CAAC,sBAAsB,CAAC,GAAG,IAAI;cAKpF,8BAA8B,CAAC,OAAO,EAAE,YAAY,CAAC,oBAAoB,CAAC,GAAG,IAAI;cAKjF,uBAAuB,IAAI,aAAa,CAAC,mBAAmB,CAAC,GAAG,SAAS;CAG/F"}
|
|
@@ -48,6 +48,7 @@ const edit_task_operation_handler_1 = require("./taskedit/edit-task-operation-ha
|
|
|
48
48
|
const task_edit_context_provider_1 = require("./taskedit/task-edit-context-provider");
|
|
49
49
|
const task_edit_validator_1 = require("./taskedit/task-edit-validator");
|
|
50
50
|
const workflow_diagram_configuration_1 = require("./workflow-diagram-configuration");
|
|
51
|
+
const workflow_edge_creation_checker_1 = require("./workflow-edge-creation-checker");
|
|
51
52
|
const workflow_glsp_server_1 = require("./workflow-glsp-server");
|
|
52
53
|
const workflow_popup_factory_1 = require("./workflow-popup-factory");
|
|
53
54
|
let WorkflowServerModule = class WorkflowServerModule extends server_1.ServerModule {
|
|
@@ -55,10 +56,10 @@ let WorkflowServerModule = class WorkflowServerModule extends server_1.ServerMod
|
|
|
55
56
|
return workflow_glsp_server_1.WorkflowGLSPServer;
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
|
-
WorkflowServerModule =
|
|
59
|
+
exports.WorkflowServerModule = WorkflowServerModule;
|
|
60
|
+
exports.WorkflowServerModule = WorkflowServerModule = __decorate([
|
|
59
61
|
(0, inversify_1.injectable)()
|
|
60
62
|
], WorkflowServerModule);
|
|
61
|
-
exports.WorkflowServerModule = WorkflowServerModule;
|
|
62
63
|
let WorkflowDiagramModule = class WorkflowDiagramModule extends server_1.GModelDiagramModule {
|
|
63
64
|
constructor(bindSourceModelStorage) {
|
|
64
65
|
super();
|
|
@@ -115,10 +116,13 @@ let WorkflowDiagramModule = class WorkflowDiagramModule extends server_1.GModelD
|
|
|
115
116
|
super.configureContextEditValidators(binding);
|
|
116
117
|
binding.add(task_edit_validator_1.TaskEditValidator);
|
|
117
118
|
}
|
|
119
|
+
bindEdgeCreationChecker() {
|
|
120
|
+
return workflow_edge_creation_checker_1.WorkflowEdgeCreationChecker;
|
|
121
|
+
}
|
|
118
122
|
};
|
|
119
|
-
WorkflowDiagramModule =
|
|
123
|
+
exports.WorkflowDiagramModule = WorkflowDiagramModule;
|
|
124
|
+
exports.WorkflowDiagramModule = WorkflowDiagramModule = __decorate([
|
|
120
125
|
(0, inversify_1.injectable)(),
|
|
121
126
|
__metadata("design:paramtypes", [Function])
|
|
122
127
|
], WorkflowDiagramModule);
|
|
123
|
-
exports.WorkflowDiagramModule = WorkflowDiagramModule;
|
|
124
128
|
//# sourceMappingURL=workflow-diagram-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../../src/common/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAoB8B;AAC9B,yCAAuC;AACvC,2FAAqF;AACrF,+EAA0E;AAC1E,yFAAmF;AACnF,uEAAkE;AAClE,iFAA2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C;QACnC,OAAO,CAAC,GAAG,CAAC,sDAAwB,CAAC,CAAC;IAC1C,CAAC;IAES,wBAAwB;QAC9B,OAAO,6DAA4B,CAAC;IACxC,CAAC;IAEkB,4BAA4B;QAC3C,OAAO,sEAAgC,CAAC;IAC5C,CAAC;IAEkB,2BAA2B;QAC1C,OAAO,qEAA+B,CAAC;IAC3C,CAAC;IAEkB,gCAAgC;QAC/C,OAAO,+EAAoC,CAAC;IAChD,CAAC;IAEkB,sBAAsB;QACrC,OAAO,0DAA0B,CAAC;IACtC,CAAC;IAEkB,qBAAqB;QACpC,OAAO,6CAAoB,CAAC;IAChC,CAAC;IAEkB,kBAAkB;QACjC,OAAO,iDAAsB,CAAC;IAClC,CAAC;IAEkB,kCAAkC,CAAC,OAA+C;QACjG,KAAK,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,uEAAgC,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,+EAAoC,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,yFAAyC,CAAC,CAAC;IAC3D,CAAC;IAEkB,+BAA+B,CAAC,OAA6C;QAC5F,KAAK,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC;QAC/C,OAAO,CAAC,GAAG,CAAC,0DAA6B,CAAC,CAAC;IAC/C,CAAC;IAEkB,8BAA8B,CAAC,OAA2C;QACzF,KAAK,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,uCAAiB,CAAC,CAAC;IACnC,CAAC;IAEkB,uBAAuB;QACtC,OAAO,4DAA2B,CAAC;IACvC,CAAC;CACJ,CAAA;AAvEY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,sBAAU,GAAE;;GACA,qBAAqB,CAuEjC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { EdgeCreationChecker, GModelElement } from '@eclipse-glsp/server/';
|
|
17
|
+
export declare class WorkflowEdgeCreationChecker implements EdgeCreationChecker {
|
|
18
|
+
isValidSource(edgeType: string, sourceElement: GModelElement): boolean;
|
|
19
|
+
isValidTarget(edgeType: string, sourceElement: GModelElement, targetElement: GModelElement): boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=workflow-edge-creation-checker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-edge-creation-checker.d.ts","sourceRoot":"","sources":["../../src/common/workflow-edge-creation-checker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAK3E,qBACa,2BAA4B,YAAW,mBAAmB;IACnE,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO;IAGtE,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO;CAKvG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.WorkflowEdgeCreationChecker = void 0;
|
|
10
|
+
const inversify_1 = require("inversify");
|
|
11
|
+
const graph_extension_1 = require("./graph-extension");
|
|
12
|
+
const model_types_1 = require("./util/model-types");
|
|
13
|
+
let WorkflowEdgeCreationChecker = class WorkflowEdgeCreationChecker {
|
|
14
|
+
isValidSource(edgeType, sourceElement) {
|
|
15
|
+
return edgeType !== model_types_1.ModelTypes.WEIGHTED_EDGE || sourceElement.type === model_types_1.ModelTypes.DECISION_NODE;
|
|
16
|
+
}
|
|
17
|
+
isValidTarget(edgeType, sourceElement, targetElement) {
|
|
18
|
+
return (targetElement instanceof graph_extension_1.TaskNode || targetElement.type === model_types_1.ModelTypes.FORK_NODE || targetElement.type === model_types_1.ModelTypes.JOIN_NODE);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.WorkflowEdgeCreationChecker = WorkflowEdgeCreationChecker;
|
|
22
|
+
exports.WorkflowEdgeCreationChecker = WorkflowEdgeCreationChecker = __decorate([
|
|
23
|
+
(0, inversify_1.injectable)()
|
|
24
|
+
], WorkflowEdgeCreationChecker);
|
|
25
|
+
//# sourceMappingURL=workflow-edge-creation-checker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-edge-creation-checker.js","sourceRoot":"","sources":["../../src/common/workflow-edge-creation-checker.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AACvC,uDAA6C;AAC7C,oDAAgD;AAGzC,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACpC,aAAa,CAAC,QAAgB,EAAE,aAA4B;QACxD,OAAO,QAAQ,KAAK,wBAAU,CAAC,aAAa,IAAI,aAAa,CAAC,IAAI,KAAK,wBAAU,CAAC,aAAa,CAAC;IACpG,CAAC;IACD,aAAa,CAAC,QAAgB,EAAE,aAA4B,EAAE,aAA4B;QACtF,OAAO,CACH,aAAa,YAAY,0BAAQ,IAAI,aAAa,CAAC,IAAI,KAAK,wBAAU,CAAC,SAAS,IAAI,aAAa,CAAC,IAAI,KAAK,wBAAU,CAAC,SAAS,CAClI,CAAC;IACN,CAAC;CACJ,CAAA;AATY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CASvC"}
|
|
@@ -43,12 +43,12 @@ let WorkflowGLSPServer = class WorkflowGLSPServer extends server_1.DefaultGLSPSe
|
|
|
43
43
|
return result;
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.WorkflowGLSPServer = WorkflowGLSPServer;
|
|
46
47
|
__decorate([
|
|
47
48
|
(0, inversify_1.inject)(server_1.Logger),
|
|
48
49
|
__metadata("design:type", server_1.Logger)
|
|
49
50
|
], WorkflowGLSPServer.prototype, "logger", void 0);
|
|
50
|
-
WorkflowGLSPServer = __decorate([
|
|
51
|
+
exports.WorkflowGLSPServer = WorkflowGLSPServer = __decorate([
|
|
51
52
|
(0, inversify_1.injectable)()
|
|
52
53
|
], WorkflowGLSPServer);
|
|
53
|
-
exports.WorkflowGLSPServer = WorkflowGLSPServer;
|
|
54
54
|
//# sourceMappingURL=workflow-glsp-server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-glsp-server.js","sourceRoot":"","sources":["../../src/common/workflow-glsp-server.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;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GAAG,SAAS,KAAK,OAAO,EAAE,CAAC,CAAC;QAC9C,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AAjBY,gDAAkB;AAKR;IADlB,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACY,eAAM;kDAAC;6BALzB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAiB9B"}
|
|
@@ -47,8 +47,8 @@ let WorkflowPopupFactory = class WorkflowPopupFactory {
|
|
|
47
47
|
Reference: ${task.references} ${NL}`;
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
WorkflowPopupFactory =
|
|
50
|
+
exports.WorkflowPopupFactory = WorkflowPopupFactory;
|
|
51
|
+
exports.WorkflowPopupFactory = WorkflowPopupFactory = __decorate([
|
|
51
52
|
(0, inversify_1.injectable)()
|
|
52
53
|
], WorkflowPopupFactory);
|
|
53
|
-
exports.WorkflowPopupFactory = WorkflowPopupFactory;
|
|
54
54
|
//# sourceMappingURL=workflow-popup-factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-popup-factory.js","sourceRoot":"","sources":["../../src/common/workflow-popup-factory.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAAkI;AAClI,yCAAuC;AACvC,uDAA6C;AAE7C,MAAM,EAAE,GAAG,OAAO,CAAC;AAGZ,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,gBAAgB,CAAC,OAAsB,EAAE,MAA+B;QACpE,IAAI,OAAO,IAAI,OAAO,YAAY,0BAAQ,EAAE;YACxC,MAAM,UAAU,GAAG,4BAAmB,CAAC,OAAO,EAAE;iBAC3C,EAAE,CAAC,aAAa,CAAC;iBACjB,IAAI,CAAC,oCAAoC,OAAO,CAAC,IAAI,QAAQ,CAAC;iBAC9D,KAAK,EAAE,CAAC;YAEb,MAAM,SAAS,GAAG,4BAAmB,CAAC,OAAO,EAAE;iBAC1C,EAAE,C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;iBAChB,IAAI,CAAC,mCAAmC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC;iBAC3E,KAAK,EAAE,CAAC;YAEb,OAAO,mBAAU,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,CAAC;SACnI;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAEO,YAAY,CAAC,IAAc;QAC/B,OAAO,SAAS,IAAI,CAAC,QAAQ,IAAI,EAAE;wBACnB,IAAI,CAAC,QAAQ,IAAI,EAAE;yBAClB,IAAI,CAAC,UAAU,IAAI,EAAE,EAAE,CAAC;IAC7C,CAAC;CACJ,CAAA;AAvBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAuBhC"}
|
package/lib/node/app.js
CHANGED
|
@@ -31,12 +31,12 @@ async function launch(argv) {
|
|
|
31
31
|
if (options.webSocket) {
|
|
32
32
|
const launcher = appContainer.resolve(node_1.WebSocketServerLauncher);
|
|
33
33
|
launcher.configure(serverModule);
|
|
34
|
-
launcher.start({ port: options.port, host: options.host, path: 'workflow' });
|
|
34
|
+
await launcher.start({ port: options.port, host: options.host, path: 'workflow' });
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
const launcher = appContainer.resolve(node_1.SocketServerLauncher);
|
|
38
38
|
launcher.configure(serverModule);
|
|
39
|
-
launcher.start({ port: options.port, host: options.host });
|
|
39
|
+
await launcher.start({ port: options.port, host: options.host });
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
launch(process.argv).catch(error => console.error('Error in workflow server launcher:', error));
|
package/lib/node/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot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|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
* Copyright (c) 2022-2023 EclipseSource and others.
|
|
4
4
|
*
|
|
5
5
|
* This program and the accompanying materials are made available under the
|
|
6
6
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
package/node.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './lib/node/index';
|
package/node.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
'use strict';
|
|
17
|
+
|
|
18
|
+
module.exports = require('./lib/node/index');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server",
|
|
3
|
-
"version": "1.1.0-next.
|
|
3
|
+
"version": "1.1.0-next.231d53b.69+231d53b",
|
|
4
4
|
"description": "GLSP node server for the workflow example",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -39,7 +39,11 @@
|
|
|
39
39
|
"types": "lib/index",
|
|
40
40
|
"files": [
|
|
41
41
|
"lib",
|
|
42
|
-
"src"
|
|
42
|
+
"src",
|
|
43
|
+
"node.js",
|
|
44
|
+
"node.d.ts",
|
|
45
|
+
"browser.d.ts",
|
|
46
|
+
"browser.js"
|
|
43
47
|
],
|
|
44
48
|
"scripts": {
|
|
45
49
|
"build": "tsc -b && yarn bundle",
|
|
@@ -49,13 +53,12 @@
|
|
|
49
53
|
"lint": "eslint --ext .ts,.tsx ./src",
|
|
50
54
|
"lint:ci": "yarn lint -o eslint.xml -f checkstyle",
|
|
51
55
|
"prepare": "yarn clean && yarn build",
|
|
52
|
-
"start": "node --enable-source-maps bundle/wf-glsp-server-node.js --port 5007",
|
|
53
|
-
"start:websocket": "node --enable-source-maps bundle/wf-glsp-server-node.js -w --port 8081",
|
|
54
56
|
"watch": "tsc -w"
|
|
55
57
|
},
|
|
56
58
|
"dependencies": {
|
|
57
|
-
"@eclipse-glsp/layout-elk": "1.1.0-next.
|
|
58
|
-
"@eclipse-glsp/server": "1.1.0-next.
|
|
59
|
+
"@eclipse-glsp/layout-elk": "1.1.0-next.231d53b.69+231d53b",
|
|
60
|
+
"@eclipse-glsp/server": "1.1.0-next.231d53b.69+231d53b",
|
|
61
|
+
"inversify": "^6.0.1"
|
|
59
62
|
},
|
|
60
63
|
"devDependencies": {
|
|
61
64
|
"source-map-loader": "^4.0.1",
|
|
@@ -65,5 +68,5 @@
|
|
|
65
68
|
"publishConfig": {
|
|
66
69
|
"access": "public"
|
|
67
70
|
},
|
|
68
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "231d53bfe5d4720f834dcc68bbdbb5b2a639f243"
|
|
69
72
|
}
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
DiagramConfiguration,
|
|
19
19
|
GCompartment,
|
|
20
20
|
GEdge,
|
|
21
|
-
getDefaultMapping,
|
|
22
21
|
GLabel,
|
|
23
22
|
GModelElementConstructor,
|
|
24
|
-
ServerLayoutKind
|
|
23
|
+
ServerLayoutKind,
|
|
24
|
+
getDefaultMapping
|
|
25
25
|
} from '@eclipse-glsp/server';
|
|
26
26
|
import { injectable } from 'inversify';
|
|
27
27
|
import { ActivityNode, Category, TaskNode } from './graph-extension';
|
|
@@ -58,15 +58,7 @@ export class WorkflowDiagramConfiguration implements DiagramConfiguration {
|
|
|
58
58
|
deletable: true,
|
|
59
59
|
resizable: true,
|
|
60
60
|
reparentable: true,
|
|
61
|
-
containableElementTypeIds: [
|
|
62
|
-
types.DECISION_NODE,
|
|
63
|
-
types.MERGE_NODE,
|
|
64
|
-
types.FORK_NODE,
|
|
65
|
-
types.JOIN_NODE,
|
|
66
|
-
types.AUTOMATED_TASK,
|
|
67
|
-
types.MANUAL_TASK,
|
|
68
|
-
types.CATEGORY
|
|
69
|
-
]
|
|
61
|
+
containableElementTypeIds: [types.TASK, types.ACTIVITY_NODE, types.CATEGORY]
|
|
70
62
|
}
|
|
71
63
|
];
|
|
72
64
|
}
|
|
@@ -79,8 +71,9 @@ export class WorkflowDiagramConfiguration implements DiagramConfiguration {
|
|
|
79
71
|
repositionable: true,
|
|
80
72
|
deletable: true,
|
|
81
73
|
routable: true,
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
dynamic: true,
|
|
75
|
+
sourceElementTypeIds: [types.ACTIVITY_NODE],
|
|
76
|
+
targetElementTypeIds: [types.TASK, types.ACTIVITY_NODE]
|
|
84
77
|
}
|
|
85
78
|
];
|
|
86
79
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
ContextEditValidator,
|
|
21
21
|
ContextMenuItemProvider,
|
|
22
22
|
DiagramConfiguration,
|
|
23
|
+
EdgeCreationChecker,
|
|
23
24
|
GLSPServer,
|
|
24
25
|
GModelDiagramModule,
|
|
25
26
|
InstanceMultiBinding,
|
|
@@ -55,6 +56,7 @@ import { EditTaskOperationHandler } from './taskedit/edit-task-operation-handler
|
|
|
55
56
|
import { TaskEditContextActionProvider } from './taskedit/task-edit-context-provider';
|
|
56
57
|
import { TaskEditValidator } from './taskedit/task-edit-validator';
|
|
57
58
|
import { WorkflowDiagramConfiguration } from './workflow-diagram-configuration';
|
|
59
|
+
import { WorkflowEdgeCreationChecker } from './workflow-edge-creation-checker';
|
|
58
60
|
import { WorkflowGLSPServer } from './workflow-glsp-server';
|
|
59
61
|
import { WorkflowPopupFactory } from './workflow-popup-factory';
|
|
60
62
|
|
|
@@ -133,4 +135,8 @@ export class WorkflowDiagramModule extends GModelDiagramModule {
|
|
|
133
135
|
super.configureContextEditValidators(binding);
|
|
134
136
|
binding.add(TaskEditValidator);
|
|
135
137
|
}
|
|
138
|
+
|
|
139
|
+
protected override bindEdgeCreationChecker(): BindingTarget<EdgeCreationChecker> | undefined {
|
|
140
|
+
return WorkflowEdgeCreationChecker;
|
|
141
|
+
}
|
|
136
142
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { EdgeCreationChecker, GModelElement } from '@eclipse-glsp/server/';
|
|
17
|
+
import { injectable } from 'inversify';
|
|
18
|
+
import { TaskNode } from './graph-extension';
|
|
19
|
+
import { ModelTypes } from './util/model-types';
|
|
20
|
+
|
|
21
|
+
@injectable()
|
|
22
|
+
export class WorkflowEdgeCreationChecker implements EdgeCreationChecker {
|
|
23
|
+
isValidSource(edgeType: string, sourceElement: GModelElement): boolean {
|
|
24
|
+
return edgeType !== ModelTypes.WEIGHTED_EDGE || sourceElement.type === ModelTypes.DECISION_NODE;
|
|
25
|
+
}
|
|
26
|
+
isValidTarget(edgeType: string, sourceElement: GModelElement, targetElement: GModelElement): boolean {
|
|
27
|
+
return (
|
|
28
|
+
targetElement instanceof TaskNode || targetElement.type === ModelTypes.FORK_NODE || targetElement.type === ModelTypes.JOIN_NODE
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
package/src/node/app.ts
CHANGED
|
@@ -34,11 +34,11 @@ async function launch(argv?: string[]): Promise<void> {
|
|
|
34
34
|
if (options.webSocket) {
|
|
35
35
|
const launcher = appContainer.resolve(WebSocketServerLauncher);
|
|
36
36
|
launcher.configure(serverModule);
|
|
37
|
-
launcher.start({ port: options.port, host: options.host, path: 'workflow' });
|
|
37
|
+
await launcher.start({ port: options.port, host: options.host, path: 'workflow' });
|
|
38
38
|
} else {
|
|
39
39
|
const launcher = appContainer.resolve(SocketServerLauncher);
|
|
40
40
|
launcher.configure(serverModule);
|
|
41
|
-
launcher.start({ port: options.port, host: options.host });
|
|
41
|
+
await launcher.start({ port: options.port, host: options.host });
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2022-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|