@5minds/processcube_engine_sdk 5.0.0-feature-dc1a99-lpjqdot7 → 5.0.0-feature-be3a23-lpjundoh
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/dist/ProcessModel/Model/BpmnComponentTags.d.ts +62 -65
- package/dist/ProcessModel/Model/Definitions.d.ts +0 -1
- package/dist/ProcessModel/Model/Gateways/InclusiveGateway.d.ts +1 -1
- package/dist/ProcessModel/Model/XMLNS.d.ts +0 -3
- package/dist/ProcessModel/ProcessModelFacade/ProcessModelFacade.d.ts +5 -3
- package/dist/ProcessModel/ProcessModelFacade/SubProcessModelFacade.d.ts +2 -1
- package/dist/amd/ProcessModel/Model/BpmnComponentTags.js +61 -64
- package/dist/amd/ProcessModel/Model/BpmnComponentTags.js.map +1 -1
- package/dist/amd/ProcessModel/Model/Definitions.js.map +1 -1
- package/dist/amd/ProcessModel/Model/Gateways/InclusiveGateway.js +1 -1
- package/dist/amd/ProcessModel/Model/XMLNS.js.map +1 -1
- package/dist/amd/ProcessModel/ProcessModelFacade/ProcessModelFacade.js +58 -10
- package/dist/amd/ProcessModel/ProcessModelFacade/ProcessModelFacade.js.map +1 -1
- package/dist/amd/ProcessModel/ProcessModelFacade/SubProcessModelFacade.js +31 -10
- package/dist/amd/ProcessModel/ProcessModelFacade/SubProcessModelFacade.js.map +1 -1
- package/dist/amd/ProcessModel/ProcessModelParser/BpmnModelParser.js +1 -2
- package/dist/amd/ProcessModel/ProcessModelParser/BpmnModelParser.js.map +1 -1
- package/dist/amd/ProcessModel/ProcessModelParser/Parser/DefinitionParser.js +1 -5
- package/dist/amd/ProcessModel/ProcessModelParser/Parser/DefinitionParser.js.map +1 -1
- package/dist/amd/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/EventParser.js +3 -3
- package/dist/amd/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/EventParser.js.map +1 -1
- package/dist/commonjs/ProcessModel/Model/BpmnComponentTags.js +61 -64
- package/dist/commonjs/ProcessModel/Model/BpmnComponentTags.js.map +1 -1
- package/dist/commonjs/ProcessModel/Model/Definitions.js.map +1 -1
- package/dist/commonjs/ProcessModel/Model/Gateways/InclusiveGateway.js +1 -1
- package/dist/commonjs/ProcessModel/Model/XMLNS.js.map +1 -1
- package/dist/commonjs/ProcessModel/ProcessModelFacade/ProcessModelFacade.js +58 -10
- package/dist/commonjs/ProcessModel/ProcessModelFacade/ProcessModelFacade.js.map +1 -1
- package/dist/commonjs/ProcessModel/ProcessModelFacade/SubProcessModelFacade.js +31 -10
- package/dist/commonjs/ProcessModel/ProcessModelFacade/SubProcessModelFacade.js.map +1 -1
- package/dist/commonjs/ProcessModel/ProcessModelParser/BpmnModelParser.js +1 -2
- package/dist/commonjs/ProcessModel/ProcessModelParser/BpmnModelParser.js.map +1 -1
- package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/DefinitionParser.js +1 -5
- package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/DefinitionParser.js.map +1 -1
- package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/EventParser.js +3 -3
- package/dist/commonjs/ProcessModel/ProcessModelParser/Parser/FlowNodeParsers/EventParser.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
* These tags are usually found at the root level of the process or the definition.
|
|
4
4
|
*/
|
|
5
5
|
export declare enum CommonElement {
|
|
6
|
-
Collaboration = "collaboration",
|
|
7
|
-
Definitions = "definitions",
|
|
6
|
+
Collaboration = "bpmn:collaboration",
|
|
7
|
+
Definitions = "bpmn:definitions",
|
|
8
8
|
Diagram = "bpmndi:BPMNDiagram",
|
|
9
|
-
Participant = "participant",
|
|
10
|
-
Process = "process",
|
|
11
|
-
Error = "error",
|
|
12
|
-
Signal = "signal",
|
|
13
|
-
Message = "message",
|
|
14
|
-
DataStoreReference = "dataStoreReference",
|
|
15
|
-
DataStore = "dataStore",
|
|
16
|
-
DataObjectReference = "dataObjectReference",
|
|
17
|
-
DataObject = "dataObject",
|
|
18
|
-
Association = "association",
|
|
19
|
-
DataInputAssociation = "dataInputAssociation",
|
|
20
|
-
DataOutputAssociation = "dataOutputAssociation",
|
|
21
|
-
MessageFlow = "messageFlow",
|
|
22
|
-
SequenceFlow = "sequenceFlow",
|
|
23
|
-
TextAnnotation = "textAnnotation",
|
|
24
|
-
BpmnSourceRef = "sourceRef",
|
|
25
|
-
BpmnTargetRef = "targetRef"
|
|
9
|
+
Participant = "bpmn:participant",
|
|
10
|
+
Process = "bpmn:process",
|
|
11
|
+
Error = "bpmn:error",
|
|
12
|
+
Signal = "bpmn:signal",
|
|
13
|
+
Message = "bpmn:message",
|
|
14
|
+
DataStoreReference = "bpmn:dataStoreReference",
|
|
15
|
+
DataStore = "bpmn:dataStore",
|
|
16
|
+
DataObjectReference = "bpmn:dataObjectReference",
|
|
17
|
+
DataObject = "bpmn:dataObject",
|
|
18
|
+
Association = "bpmn:association",
|
|
19
|
+
DataInputAssociation = "bpmn:dataInputAssociation",
|
|
20
|
+
DataOutputAssociation = "bpmn:dataOutputAssociation",
|
|
21
|
+
MessageFlow = "bpmn:messageFlow",
|
|
22
|
+
SequenceFlow = "bpmn:sequenceFlow",
|
|
23
|
+
TextAnnotation = "bpmn:textAnnotation",
|
|
24
|
+
BpmnSourceRef = "bpmn:sourceRef",
|
|
25
|
+
BpmnTargetRef = "bpmn:targetRef"
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Contains all XML tags contained within the "xmlns" header tag.
|
|
@@ -33,80 +33,77 @@ export declare enum XmlnsProperty {
|
|
|
33
33
|
di = "xmlns:di",
|
|
34
34
|
dc = "xmlns:dc",
|
|
35
35
|
camunda = "xmlns:camunda",
|
|
36
|
-
xsi = "xmlns:xsi"
|
|
37
|
-
omgdc = "xmlns:omgdc",
|
|
38
|
-
omgdi = "xmlns:omgdi",
|
|
39
|
-
signavio = "xmlns:signavio"
|
|
36
|
+
xsi = "xmlns:xsi"
|
|
40
37
|
}
|
|
41
38
|
/**
|
|
42
39
|
* Contains all tags associated with lanes and lane sets.
|
|
43
40
|
*/
|
|
44
41
|
export declare enum Lane {
|
|
45
|
-
Lane = "lane",
|
|
46
|
-
LaneSet = "laneSet"
|
|
42
|
+
Lane = "bpmn:lane",
|
|
43
|
+
LaneSet = "bpmn:laneSet"
|
|
47
44
|
}
|
|
48
45
|
/**
|
|
49
46
|
* Contains all tags that a lane can have.
|
|
50
47
|
*/
|
|
51
48
|
export declare enum LaneProperty {
|
|
52
|
-
ChildLaneSet = "childLaneSet",
|
|
53
|
-
FlowNodeRef = "flowNodeRef"
|
|
49
|
+
ChildLaneSet = "bpmn:childLaneSet",
|
|
50
|
+
FlowNodeRef = "bpmn:flowNodeRef"
|
|
54
51
|
}
|
|
55
52
|
/**
|
|
56
53
|
* Contains the tags for all known gateway types.
|
|
57
54
|
*/
|
|
58
55
|
export declare enum GatewayElement {
|
|
59
|
-
ComplexGateway = "complexGateway",
|
|
60
|
-
EventBasedGateway = "eventBasedGateway",
|
|
61
|
-
ExclusiveGateway = "exclusiveGateway",
|
|
62
|
-
InclusiveGateway = "inclusiveGateway",
|
|
63
|
-
ParallelGateway = "parallelGateway"
|
|
56
|
+
ComplexGateway = "bpmn:complexGateway",
|
|
57
|
+
EventBasedGateway = "bpmn:eventBasedGateway",
|
|
58
|
+
ExclusiveGateway = "bpmn:exclusiveGateway",
|
|
59
|
+
InclusiveGateway = "bpmn:inclusiveGateway",
|
|
60
|
+
ParallelGateway = "bpmn:parallelGateway"
|
|
64
61
|
}
|
|
65
62
|
/**
|
|
66
63
|
* Contains the tags for all known event types.
|
|
67
64
|
*/
|
|
68
65
|
export declare enum EventElement {
|
|
69
|
-
StartEvent = "startEvent",
|
|
70
|
-
EndEvent = "endEvent",
|
|
71
|
-
Boundary = "boundaryEvent",
|
|
72
|
-
IntermediateCatchEvent = "intermediateCatchEvent",
|
|
73
|
-
IntermediateThrowEvent = "intermediateThrowEvent"
|
|
66
|
+
StartEvent = "bpmn:startEvent",
|
|
67
|
+
EndEvent = "bpmn:endEvent",
|
|
68
|
+
Boundary = "bpmn:boundaryEvent",
|
|
69
|
+
IntermediateCatchEvent = "bpmn:intermediateCatchEvent",
|
|
70
|
+
IntermediateThrowEvent = "bpmn:intermediateThrowEvent"
|
|
74
71
|
}
|
|
75
72
|
/**
|
|
76
73
|
* Contains the tags for all known task types.
|
|
77
74
|
*/
|
|
78
75
|
export declare enum TaskElement {
|
|
79
|
-
untypedTask = "task",
|
|
80
|
-
CallActivity = "callActivity",
|
|
81
|
-
SubProcess = "subProcess",
|
|
82
|
-
BusinessRuleTask = "businessRuleTask",
|
|
83
|
-
ManualTask = "manualTask",
|
|
84
|
-
ScriptTask = "scriptTask",
|
|
85
|
-
ServiceTask = "serviceTask",
|
|
86
|
-
UserTask = "userTask",
|
|
87
|
-
SendTask = "sendTask",
|
|
88
|
-
ReceiveTask = "receiveTask",
|
|
89
|
-
MethodInvocation = "methodInvocation",
|
|
90
|
-
WebServiceInvocation = "webServiceInvocation"
|
|
76
|
+
untypedTask = "bpmn:task",
|
|
77
|
+
CallActivity = "bpmn:callActivity",
|
|
78
|
+
SubProcess = "bpmn:subProcess",
|
|
79
|
+
BusinessRuleTask = "bpmn:businessRuleTask",
|
|
80
|
+
ManualTask = "bpmn:manualTask",
|
|
81
|
+
ScriptTask = "bpmn:scriptTask",
|
|
82
|
+
ServiceTask = "bpmn:serviceTask",
|
|
83
|
+
UserTask = "bpmn:userTask",
|
|
84
|
+
SendTask = "bpmn:sendTask",
|
|
85
|
+
ReceiveTask = "bpmn:receiveTask",
|
|
86
|
+
MethodInvocation = "bpmn:methodInvocation",
|
|
87
|
+
WebServiceInvocation = "bpmn:webServiceInvocation"
|
|
91
88
|
}
|
|
92
89
|
/**
|
|
93
90
|
* Contains all BPMN tags that a BPMN element can have.
|
|
94
91
|
*/
|
|
95
92
|
export declare enum FlowElementProperty {
|
|
96
|
-
ErrorEventDefinition = "errorEventDefinition",
|
|
97
|
-
LinkEventDefinition = "linkEventDefinition",
|
|
98
|
-
MessageEventDefinition = "messageEventDefinition",
|
|
99
|
-
SignalEventDefinition = "signalEventDefinition",
|
|
100
|
-
TerminateEventDefinition = "terminateEventDefinition",
|
|
101
|
-
TimerEventDefinition = "timerEventDefinition",
|
|
102
|
-
BpmnScript = "script",
|
|
103
|
-
ConditionExpression = "conditionExpression",
|
|
104
|
-
Documentation = "documentation",
|
|
105
|
-
ExtensionElements = "extensionElements",
|
|
106
|
-
DataInputAssociation = "dataInputAssociation",
|
|
107
|
-
DataOutputAssociation = "dataOutputAssociation",
|
|
108
|
-
SequenceFlowIncoming = "incoming",
|
|
109
|
-
SequenceFlowOutgoing = "outgoing",
|
|
93
|
+
ErrorEventDefinition = "bpmn:errorEventDefinition",
|
|
94
|
+
LinkEventDefinition = "bpmn:linkEventDefinition",
|
|
95
|
+
MessageEventDefinition = "bpmn:messageEventDefinition",
|
|
96
|
+
SignalEventDefinition = "bpmn:signalEventDefinition",
|
|
97
|
+
TerminateEventDefinition = "bpmn:terminateEventDefinition",
|
|
98
|
+
TimerEventDefinition = "bpmn:timerEventDefinition",
|
|
99
|
+
BpmnScript = "bpmn:script",
|
|
100
|
+
ConditionExpression = "bpmn:conditionExpression",
|
|
101
|
+
Documentation = "bpmn:documentation",
|
|
102
|
+
ExtensionElements = "bpmn:extensionElements",
|
|
103
|
+
DataInputAssociation = "bpmn:dataInputAssociation",
|
|
104
|
+
DataOutputAssociation = "bpmn:dataOutputAssociation",
|
|
105
|
+
SequenceFlowIncoming = "bpmn:incoming",
|
|
106
|
+
SequenceFlowOutgoing = "bpmn:outgoing",
|
|
110
107
|
XsiType = "xsi:type"
|
|
111
108
|
}
|
|
112
109
|
/**
|
|
@@ -139,6 +136,6 @@ export declare enum CamundaProperty {
|
|
|
139
136
|
* Contains the loop and multi instance markers.
|
|
140
137
|
*/
|
|
141
138
|
export declare enum LoopMarkers {
|
|
142
|
-
Loop = "standardLoopCharacteristics",
|
|
143
|
-
MultiInstance = "multiInstanceLoopCharacteristics"
|
|
139
|
+
Loop = "bpmn:standardLoopCharacteristics",
|
|
140
|
+
MultiInstance = "bpmn:multiInstanceLoopCharacteristics"
|
|
144
141
|
}
|
|
@@ -3,7 +3,7 @@ import { Gateway } from './Gateway';
|
|
|
3
3
|
/**
|
|
4
4
|
* Describes an InclusiveGateway.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* These gateways are used for parallel conditional branch execution.
|
|
7
7
|
*/
|
|
8
8
|
export declare class InclusiveGateway extends Gateway {
|
|
9
9
|
get bpmnType(): BpmnType;
|
|
@@ -18,10 +18,12 @@ export declare class ProcessModelFacade {
|
|
|
18
18
|
getOutgoingSequenceFlowsFor(flowNodeId: string): Array<Model.ProcessElements.SequenceFlow>;
|
|
19
19
|
getSequenceFlowBetween(sourceNode: Model.Base.FlowNode, targetNode: Model.Base.FlowNode): Model.ProcessElements.SequenceFlow;
|
|
20
20
|
getBoundaryEventsFor(flowNode: Model.Base.FlowNode): Array<Model.Events.BoundaryEvent>;
|
|
21
|
-
getPreviousFlowNodesFor(flowNode: Model.Base.FlowNode): Array<Model.Base.FlowNode>;
|
|
21
|
+
getPreviousFlowNodesFor(flowNode: Model.Base.FlowNode, stopAtBoundaryEvent?: boolean): Array<Model.Base.FlowNode>;
|
|
22
|
+
traversePreviousFlowNodesFor(flowNode: Model.Base.FlowNode, visitedNodes?: Set<string>): Array<Model.Base.FlowNode> | undefined;
|
|
22
23
|
getNextFlowNodesFor(flowNode: Model.Base.FlowNode): Array<Model.Base.FlowNode>;
|
|
23
24
|
getLinkCatchEventsByLinkName(linkName: string): Array<Model.Events.IntermediateCatchEvent>;
|
|
24
|
-
|
|
25
|
+
findInclusiveJoinGatewayAfterSplitGateway(splitGateway: Model.Gateways.Gateway): Model.Gateways.Gateway | undefined;
|
|
26
|
+
findParallelJoinGatewayAfterSplitGateway(splitGateway: Model.Gateways.Gateway): Model.Gateways.Gateway;
|
|
25
27
|
getDataObjects(): Array<Model.ProcessElements.DataObject>;
|
|
26
28
|
getInputDataObjectReferences(): Array<Model.ProcessElements.DataObjectReference>;
|
|
27
29
|
getOutputDataObjectReferencesForFlowNode(flowNodeId: string): Array<Model.ProcessElements.DataObjectReference>;
|
|
@@ -39,5 +41,5 @@ export declare class ProcessModelFacade {
|
|
|
39
41
|
* or undefined, if not matching lane was found.
|
|
40
42
|
*/
|
|
41
43
|
protected findLaneForFlowNodeIdFromLaneSet(flowNodeId: string, laneSet: Model.ProcessElements.LaneSet): Model.ProcessElements.Lane;
|
|
42
|
-
private
|
|
44
|
+
private getJoinGatewaysForCurrentBranchByType;
|
|
43
45
|
}
|
|
@@ -13,7 +13,8 @@ export declare class SubProcessModelFacade extends ProcessModelFacade {
|
|
|
13
13
|
getOutgoingSequenceFlowsFor(flowNodeId: string): Array<Model.ProcessElements.SequenceFlow>;
|
|
14
14
|
getSequenceFlowBetween(sourceNode: Model.Base.FlowNode, targetNode: Model.Base.FlowNode): Model.ProcessElements.SequenceFlow;
|
|
15
15
|
getBoundaryEventsFor(flowNode: Model.Base.FlowNode): Array<Model.Events.BoundaryEvent>;
|
|
16
|
-
getPreviousFlowNodesFor(flowNode: Model.Base.FlowNode): Array<Model.Base.FlowNode>;
|
|
16
|
+
getPreviousFlowNodesFor(flowNode: Model.Base.FlowNode, stopAtBoundaryEvent?: boolean): Array<Model.Base.FlowNode>;
|
|
17
|
+
traversePreviousFlowNodesFor(flowNode: Model.Base.FlowNode, visitedNodes?: Set<string>): Array<Model.Base.FlowNode> | undefined;
|
|
17
18
|
getNextFlowNodesFor(flowNode: Model.Base.FlowNode): Array<Model.Base.FlowNode>;
|
|
18
19
|
getLaneForFlowNode(flowNodeId: string): Model.ProcessElements.Lane;
|
|
19
20
|
getLinkCatchEventsByLinkName(linkName: string): Array<Model.Events.IntermediateCatchEvent>;
|
|
@@ -8,26 +8,26 @@ define(["require", "exports"], function (require, exports) {
|
|
|
8
8
|
*/
|
|
9
9
|
var CommonElement;
|
|
10
10
|
(function (CommonElement) {
|
|
11
|
-
CommonElement["Collaboration"] = "collaboration";
|
|
12
|
-
CommonElement["Definitions"] = "definitions";
|
|
11
|
+
CommonElement["Collaboration"] = "bpmn:collaboration";
|
|
12
|
+
CommonElement["Definitions"] = "bpmn:definitions";
|
|
13
13
|
CommonElement["Diagram"] = "bpmndi:BPMNDiagram";
|
|
14
|
-
CommonElement["Participant"] = "participant";
|
|
15
|
-
CommonElement["Process"] = "process";
|
|
16
|
-
CommonElement["Error"] = "error";
|
|
17
|
-
CommonElement["Signal"] = "signal";
|
|
18
|
-
CommonElement["Message"] = "message";
|
|
19
|
-
CommonElement["DataStoreReference"] = "dataStoreReference";
|
|
20
|
-
CommonElement["DataStore"] = "dataStore";
|
|
21
|
-
CommonElement["DataObjectReference"] = "dataObjectReference";
|
|
22
|
-
CommonElement["DataObject"] = "dataObject";
|
|
23
|
-
CommonElement["Association"] = "association";
|
|
24
|
-
CommonElement["DataInputAssociation"] = "dataInputAssociation";
|
|
25
|
-
CommonElement["DataOutputAssociation"] = "dataOutputAssociation";
|
|
26
|
-
CommonElement["MessageFlow"] = "messageFlow";
|
|
27
|
-
CommonElement["SequenceFlow"] = "sequenceFlow";
|
|
28
|
-
CommonElement["TextAnnotation"] = "textAnnotation";
|
|
29
|
-
CommonElement["BpmnSourceRef"] = "sourceRef";
|
|
30
|
-
CommonElement["BpmnTargetRef"] = "targetRef";
|
|
14
|
+
CommonElement["Participant"] = "bpmn:participant";
|
|
15
|
+
CommonElement["Process"] = "bpmn:process";
|
|
16
|
+
CommonElement["Error"] = "bpmn:error";
|
|
17
|
+
CommonElement["Signal"] = "bpmn:signal";
|
|
18
|
+
CommonElement["Message"] = "bpmn:message";
|
|
19
|
+
CommonElement["DataStoreReference"] = "bpmn:dataStoreReference";
|
|
20
|
+
CommonElement["DataStore"] = "bpmn:dataStore";
|
|
21
|
+
CommonElement["DataObjectReference"] = "bpmn:dataObjectReference";
|
|
22
|
+
CommonElement["DataObject"] = "bpmn:dataObject";
|
|
23
|
+
CommonElement["Association"] = "bpmn:association";
|
|
24
|
+
CommonElement["DataInputAssociation"] = "bpmn:dataInputAssociation";
|
|
25
|
+
CommonElement["DataOutputAssociation"] = "bpmn:dataOutputAssociation";
|
|
26
|
+
CommonElement["MessageFlow"] = "bpmn:messageFlow";
|
|
27
|
+
CommonElement["SequenceFlow"] = "bpmn:sequenceFlow";
|
|
28
|
+
CommonElement["TextAnnotation"] = "bpmn:textAnnotation";
|
|
29
|
+
CommonElement["BpmnSourceRef"] = "bpmn:sourceRef";
|
|
30
|
+
CommonElement["BpmnTargetRef"] = "bpmn:targetRef";
|
|
31
31
|
})(CommonElement || (exports.CommonElement = CommonElement = {}));
|
|
32
32
|
/**
|
|
33
33
|
* Contains all XML tags contained within the "xmlns" header tag.
|
|
@@ -40,85 +40,82 @@ define(["require", "exports"], function (require, exports) {
|
|
|
40
40
|
XmlnsProperty["dc"] = "xmlns:dc";
|
|
41
41
|
XmlnsProperty["camunda"] = "xmlns:camunda";
|
|
42
42
|
XmlnsProperty["xsi"] = "xmlns:xsi";
|
|
43
|
-
XmlnsProperty["omgdc"] = "xmlns:omgdc";
|
|
44
|
-
XmlnsProperty["omgdi"] = "xmlns:omgdi";
|
|
45
|
-
XmlnsProperty["signavio"] = "xmlns:signavio";
|
|
46
43
|
})(XmlnsProperty || (exports.XmlnsProperty = XmlnsProperty = {}));
|
|
47
44
|
/**
|
|
48
45
|
* Contains all tags associated with lanes and lane sets.
|
|
49
46
|
*/
|
|
50
47
|
var Lane;
|
|
51
48
|
(function (Lane) {
|
|
52
|
-
Lane["Lane"] = "lane";
|
|
53
|
-
Lane["LaneSet"] = "laneSet";
|
|
49
|
+
Lane["Lane"] = "bpmn:lane";
|
|
50
|
+
Lane["LaneSet"] = "bpmn:laneSet";
|
|
54
51
|
})(Lane || (exports.Lane = Lane = {}));
|
|
55
52
|
/**
|
|
56
53
|
* Contains all tags that a lane can have.
|
|
57
54
|
*/
|
|
58
55
|
var LaneProperty;
|
|
59
56
|
(function (LaneProperty) {
|
|
60
|
-
LaneProperty["ChildLaneSet"] = "childLaneSet";
|
|
61
|
-
LaneProperty["FlowNodeRef"] = "flowNodeRef";
|
|
57
|
+
LaneProperty["ChildLaneSet"] = "bpmn:childLaneSet";
|
|
58
|
+
LaneProperty["FlowNodeRef"] = "bpmn:flowNodeRef";
|
|
62
59
|
})(LaneProperty || (exports.LaneProperty = LaneProperty = {}));
|
|
63
60
|
/**
|
|
64
61
|
* Contains the tags for all known gateway types.
|
|
65
62
|
*/
|
|
66
63
|
var GatewayElement;
|
|
67
64
|
(function (GatewayElement) {
|
|
68
|
-
GatewayElement["ComplexGateway"] = "complexGateway";
|
|
69
|
-
GatewayElement["EventBasedGateway"] = "eventBasedGateway";
|
|
70
|
-
GatewayElement["ExclusiveGateway"] = "exclusiveGateway";
|
|
71
|
-
GatewayElement["InclusiveGateway"] = "inclusiveGateway";
|
|
72
|
-
GatewayElement["ParallelGateway"] = "parallelGateway";
|
|
65
|
+
GatewayElement["ComplexGateway"] = "bpmn:complexGateway";
|
|
66
|
+
GatewayElement["EventBasedGateway"] = "bpmn:eventBasedGateway";
|
|
67
|
+
GatewayElement["ExclusiveGateway"] = "bpmn:exclusiveGateway";
|
|
68
|
+
GatewayElement["InclusiveGateway"] = "bpmn:inclusiveGateway";
|
|
69
|
+
GatewayElement["ParallelGateway"] = "bpmn:parallelGateway";
|
|
73
70
|
})(GatewayElement || (exports.GatewayElement = GatewayElement = {}));
|
|
74
71
|
/**
|
|
75
72
|
* Contains the tags for all known event types.
|
|
76
73
|
*/
|
|
77
74
|
var EventElement;
|
|
78
75
|
(function (EventElement) {
|
|
79
|
-
EventElement["StartEvent"] = "startEvent";
|
|
80
|
-
EventElement["EndEvent"] = "endEvent";
|
|
81
|
-
EventElement["Boundary"] = "boundaryEvent";
|
|
82
|
-
EventElement["IntermediateCatchEvent"] = "intermediateCatchEvent";
|
|
83
|
-
EventElement["IntermediateThrowEvent"] = "intermediateThrowEvent";
|
|
76
|
+
EventElement["StartEvent"] = "bpmn:startEvent";
|
|
77
|
+
EventElement["EndEvent"] = "bpmn:endEvent";
|
|
78
|
+
EventElement["Boundary"] = "bpmn:boundaryEvent";
|
|
79
|
+
EventElement["IntermediateCatchEvent"] = "bpmn:intermediateCatchEvent";
|
|
80
|
+
EventElement["IntermediateThrowEvent"] = "bpmn:intermediateThrowEvent";
|
|
84
81
|
})(EventElement || (exports.EventElement = EventElement = {}));
|
|
85
82
|
/**
|
|
86
83
|
* Contains the tags for all known task types.
|
|
87
84
|
*/
|
|
88
85
|
var TaskElement;
|
|
89
86
|
(function (TaskElement) {
|
|
90
|
-
TaskElement["untypedTask"] = "task";
|
|
91
|
-
TaskElement["CallActivity"] = "callActivity";
|
|
92
|
-
TaskElement["SubProcess"] = "subProcess";
|
|
93
|
-
TaskElement["BusinessRuleTask"] = "businessRuleTask";
|
|
94
|
-
TaskElement["ManualTask"] = "manualTask";
|
|
95
|
-
TaskElement["ScriptTask"] = "scriptTask";
|
|
96
|
-
TaskElement["ServiceTask"] = "serviceTask";
|
|
97
|
-
TaskElement["UserTask"] = "userTask";
|
|
98
|
-
TaskElement["SendTask"] = "sendTask";
|
|
99
|
-
TaskElement["ReceiveTask"] = "receiveTask";
|
|
100
|
-
TaskElement["MethodInvocation"] = "methodInvocation";
|
|
101
|
-
TaskElement["WebServiceInvocation"] = "webServiceInvocation";
|
|
87
|
+
TaskElement["untypedTask"] = "bpmn:task";
|
|
88
|
+
TaskElement["CallActivity"] = "bpmn:callActivity";
|
|
89
|
+
TaskElement["SubProcess"] = "bpmn:subProcess";
|
|
90
|
+
TaskElement["BusinessRuleTask"] = "bpmn:businessRuleTask";
|
|
91
|
+
TaskElement["ManualTask"] = "bpmn:manualTask";
|
|
92
|
+
TaskElement["ScriptTask"] = "bpmn:scriptTask";
|
|
93
|
+
TaskElement["ServiceTask"] = "bpmn:serviceTask";
|
|
94
|
+
TaskElement["UserTask"] = "bpmn:userTask";
|
|
95
|
+
TaskElement["SendTask"] = "bpmn:sendTask";
|
|
96
|
+
TaskElement["ReceiveTask"] = "bpmn:receiveTask";
|
|
97
|
+
TaskElement["MethodInvocation"] = "bpmn:methodInvocation";
|
|
98
|
+
TaskElement["WebServiceInvocation"] = "bpmn:webServiceInvocation";
|
|
102
99
|
})(TaskElement || (exports.TaskElement = TaskElement = {}));
|
|
103
100
|
/**
|
|
104
101
|
* Contains all BPMN tags that a BPMN element can have.
|
|
105
102
|
*/
|
|
106
103
|
var FlowElementProperty;
|
|
107
104
|
(function (FlowElementProperty) {
|
|
108
|
-
FlowElementProperty["ErrorEventDefinition"] = "errorEventDefinition";
|
|
109
|
-
FlowElementProperty["LinkEventDefinition"] = "linkEventDefinition";
|
|
110
|
-
FlowElementProperty["MessageEventDefinition"] = "messageEventDefinition";
|
|
111
|
-
FlowElementProperty["SignalEventDefinition"] = "signalEventDefinition";
|
|
112
|
-
FlowElementProperty["TerminateEventDefinition"] = "terminateEventDefinition";
|
|
113
|
-
FlowElementProperty["TimerEventDefinition"] = "timerEventDefinition";
|
|
114
|
-
FlowElementProperty["BpmnScript"] = "script";
|
|
115
|
-
FlowElementProperty["ConditionExpression"] = "conditionExpression";
|
|
116
|
-
FlowElementProperty["Documentation"] = "documentation";
|
|
117
|
-
FlowElementProperty["ExtensionElements"] = "extensionElements";
|
|
118
|
-
FlowElementProperty["DataInputAssociation"] = "dataInputAssociation";
|
|
119
|
-
FlowElementProperty["DataOutputAssociation"] = "dataOutputAssociation";
|
|
120
|
-
FlowElementProperty["SequenceFlowIncoming"] = "incoming";
|
|
121
|
-
FlowElementProperty["SequenceFlowOutgoing"] = "outgoing";
|
|
105
|
+
FlowElementProperty["ErrorEventDefinition"] = "bpmn:errorEventDefinition";
|
|
106
|
+
FlowElementProperty["LinkEventDefinition"] = "bpmn:linkEventDefinition";
|
|
107
|
+
FlowElementProperty["MessageEventDefinition"] = "bpmn:messageEventDefinition";
|
|
108
|
+
FlowElementProperty["SignalEventDefinition"] = "bpmn:signalEventDefinition";
|
|
109
|
+
FlowElementProperty["TerminateEventDefinition"] = "bpmn:terminateEventDefinition";
|
|
110
|
+
FlowElementProperty["TimerEventDefinition"] = "bpmn:timerEventDefinition";
|
|
111
|
+
FlowElementProperty["BpmnScript"] = "bpmn:script";
|
|
112
|
+
FlowElementProperty["ConditionExpression"] = "bpmn:conditionExpression";
|
|
113
|
+
FlowElementProperty["Documentation"] = "bpmn:documentation";
|
|
114
|
+
FlowElementProperty["ExtensionElements"] = "bpmn:extensionElements";
|
|
115
|
+
FlowElementProperty["DataInputAssociation"] = "bpmn:dataInputAssociation";
|
|
116
|
+
FlowElementProperty["DataOutputAssociation"] = "bpmn:dataOutputAssociation";
|
|
117
|
+
FlowElementProperty["SequenceFlowIncoming"] = "bpmn:incoming";
|
|
118
|
+
FlowElementProperty["SequenceFlowOutgoing"] = "bpmn:outgoing";
|
|
122
119
|
FlowElementProperty["XsiType"] = "xsi:type";
|
|
123
120
|
})(FlowElementProperty || (exports.FlowElementProperty = FlowElementProperty = {}));
|
|
124
121
|
/**
|
|
@@ -153,8 +150,8 @@ define(["require", "exports"], function (require, exports) {
|
|
|
153
150
|
*/
|
|
154
151
|
var LoopMarkers;
|
|
155
152
|
(function (LoopMarkers) {
|
|
156
|
-
LoopMarkers["Loop"] = "standardLoopCharacteristics";
|
|
157
|
-
LoopMarkers["MultiInstance"] = "multiInstanceLoopCharacteristics";
|
|
153
|
+
LoopMarkers["Loop"] = "bpmn:standardLoopCharacteristics";
|
|
154
|
+
LoopMarkers["MultiInstance"] = "bpmn:multiInstanceLoopCharacteristics";
|
|
158
155
|
})(LoopMarkers || (exports.LoopMarkers = LoopMarkers = {}));
|
|
159
156
|
});
|
|
160
157
|
//# sourceMappingURL=BpmnComponentTags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BpmnComponentTags.js","sourceRoot":"","sources":["../../../../src/ProcessModel/Model/BpmnComponentTags.ts"],"names":[],"mappings":";;;;IAAA;;;OAGG;IACH,IAAY,aAwBX;IAxBD,WAAY,aAAa;QACvB,
|
|
1
|
+
{"version":3,"file":"BpmnComponentTags.js","sourceRoot":"","sources":["../../../../src/ProcessModel/Model/BpmnComponentTags.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Definitions.js","sourceRoot":"","sources":["../../../../src/ProcessModel/Model/Definitions.ts"],"names":[],"mappings":";;;;IAQA;;;OAGG;IACH,MAAa,WAAY,SAAQ,mBAAW;QAA5C;;
|
|
1
|
+
{"version":3,"file":"Definitions.js","sourceRoot":"","sources":["../../../../src/ProcessModel/Model/Definitions.ts"],"names":[],"mappings":";;;;IAQA;;;OAGG;IACH,MAAa,WAAY,SAAQ,mBAAW;QAA5C;;YA6BE;;eAEG;YACI,cAAS,GAAmB,EAAE,CAAC;QA8CxC,CAAC;QA5CC;;WAEG;QACI,iBAAiB;YACtB,MAAM,WAAW,GAAsB,EAAE,CAAC;YAE1C,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACrC,MAAM,qBAAqB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;gBAEvD,WAAW,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,CAAC;YAC7C,CAAC;YAED,OAAO,WAAW,CAAC;QACrB,CAAC;QAED;;WAEG;QACI,eAAe;YACpB,MAAM,SAAS,GAAoB,EAAE,CAAC;YAEtC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACrC,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;gBAEnD,SAAS,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,CAAC;YACzC,CAAC;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;QAED;;WAEG;QACI,kBAAkB,CAAC,QAAkB;YAC1C,MAAM,SAAS,GAAoB,EAAE,CAAC;YAEtC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACrC,MAAM,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;gBAEjE,SAAS,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,CAAC;YACzC,CAAC;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;KACF;IA9ED,kCA8EC"}
|
|
@@ -5,7 +5,7 @@ define(["require", "exports", "../Constants", "./Gateway"], function (require, e
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes an InclusiveGateway.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* These gateways are used for parallel conditional branch execution.
|
|
9
9
|
*/
|
|
10
10
|
class InclusiveGateway extends Gateway_1.Gateway {
|
|
11
11
|
get bpmnType() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XMLNS.js","sourceRoot":"","sources":["../../../../src/ProcessModel/Model/XMLNS.ts"],"names":[],"mappings":";;;;IAAA;;OAEG;IACH,MAAa,KAAK;
|
|
1
|
+
{"version":3,"file":"XMLNS.js","sourceRoot":"","sources":["../../../../src/ProcessModel/Model/XMLNS.ts"],"names":[],"mappings":";;;;IAAA;;OAEG;IACH,MAAa,KAAK;KAOjB;IAPD,sBAOC"}
|
|
@@ -2,6 +2,8 @@ define(["require", "exports", "../../Errors/index", "../Model/index", "./index"]
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ProcessModelFacade = void 0;
|
|
5
|
+
const isNotUndefined = (value) => value !== undefined;
|
|
6
|
+
const isUniqueFlowNode = (fn, index, array) => array.findIndex((fn2) => fn2.id === fn.id) === index;
|
|
5
7
|
class ProcessModelFacade {
|
|
6
8
|
constructor(processModel) {
|
|
7
9
|
if (!processModel) {
|
|
@@ -87,25 +89,48 @@ define(["require", "exports", "../../Errors/index", "../Model/index", "./index"]
|
|
|
87
89
|
});
|
|
88
90
|
return boundaryEvents;
|
|
89
91
|
}
|
|
90
|
-
getPreviousFlowNodesFor(flowNode) {
|
|
92
|
+
getPreviousFlowNodesFor(flowNode, stopAtBoundaryEvent = false) {
|
|
91
93
|
// First find the SequenceFlows that contain the FlowNodes next targets
|
|
92
|
-
const sequenceFlows = this.processModel.sequenceFlows.filter((
|
|
94
|
+
const sequenceFlows = this.processModel.sequenceFlows.filter((sf) => sf.targetRef === flowNode.id);
|
|
93
95
|
const flowHasNoSource = sequenceFlows.length === 0;
|
|
94
96
|
if (flowHasNoSource) {
|
|
95
97
|
return undefined;
|
|
96
98
|
}
|
|
97
99
|
// Then find the source FlowNodes for each SequenceFlow
|
|
98
|
-
const previousFlowNodes = sequenceFlows.map((
|
|
99
|
-
const sourceNode = this.processModel.flowNodes.find((
|
|
100
|
+
const previousFlowNodes = sequenceFlows.map((sf) => {
|
|
101
|
+
const sourceNode = this.processModel.flowNodes.find((fn) => fn.id === sf.sourceRef);
|
|
100
102
|
// If the sourceNode happens to be a BoundaryEvent, return the Node that the BoundaryEvent is attached to.
|
|
101
103
|
const sourceNodeIsBoundaryEvent = sourceNode.bpmnType === index_2.BpmnType.boundaryEvent;
|
|
102
|
-
if (sourceNodeIsBoundaryEvent) {
|
|
103
|
-
return this.processModel.flowNodes.find((
|
|
104
|
+
if (!stopAtBoundaryEvent && sourceNodeIsBoundaryEvent) {
|
|
105
|
+
return this.processModel.flowNodes.find((fn) => fn.id === sourceNode.attachedToRef);
|
|
104
106
|
}
|
|
105
107
|
return sourceNode;
|
|
106
108
|
});
|
|
107
109
|
return previousFlowNodes;
|
|
108
110
|
}
|
|
111
|
+
traversePreviousFlowNodesFor(flowNode, visitedNodes = new Set()) {
|
|
112
|
+
if (visitedNodes.has(flowNode.id) || flowNode.bpmnType === index_2.BpmnType.startEvent) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
visitedNodes.add(flowNode.id);
|
|
116
|
+
const sequenceFlows = this.processModel.sequenceFlows.filter((sequenceFlow) => sequenceFlow.targetRef === flowNode.id);
|
|
117
|
+
const flowHasNoSource = sequenceFlows.length === 0;
|
|
118
|
+
if (flowHasNoSource) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const allPreviousFlowNodes = sequenceFlows.flatMap((currentSequenceFlow) => {
|
|
122
|
+
const sourceNode = this.processModel.flowNodes.find((currentFlowNode) => currentFlowNode.id === currentSequenceFlow.sourceRef);
|
|
123
|
+
if (!sourceNode) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const currentPreviousFlowNodes = this.traversePreviousFlowNodesFor(sourceNode, new Set(visitedNodes));
|
|
127
|
+
if (!currentPreviousFlowNodes) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
return currentPreviousFlowNodes.concat(sourceNode);
|
|
131
|
+
});
|
|
132
|
+
return allPreviousFlowNodes.filter(isNotUndefined).filter(isUniqueFlowNode);
|
|
133
|
+
}
|
|
109
134
|
getNextFlowNodesFor(flowNode) {
|
|
110
135
|
// First find the SequenceFlows that contain the FlowNodes next targets
|
|
111
136
|
const sequenceFlows = this.processModel.sequenceFlows.filter((sequenceFlow) => sequenceFlow.sourceRef === flowNode.id);
|
|
@@ -151,11 +176,34 @@ define(["require", "exports", "../../Errors/index", "../Model/index", "./index"]
|
|
|
151
176
|
});
|
|
152
177
|
return matchingIntermediateCatchEvents;
|
|
153
178
|
}
|
|
154
|
-
|
|
179
|
+
findInclusiveJoinGatewayAfterSplitGateway(splitGateway) {
|
|
180
|
+
const flowNodesAfterSplitGateway = this.getNextFlowNodesFor(splitGateway);
|
|
181
|
+
const joinGatewaysForEachBranch = [];
|
|
182
|
+
for (const flowNodeAfterSplitGateway of flowNodesAfterSplitGateway) {
|
|
183
|
+
const joinGatewaysForCurrentBranch = this.getJoinGatewaysForCurrentBranchByType(flowNodeAfterSplitGateway, index_2.BpmnType.inclusiveGateway);
|
|
184
|
+
if (joinGatewaysForCurrentBranch.length > 0) {
|
|
185
|
+
joinGatewaysForEachBranch.push(joinGatewaysForCurrentBranch);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (joinGatewaysForEachBranch.length === 0) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const discoveredJoinGateway = joinGatewaysForEachBranch.shift().find((joinGateway) => {
|
|
192
|
+
for (const joinGatewaysForCurrentBranch of joinGatewaysForEachBranch) {
|
|
193
|
+
const branchContainsCurrentJoinGateway = joinGatewaysForCurrentBranch.some((gateway) => gateway.id === joinGateway.id);
|
|
194
|
+
if (!branchContainsCurrentJoinGateway) {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return true;
|
|
199
|
+
});
|
|
200
|
+
return discoveredJoinGateway;
|
|
201
|
+
}
|
|
202
|
+
findParallelJoinGatewayAfterSplitGateway(splitGateway) {
|
|
155
203
|
const flowNodesAfterSplitGateway = this.getNextFlowNodesFor(splitGateway);
|
|
156
204
|
const joinGatewaysForEachBranch = [];
|
|
157
205
|
for (const flowNodeAfterSplitGateway of flowNodesAfterSplitGateway) {
|
|
158
|
-
const joinGatewaysForCurrentBranch = this.
|
|
206
|
+
const joinGatewaysForCurrentBranch = this.getJoinGatewaysForCurrentBranchByType(flowNodeAfterSplitGateway, index_2.BpmnType.parallelGateway);
|
|
159
207
|
if (joinGatewaysForCurrentBranch.length > 0) {
|
|
160
208
|
joinGatewaysForEachBranch.push(joinGatewaysForCurrentBranch);
|
|
161
209
|
}
|
|
@@ -243,7 +291,7 @@ define(["require", "exports", "../../Errors/index", "../Model/index", "./index"]
|
|
|
243
291
|
}
|
|
244
292
|
return undefined;
|
|
245
293
|
}
|
|
246
|
-
|
|
294
|
+
getJoinGatewaysForCurrentBranchByType(firstFlowNodeOfBranch, gatewayType) {
|
|
247
295
|
const searchedFlowNodes = [];
|
|
248
296
|
const flowNodesToSearch = [firstFlowNodeOfBranch];
|
|
249
297
|
const joinGateways = [];
|
|
@@ -253,7 +301,7 @@ define(["require", "exports", "../../Errors/index", "../Model/index", "./index"]
|
|
|
253
301
|
if (flowNodeAlreadySearched) {
|
|
254
302
|
continue;
|
|
255
303
|
}
|
|
256
|
-
const flowNodeIsParallelJoinGateway = currentFlowNode.bpmnType ===
|
|
304
|
+
const flowNodeIsParallelJoinGateway = currentFlowNode.bpmnType === gatewayType && currentFlowNode.gatewayDirection !== index_2.Model.Gateways.GatewayDirection.Diverging;
|
|
257
305
|
if (flowNodeIsParallelJoinGateway) {
|
|
258
306
|
joinGateways.push(currentFlowNode);
|
|
259
307
|
}
|