bpmn-js 10.2.0 → 10.2.1
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/bpmn-modeler.development.js +48 -60
- package/dist/bpmn-modeler.production.min.js +2 -2
- package/dist/bpmn-navigated-viewer.development.js +2 -2
- package/dist/bpmn-navigated-viewer.production.min.js +1 -1
- package/dist/bpmn-viewer.development.js +2 -2
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/lib/features/modeling/behavior/EventBasedGatewayBehavior.js +47 -36
- package/lib/features/rules/BpmnRules.js +0 -23
- package/package.json +1 -1
|
@@ -855,16 +855,6 @@ function canConnectMessageFlow(source, target) {
|
|
|
855
855
|
}
|
|
856
856
|
|
|
857
857
|
function canConnectSequenceFlow(source, target) {
|
|
858
|
-
|
|
859
|
-
if (
|
|
860
|
-
isEventBasedTarget(target) &&
|
|
861
|
-
target.incoming.length > 0 &&
|
|
862
|
-
areOutgoingEventBasedGatewayConnections(target.incoming) &&
|
|
863
|
-
!is(source, 'bpmn:EventBasedGateway')
|
|
864
|
-
) {
|
|
865
|
-
return false;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
858
|
return isSequenceFlowSource(source) &&
|
|
869
859
|
isSequenceFlowTarget(target) &&
|
|
870
860
|
isSameScope(source, target) &&
|
|
@@ -936,19 +926,6 @@ function canCopy(elements, element) {
|
|
|
936
926
|
return true;
|
|
937
927
|
}
|
|
938
928
|
|
|
939
|
-
function isOutgoingEventBasedGatewayConnection(connection) {
|
|
940
|
-
|
|
941
|
-
if (connection && connection.source) {
|
|
942
|
-
return is(connection.source, 'bpmn:EventBasedGateway');
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
function areOutgoingEventBasedGatewayConnections(connections) {
|
|
947
|
-
connections = connections || [];
|
|
948
|
-
|
|
949
|
-
return connections.some(isOutgoingEventBasedGatewayConnection);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
929
|
function getRootElement(element) {
|
|
953
930
|
return getParent(element, 'bpmn:Process') || getParent(element, 'bpmn:Collaboration');
|
|
954
931
|
}
|