@processmaker/modeler 1.46.5 → 1.46.6
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/modeler.common.js +338 -315
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +338 -315
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +2 -2
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modeler/Modeler.vue +4 -4
- package/src/mixins/linkConfig.js +21 -0
- package/src/multiplayer/multiplayer.js +4 -0
package/dist/modeler.umd.js
CHANGED
|
@@ -28754,8 +28754,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28754
28754
|
var config_namespaceObject = {};
|
|
28755
28755
|
__webpack_require__.r(config_namespaceObject);
|
|
28756
28756
|
__webpack_require__.d(config_namespaceObject, {
|
|
28757
|
-
bpmnType: function() { return
|
|
28758
|
-
definition: function() { return
|
|
28757
|
+
bpmnType: function() { return bpmnType; },
|
|
28758
|
+
definition: function() { return definition; },
|
|
28759
28759
|
diagram: function() { return config_diagram; },
|
|
28760
28760
|
id: function() { return config_id; }
|
|
28761
28761
|
});
|
|
@@ -28764,8 +28764,8 @@ __webpack_require__.d(config_namespaceObject, {
|
|
|
28764
28764
|
var dataInputAssociation_config_namespaceObject = {};
|
|
28765
28765
|
__webpack_require__.r(dataInputAssociation_config_namespaceObject);
|
|
28766
28766
|
__webpack_require__.d(dataInputAssociation_config_namespaceObject, {
|
|
28767
|
-
bpmnType: function() { return
|
|
28768
|
-
definition: function() { return
|
|
28767
|
+
bpmnType: function() { return config_bpmnType; },
|
|
28768
|
+
definition: function() { return config_definition; },
|
|
28769
28769
|
diagram: function() { return dataInputAssociation_config_diagram; },
|
|
28770
28770
|
id: function() { return dataInputAssociation_config_id; }
|
|
28771
28771
|
});
|
|
@@ -32683,6 +32683,288 @@ function removeRef(state, ref, callBack) {
|
|
|
32683
32683
|
}
|
|
32684
32684
|
}
|
|
32685
32685
|
}));
|
|
32686
|
+
// EXTERNAL MODULE: external "lodash"
|
|
32687
|
+
var external_lodash_ = __webpack_require__(50467);
|
|
32688
|
+
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
32689
|
+
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
32690
|
+
var config_id = 'processmaker-modeler-data-output-association';
|
|
32691
|
+
var bpmnType = 'bpmn:DataOutputAssociation';
|
|
32692
|
+
function definition(moddle) {
|
|
32693
|
+
return moddle.create('bpmn:DataOutputAssociation', {
|
|
32694
|
+
targetRef: {
|
|
32695
|
+
x: undefined,
|
|
32696
|
+
y: undefined
|
|
32697
|
+
}
|
|
32698
|
+
});
|
|
32699
|
+
}
|
|
32700
|
+
function config_diagram(moddle) {
|
|
32701
|
+
return moddle.create('bpmndi:BPMNEdge');
|
|
32702
|
+
}
|
|
32703
|
+
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
32704
|
+
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
32705
|
+
var config_bpmnType = 'bpmn:DataInputAssociation';
|
|
32706
|
+
function config_definition(moddle) {
|
|
32707
|
+
return moddle.create('bpmn:DataInputAssociation', {
|
|
32708
|
+
targetRef: {
|
|
32709
|
+
x: undefined,
|
|
32710
|
+
y: undefined
|
|
32711
|
+
}
|
|
32712
|
+
});
|
|
32713
|
+
}
|
|
32714
|
+
function dataInputAssociation_config_diagram(moddle) {
|
|
32715
|
+
return moddle.create('bpmndi:BPMNEdge');
|
|
32716
|
+
}
|
|
32717
|
+
;// CONCATENATED MODULE: ./src/components/crown/utils.js
|
|
32718
|
+
|
|
32719
|
+
|
|
32720
|
+
|
|
32721
|
+
|
|
32722
|
+
|
|
32723
|
+
|
|
32724
|
+
|
|
32725
|
+
|
|
32726
|
+
|
|
32727
|
+
function removeFlows(graph, shape) {
|
|
32728
|
+
var _this = this;
|
|
32729
|
+
var linkShapes = graph.getConnectedLinks(shape);
|
|
32730
|
+
linkShapes.forEach(function (shape) {
|
|
32731
|
+
return _this.$emit('remove-node', shape.component.node);
|
|
32732
|
+
});
|
|
32733
|
+
}
|
|
32734
|
+
|
|
32735
|
+
// Remove the incoming and outgoing flows of a node
|
|
32736
|
+
function removeNodeFlows(node, modeler) {
|
|
32737
|
+
if (node.definition.incoming) {
|
|
32738
|
+
node.definition.incoming.forEach(function (flow) {
|
|
32739
|
+
var node = modeler.nodes.find(function (node) {
|
|
32740
|
+
return node.definition === flow;
|
|
32741
|
+
});
|
|
32742
|
+
modeler.removeNode(node);
|
|
32743
|
+
});
|
|
32744
|
+
}
|
|
32745
|
+
if (node.definition.outgoing) {
|
|
32746
|
+
node.definition.outgoing.forEach(function (flow) {
|
|
32747
|
+
var node = modeler.nodes.find(function (node) {
|
|
32748
|
+
return node.definition === flow;
|
|
32749
|
+
});
|
|
32750
|
+
modeler.removeNode(node);
|
|
32751
|
+
});
|
|
32752
|
+
}
|
|
32753
|
+
}
|
|
32754
|
+
// Remove the associations of a node
|
|
32755
|
+
function removeNodeMessageFlows(node, modeler) {
|
|
32756
|
+
var linkedMessages = modeler.nodes.filter(function (n) {
|
|
32757
|
+
if (n.definition.sourceRef) {
|
|
32758
|
+
if (n.definition.sourceRef === node.definition) {
|
|
32759
|
+
return true;
|
|
32760
|
+
}
|
|
32761
|
+
}
|
|
32762
|
+
if (n.definition.targetRef) {
|
|
32763
|
+
if (n.definition.targetRef === node.definition) {
|
|
32764
|
+
return true;
|
|
32765
|
+
}
|
|
32766
|
+
}
|
|
32767
|
+
});
|
|
32768
|
+
linkedMessages.forEach(function (messageFlow) {
|
|
32769
|
+
modeler.removeNode(messageFlow);
|
|
32770
|
+
});
|
|
32771
|
+
}
|
|
32772
|
+
// Remove the associations of a node
|
|
32773
|
+
function removeNodeAssociations(node, modeler) {
|
|
32774
|
+
var linkedAssociations = modeler.nodes.filter(function (n) {
|
|
32775
|
+
if (n.definition.sourceRef) {
|
|
32776
|
+
if (n.definition.sourceRef === node.definition) {
|
|
32777
|
+
return true;
|
|
32778
|
+
}
|
|
32779
|
+
}
|
|
32780
|
+
if (n.definition.targetRef) {
|
|
32781
|
+
if (n.definition.targetRef === node.definition) {
|
|
32782
|
+
return true;
|
|
32783
|
+
}
|
|
32784
|
+
}
|
|
32785
|
+
});
|
|
32786
|
+
linkedAssociations.forEach(function (association) {
|
|
32787
|
+
modeler.removeNode(association);
|
|
32788
|
+
});
|
|
32789
|
+
}
|
|
32790
|
+
function removeBoundaryEvents(graph, node, removeNode) {
|
|
32791
|
+
var nodeShape = graph.getCells().find(function (el) {
|
|
32792
|
+
return el.component && el.component.node === node;
|
|
32793
|
+
});
|
|
32794
|
+
if (nodeShape) {
|
|
32795
|
+
nodeShape.getEmbeddedCells({
|
|
32796
|
+
deep: true
|
|
32797
|
+
}).filter(function (cell) {
|
|
32798
|
+
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
32799
|
+
}).forEach(function (boundaryEventShape) {
|
|
32800
|
+
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
32801
|
+
return removeNode(shape.component.node);
|
|
32802
|
+
});
|
|
32803
|
+
removeNode(boundaryEventShape.component.node);
|
|
32804
|
+
});
|
|
32805
|
+
}
|
|
32806
|
+
}
|
|
32807
|
+
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
32808
|
+
if (node.isBpmnType(bpmnType, config_bpmnType)) {
|
|
32809
|
+
return;
|
|
32810
|
+
}
|
|
32811
|
+
|
|
32812
|
+
/* Modify source and target refs to remove incoming and outgoing properties pointing to this link */
|
|
32813
|
+
var _node$definition = node.definition,
|
|
32814
|
+
sourceRef = _node$definition.sourceRef,
|
|
32815
|
+
targetRef = _node$definition.targetRef;
|
|
32816
|
+
if (sourceRef) {
|
|
32817
|
+
(0,external_lodash_.pull)(sourceRef.get('outgoing'), node.definition);
|
|
32818
|
+
}
|
|
32819
|
+
|
|
32820
|
+
/* If targetRef is defined, it could be a point or another element.
|
|
32821
|
+
* If targetRef has an id, that means it's an element and the reference to it
|
|
32822
|
+
* can be safely removed. */
|
|
32823
|
+
if (targetRef && targetRef.id) {
|
|
32824
|
+
(0,external_lodash_.pull)(targetRef.get('incoming'), node.definition);
|
|
32825
|
+
}
|
|
32826
|
+
}
|
|
32827
|
+
function removeSourceDefault(node) {
|
|
32828
|
+
var defaultId = (0,external_lodash_.get)(node, 'definition.sourceRef.default.id', null);
|
|
32829
|
+
if (defaultId && defaultId === node.id) {
|
|
32830
|
+
// unset this node as the source's default
|
|
32831
|
+
node.definition.sourceRef.set('default', null);
|
|
32832
|
+
}
|
|
32833
|
+
}
|
|
32834
|
+
function getOrFindDataInput(moddle, task, sourceNode) {
|
|
32835
|
+
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
32836
|
+
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
32837
|
+
}
|
|
32838
|
+
var sourceNodeId = sourceNode.id;
|
|
32839
|
+
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
32840
|
+
// Check if ioSpecification exists
|
|
32841
|
+
if (!task.definition.ioSpecification) {
|
|
32842
|
+
task.definition.ioSpecification = moddle.create('bpmn:InputOutputSpecification', {
|
|
32843
|
+
dataInputs: [],
|
|
32844
|
+
dataOutputs: [],
|
|
32845
|
+
inputSets: [],
|
|
32846
|
+
outputSets: []
|
|
32847
|
+
});
|
|
32848
|
+
task.definition.ioSpecification.$parent = task.definition;
|
|
32849
|
+
}
|
|
32850
|
+
// Check if dataInput exists
|
|
32851
|
+
if (!task.definition.ioSpecification.dataInputs) {
|
|
32852
|
+
task.definition.ioSpecification.set('dataInputs', []);
|
|
32853
|
+
}
|
|
32854
|
+
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
32855
|
+
return input.id === dataInputId;
|
|
32856
|
+
});
|
|
32857
|
+
if (!dataInput) {
|
|
32858
|
+
task.definition.ioSpecification.dataInputs.push(moddle.create('bpmn:DataInput', {
|
|
32859
|
+
id: dataInputId,
|
|
32860
|
+
isCollection: 'false',
|
|
32861
|
+
name: sourceNode.name
|
|
32862
|
+
}));
|
|
32863
|
+
task.definition.ioSpecification.dataInputs[task.definition.ioSpecification.dataInputs.length - 1].$parent = task.definition.ioSpecification;
|
|
32864
|
+
task.definition.ioSpecification.set('dataInputs', task.definition.ioSpecification.dataInputs);
|
|
32865
|
+
}
|
|
32866
|
+
dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
32867
|
+
return input.id === dataInputId;
|
|
32868
|
+
});
|
|
32869
|
+
// Check if outputSet exists
|
|
32870
|
+
if (!task.definition.ioSpecification.outputSets) {
|
|
32871
|
+
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
32872
|
+
dataOutputRefs: []
|
|
32873
|
+
})]);
|
|
32874
|
+
}
|
|
32875
|
+
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
32876
|
+
if (!outputSet) {
|
|
32877
|
+
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
32878
|
+
dataOutputRefs: []
|
|
32879
|
+
})]);
|
|
32880
|
+
}
|
|
32881
|
+
outputSet = task.definition.ioSpecification.outputSets[0];
|
|
32882
|
+
// Check if inputSet exists
|
|
32883
|
+
if (!task.definition.ioSpecification.inputSets) {
|
|
32884
|
+
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
32885
|
+
dataInputRefs: []
|
|
32886
|
+
})]);
|
|
32887
|
+
}
|
|
32888
|
+
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
32889
|
+
if (!inputSet) {
|
|
32890
|
+
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
32891
|
+
dataInputRefs: []
|
|
32892
|
+
})]);
|
|
32893
|
+
}
|
|
32894
|
+
inputSet = task.definition.ioSpecification.inputSets[0];
|
|
32895
|
+
// Check if dataInputRef exists
|
|
32896
|
+
var dataInputRef = inputSet.get('dataInputRefs').find(function (ref) {
|
|
32897
|
+
return ref.id === dataInputId;
|
|
32898
|
+
});
|
|
32899
|
+
if (!dataInputRef) {
|
|
32900
|
+
inputSet.dataInputRefs.push(dataInput);
|
|
32901
|
+
}
|
|
32902
|
+
return dataInput;
|
|
32903
|
+
}
|
|
32904
|
+
function findIOSpecificationOwner(ioSpec, modeler) {
|
|
32905
|
+
var owner = ioSpec.$parent;
|
|
32906
|
+
if (!owner) {
|
|
32907
|
+
var _modeler$nodes$find;
|
|
32908
|
+
return (_modeler$nodes$find = modeler.nodes.find(function (node) {
|
|
32909
|
+
var _node$definition$ioSp;
|
|
32910
|
+
return node.definition.ioSpecification === ioSpec || ((_node$definition$ioSp = node.definition.ioSpecification) === null || _node$definition$ioSp === void 0 ? void 0 : _node$definition$ioSp.id) === ioSpec.id;
|
|
32911
|
+
})) === null || _modeler$nodes$find === void 0 ? void 0 : _modeler$nodes$find.definition;
|
|
32912
|
+
}
|
|
32913
|
+
return owner;
|
|
32914
|
+
}
|
|
32915
|
+
function removeDataInput(task, sourceNode) {
|
|
32916
|
+
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
32917
|
+
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
32918
|
+
}
|
|
32919
|
+
var sourceNodeId = sourceNode.id;
|
|
32920
|
+
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
32921
|
+
// Check if ioSpecification exists
|
|
32922
|
+
if (!task.definition.ioSpecification) {
|
|
32923
|
+
return;
|
|
32924
|
+
}
|
|
32925
|
+
// Check if dataInput exists
|
|
32926
|
+
if (!task.definition.ioSpecification.dataInputs) {
|
|
32927
|
+
return;
|
|
32928
|
+
}
|
|
32929
|
+
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
32930
|
+
return input.id === dataInputId;
|
|
32931
|
+
});
|
|
32932
|
+
if (!dataInput) {
|
|
32933
|
+
return;
|
|
32934
|
+
}
|
|
32935
|
+
// remove dataInput from dataInputs
|
|
32936
|
+
(0,external_lodash_.pull)(task.definition.ioSpecification.dataInputs, dataInput);
|
|
32937
|
+
// Check if inputSet exists
|
|
32938
|
+
if (!task.definition.ioSpecification.inputSets) {
|
|
32939
|
+
return;
|
|
32940
|
+
}
|
|
32941
|
+
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
32942
|
+
if (!inputSet) {
|
|
32943
|
+
return;
|
|
32944
|
+
}
|
|
32945
|
+
// Check if dataInputRef exists
|
|
32946
|
+
var dataInputRef = inputSet.dataInputRefs.find(function (ref) {
|
|
32947
|
+
return ref.id === dataInputId;
|
|
32948
|
+
});
|
|
32949
|
+
if (dataInputRef) {
|
|
32950
|
+
(0,external_lodash_.pull)(inputSet.dataInputRefs, dataInputRef);
|
|
32951
|
+
}
|
|
32952
|
+
// Remove inputSets if it is empty (without any dataInputRefs)
|
|
32953
|
+
if (inputSet.dataInputRefs.length === 0) {
|
|
32954
|
+
delete task.definition.ioSpecification.inputSets;
|
|
32955
|
+
}
|
|
32956
|
+
// Remove outputSets if it is empty (without any dataOutputRefs)
|
|
32957
|
+
if (task.definition.ioSpecification.outputSets) {
|
|
32958
|
+
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
32959
|
+
if (outputSet && (!outputSet.dataOutputRefs || outputSet.dataOutputRefs.length === 0)) {
|
|
32960
|
+
delete task.definition.ioSpecification.outputSets;
|
|
32961
|
+
}
|
|
32962
|
+
}
|
|
32963
|
+
// Remove ioSpecification if it is empty (without outputSets and inputSets)
|
|
32964
|
+
if (!task.definition.ioSpecification.inputSets && !task.definition.ioSpecification.outputSets) {
|
|
32965
|
+
delete task.definition.ioSpecification;
|
|
32966
|
+
}
|
|
32967
|
+
}
|
|
32686
32968
|
;// CONCATENATED MODULE: ./src/components/highlightColors.js
|
|
32687
32969
|
var COLOR_DEFAULT = '#5096db';
|
|
32688
32970
|
var COLOR_ERROR = '#FF0000';
|
|
@@ -32709,6 +32991,10 @@ var COLOR_COMPLETED_FILL = '#D6FFE6';
|
|
|
32709
32991
|
|
|
32710
32992
|
|
|
32711
32993
|
|
|
32994
|
+
|
|
32995
|
+
|
|
32996
|
+
|
|
32997
|
+
|
|
32712
32998
|
|
|
32713
32999
|
|
|
32714
33000
|
|
|
@@ -32945,7 +33231,7 @@ function isPoint(item) {
|
|
|
32945
33231
|
pointerUpHandler: function pointerUpHandler() {
|
|
32946
33232
|
var _this5 = this;
|
|
32947
33233
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32948
|
-
var targetChanged, _this5$isValid, targetNode, targetConfig, isValid;
|
|
33234
|
+
var targetChanged, _this5$isValid, targetNode, targetConfig, isValid, _this5$node$diagram$w, waypoint;
|
|
32949
33235
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32950
33236
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32951
33237
|
case 0:
|
|
@@ -32958,7 +33244,7 @@ function isPoint(item) {
|
|
|
32958
33244
|
// Check if the target shape has changed.
|
|
32959
33245
|
targetChanged = _this5.target.id !== _this5.currentTarget.id;
|
|
32960
33246
|
if (!targetChanged) {
|
|
32961
|
-
_context2.next =
|
|
33247
|
+
_context2.next = 24;
|
|
32962
33248
|
break;
|
|
32963
33249
|
}
|
|
32964
33250
|
// Disable the 'onChange' event to prevent redundant processing.
|
|
@@ -32972,9 +33258,10 @@ function isPoint(item) {
|
|
|
32972
33258
|
targetConfig: targetConfig
|
|
32973
33259
|
}); // If the flow is valid, update the target and related information.
|
|
32974
33260
|
if (!isValid) {
|
|
32975
|
-
_context2.next =
|
|
33261
|
+
_context2.next = 21;
|
|
32976
33262
|
break;
|
|
32977
33263
|
}
|
|
33264
|
+
removeOutgoingAndIncomingRefsToFlow(_this5.node);
|
|
32978
33265
|
_this5.setTarget(_this5.currentTarget);
|
|
32979
33266
|
_this5.target = _this5.currentTarget;
|
|
32980
33267
|
// Optionally update definition links.
|
|
@@ -32983,21 +33270,36 @@ function isPoint(item) {
|
|
|
32983
33270
|
}
|
|
32984
33271
|
_this5.listeningToMouseleave = true;
|
|
32985
33272
|
// Store waypoints asynchronously.
|
|
32986
|
-
_context2.next =
|
|
33273
|
+
_context2.next = 16;
|
|
32987
33274
|
return _this5.storeWaypoints();
|
|
32988
|
-
case
|
|
32989
|
-
|
|
33275
|
+
case 16:
|
|
33276
|
+
waypoint = [];
|
|
33277
|
+
(_this5$node$diagram$w = _this5.node.diagram.waypoint) === null || _this5$node$diagram$w === void 0 || _this5$node$diagram$w.forEach(function (point) {
|
|
33278
|
+
waypoint.push({
|
|
33279
|
+
x: point.x,
|
|
33280
|
+
y: point.y
|
|
33281
|
+
});
|
|
33282
|
+
});
|
|
33283
|
+
window.ProcessMaker.EventBus.$emit('multiplayer-updateFlows', [{
|
|
33284
|
+
id: _this5.node.definition.id,
|
|
33285
|
+
type: _this5.node.type,
|
|
33286
|
+
name: _this5.node.definition.name,
|
|
33287
|
+
waypoint: waypoint,
|
|
33288
|
+
sourceRefId: _this5.node.definition.sourceRef.id,
|
|
33289
|
+
targetRefId: _this5.node.definition.targetRef.id
|
|
33290
|
+
}]);
|
|
33291
|
+
_context2.next = 22;
|
|
32990
33292
|
break;
|
|
32991
|
-
case
|
|
33293
|
+
case 21:
|
|
32992
33294
|
// If the flow is not valid, revert to the previous target.
|
|
32993
33295
|
_this5.setTarget(_this5.target);
|
|
32994
|
-
case
|
|
32995
|
-
_context2.next =
|
|
33296
|
+
case 22:
|
|
33297
|
+
_context2.next = 25;
|
|
32996
33298
|
break;
|
|
32997
|
-
case
|
|
33299
|
+
case 24:
|
|
32998
33300
|
// the target was not changed, set the target with the anchor offset.
|
|
32999
33301
|
_this5.setTarget(_this5.target, _this5.getAnchorOffset());
|
|
33000
|
-
case
|
|
33302
|
+
case 25:
|
|
33001
33303
|
case "end":
|
|
33002
33304
|
return _context2.stop();
|
|
33003
33305
|
}
|
|
@@ -33308,14 +33610,14 @@ function isPoint(item) {
|
|
|
33308
33610
|
var association_head_namespaceObject = __webpack_require__.p + "img/association-head.0b14da7b.svg";
|
|
33309
33611
|
;// CONCATENATED MODULE: ./src/components/nodes/association/associationConfig.js
|
|
33310
33612
|
var associationConfig_id = 'processmaker-modeler-association';
|
|
33311
|
-
var
|
|
33613
|
+
var associationConfig_bpmnType = 'bpmn:Association';
|
|
33312
33614
|
var direction = {
|
|
33313
33615
|
none: 'None',
|
|
33314
33616
|
one: 'One',
|
|
33315
33617
|
both: 'Both'
|
|
33316
33618
|
};
|
|
33317
|
-
function
|
|
33318
|
-
return moddle.create(
|
|
33619
|
+
function associationConfig_definition(moddle) {
|
|
33620
|
+
return moddle.create(associationConfig_bpmnType, {
|
|
33319
33621
|
associationDirection: direction.none,
|
|
33320
33622
|
targetRef: {
|
|
33321
33623
|
x: undefined,
|
|
@@ -33758,288 +34060,6 @@ var deleteButtonvue_type_template_id_59648d83_render = function render() {
|
|
|
33758
34060
|
};
|
|
33759
34061
|
var deleteButtonvue_type_template_id_59648d83_staticRenderFns = [];
|
|
33760
34062
|
|
|
33761
|
-
// EXTERNAL MODULE: external "lodash"
|
|
33762
|
-
var external_lodash_ = __webpack_require__(50467);
|
|
33763
|
-
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
|
|
33764
|
-
;// CONCATENATED MODULE: ./src/components/nodes/dataOutputAssociation/config.js
|
|
33765
|
-
var config_id = 'processmaker-modeler-data-output-association';
|
|
33766
|
-
var config_bpmnType = 'bpmn:DataOutputAssociation';
|
|
33767
|
-
function config_definition(moddle) {
|
|
33768
|
-
return moddle.create('bpmn:DataOutputAssociation', {
|
|
33769
|
-
targetRef: {
|
|
33770
|
-
x: undefined,
|
|
33771
|
-
y: undefined
|
|
33772
|
-
}
|
|
33773
|
-
});
|
|
33774
|
-
}
|
|
33775
|
-
function config_diagram(moddle) {
|
|
33776
|
-
return moddle.create('bpmndi:BPMNEdge');
|
|
33777
|
-
}
|
|
33778
|
-
;// CONCATENATED MODULE: ./src/components/nodes/dataInputAssociation/config.js
|
|
33779
|
-
var dataInputAssociation_config_id = 'processmaker-modeler-data-input-association';
|
|
33780
|
-
var dataInputAssociation_config_bpmnType = 'bpmn:DataInputAssociation';
|
|
33781
|
-
function dataInputAssociation_config_definition(moddle) {
|
|
33782
|
-
return moddle.create('bpmn:DataInputAssociation', {
|
|
33783
|
-
targetRef: {
|
|
33784
|
-
x: undefined,
|
|
33785
|
-
y: undefined
|
|
33786
|
-
}
|
|
33787
|
-
});
|
|
33788
|
-
}
|
|
33789
|
-
function dataInputAssociation_config_diagram(moddle) {
|
|
33790
|
-
return moddle.create('bpmndi:BPMNEdge');
|
|
33791
|
-
}
|
|
33792
|
-
;// CONCATENATED MODULE: ./src/components/crown/utils.js
|
|
33793
|
-
|
|
33794
|
-
|
|
33795
|
-
|
|
33796
|
-
|
|
33797
|
-
|
|
33798
|
-
|
|
33799
|
-
|
|
33800
|
-
|
|
33801
|
-
|
|
33802
|
-
function removeFlows(graph, shape) {
|
|
33803
|
-
var _this = this;
|
|
33804
|
-
var linkShapes = graph.getConnectedLinks(shape);
|
|
33805
|
-
linkShapes.forEach(function (shape) {
|
|
33806
|
-
return _this.$emit('remove-node', shape.component.node);
|
|
33807
|
-
});
|
|
33808
|
-
}
|
|
33809
|
-
|
|
33810
|
-
// Remove the incoming and outgoing flows of a node
|
|
33811
|
-
function removeNodeFlows(node, modeler) {
|
|
33812
|
-
if (node.definition.incoming) {
|
|
33813
|
-
node.definition.incoming.forEach(function (flow) {
|
|
33814
|
-
var node = modeler.nodes.find(function (node) {
|
|
33815
|
-
return node.definition === flow;
|
|
33816
|
-
});
|
|
33817
|
-
modeler.removeNode(node);
|
|
33818
|
-
});
|
|
33819
|
-
}
|
|
33820
|
-
if (node.definition.outgoing) {
|
|
33821
|
-
node.definition.outgoing.forEach(function (flow) {
|
|
33822
|
-
var node = modeler.nodes.find(function (node) {
|
|
33823
|
-
return node.definition === flow;
|
|
33824
|
-
});
|
|
33825
|
-
modeler.removeNode(node);
|
|
33826
|
-
});
|
|
33827
|
-
}
|
|
33828
|
-
}
|
|
33829
|
-
// Remove the associations of a node
|
|
33830
|
-
function removeNodeMessageFlows(node, modeler) {
|
|
33831
|
-
var linkedMessages = modeler.nodes.filter(function (n) {
|
|
33832
|
-
if (n.definition.sourceRef) {
|
|
33833
|
-
if (n.definition.sourceRef === node.definition) {
|
|
33834
|
-
return true;
|
|
33835
|
-
}
|
|
33836
|
-
}
|
|
33837
|
-
if (n.definition.targetRef) {
|
|
33838
|
-
if (n.definition.targetRef === node.definition) {
|
|
33839
|
-
return true;
|
|
33840
|
-
}
|
|
33841
|
-
}
|
|
33842
|
-
});
|
|
33843
|
-
linkedMessages.forEach(function (messageFlow) {
|
|
33844
|
-
modeler.removeNode(messageFlow);
|
|
33845
|
-
});
|
|
33846
|
-
}
|
|
33847
|
-
// Remove the associations of a node
|
|
33848
|
-
function removeNodeAssociations(node, modeler) {
|
|
33849
|
-
var linkedAssociations = modeler.nodes.filter(function (n) {
|
|
33850
|
-
if (n.definition.sourceRef) {
|
|
33851
|
-
if (n.definition.sourceRef === node.definition) {
|
|
33852
|
-
return true;
|
|
33853
|
-
}
|
|
33854
|
-
}
|
|
33855
|
-
if (n.definition.targetRef) {
|
|
33856
|
-
if (n.definition.targetRef === node.definition) {
|
|
33857
|
-
return true;
|
|
33858
|
-
}
|
|
33859
|
-
}
|
|
33860
|
-
});
|
|
33861
|
-
linkedAssociations.forEach(function (association) {
|
|
33862
|
-
modeler.removeNode(association);
|
|
33863
|
-
});
|
|
33864
|
-
}
|
|
33865
|
-
function removeBoundaryEvents(graph, node, removeNode) {
|
|
33866
|
-
var nodeShape = graph.getCells().find(function (el) {
|
|
33867
|
-
return el.component && el.component.node === node;
|
|
33868
|
-
});
|
|
33869
|
-
if (nodeShape) {
|
|
33870
|
-
nodeShape.getEmbeddedCells({
|
|
33871
|
-
deep: true
|
|
33872
|
-
}).filter(function (cell) {
|
|
33873
|
-
return cell.component && cell.component.node.isBpmnType('bpmn:BoundaryEvent');
|
|
33874
|
-
}).forEach(function (boundaryEventShape) {
|
|
33875
|
-
graph.getConnectedLinks(boundaryEventShape).forEach(function (shape) {
|
|
33876
|
-
return removeNode(shape.component.node);
|
|
33877
|
-
});
|
|
33878
|
-
removeNode(boundaryEventShape.component.node);
|
|
33879
|
-
});
|
|
33880
|
-
}
|
|
33881
|
-
}
|
|
33882
|
-
function removeOutgoingAndIncomingRefsToFlow(node) {
|
|
33883
|
-
if (node.isBpmnType(config_bpmnType, dataInputAssociation_config_bpmnType)) {
|
|
33884
|
-
return;
|
|
33885
|
-
}
|
|
33886
|
-
|
|
33887
|
-
/* Modify source and target refs to remove incoming and outgoing properties pointing to this link */
|
|
33888
|
-
var _node$definition = node.definition,
|
|
33889
|
-
sourceRef = _node$definition.sourceRef,
|
|
33890
|
-
targetRef = _node$definition.targetRef;
|
|
33891
|
-
if (sourceRef) {
|
|
33892
|
-
(0,external_lodash_.pull)(sourceRef.get('outgoing'), node.definition);
|
|
33893
|
-
}
|
|
33894
|
-
|
|
33895
|
-
/* If targetRef is defined, it could be a point or another element.
|
|
33896
|
-
* If targetRef has an id, that means it's an element and the reference to it
|
|
33897
|
-
* can be safely removed. */
|
|
33898
|
-
if (targetRef && targetRef.id) {
|
|
33899
|
-
(0,external_lodash_.pull)(targetRef.get('incoming'), node.definition);
|
|
33900
|
-
}
|
|
33901
|
-
}
|
|
33902
|
-
function removeSourceDefault(node) {
|
|
33903
|
-
var defaultId = (0,external_lodash_.get)(node, 'definition.sourceRef.default.id', null);
|
|
33904
|
-
if (defaultId && defaultId === node.id) {
|
|
33905
|
-
// unset this node as the source's default
|
|
33906
|
-
node.definition.sourceRef.set('default', null);
|
|
33907
|
-
}
|
|
33908
|
-
}
|
|
33909
|
-
function getOrFindDataInput(moddle, task, sourceNode) {
|
|
33910
|
-
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
33911
|
-
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
33912
|
-
}
|
|
33913
|
-
var sourceNodeId = sourceNode.id;
|
|
33914
|
-
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
33915
|
-
// Check if ioSpecification exists
|
|
33916
|
-
if (!task.definition.ioSpecification) {
|
|
33917
|
-
task.definition.ioSpecification = moddle.create('bpmn:InputOutputSpecification', {
|
|
33918
|
-
dataInputs: [],
|
|
33919
|
-
dataOutputs: [],
|
|
33920
|
-
inputSets: [],
|
|
33921
|
-
outputSets: []
|
|
33922
|
-
});
|
|
33923
|
-
task.definition.ioSpecification.$parent = task.definition;
|
|
33924
|
-
}
|
|
33925
|
-
// Check if dataInput exists
|
|
33926
|
-
if (!task.definition.ioSpecification.dataInputs) {
|
|
33927
|
-
task.definition.ioSpecification.set('dataInputs', []);
|
|
33928
|
-
}
|
|
33929
|
-
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
33930
|
-
return input.id === dataInputId;
|
|
33931
|
-
});
|
|
33932
|
-
if (!dataInput) {
|
|
33933
|
-
task.definition.ioSpecification.dataInputs.push(moddle.create('bpmn:DataInput', {
|
|
33934
|
-
id: dataInputId,
|
|
33935
|
-
isCollection: 'false',
|
|
33936
|
-
name: sourceNode.name
|
|
33937
|
-
}));
|
|
33938
|
-
task.definition.ioSpecification.dataInputs[task.definition.ioSpecification.dataInputs.length - 1].$parent = task.definition.ioSpecification;
|
|
33939
|
-
task.definition.ioSpecification.set('dataInputs', task.definition.ioSpecification.dataInputs);
|
|
33940
|
-
}
|
|
33941
|
-
dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
33942
|
-
return input.id === dataInputId;
|
|
33943
|
-
});
|
|
33944
|
-
// Check if outputSet exists
|
|
33945
|
-
if (!task.definition.ioSpecification.outputSets) {
|
|
33946
|
-
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
33947
|
-
dataOutputRefs: []
|
|
33948
|
-
})]);
|
|
33949
|
-
}
|
|
33950
|
-
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
33951
|
-
if (!outputSet) {
|
|
33952
|
-
task.definition.ioSpecification.set('outputSets', [moddle.create('bpmn:OutputSet', {
|
|
33953
|
-
dataOutputRefs: []
|
|
33954
|
-
})]);
|
|
33955
|
-
}
|
|
33956
|
-
outputSet = task.definition.ioSpecification.outputSets[0];
|
|
33957
|
-
// Check if inputSet exists
|
|
33958
|
-
if (!task.definition.ioSpecification.inputSets) {
|
|
33959
|
-
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
33960
|
-
dataInputRefs: []
|
|
33961
|
-
})]);
|
|
33962
|
-
}
|
|
33963
|
-
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
33964
|
-
if (!inputSet) {
|
|
33965
|
-
task.definition.ioSpecification.set('inputSets', [moddle.create('bpmn:InputSet', {
|
|
33966
|
-
dataInputRefs: []
|
|
33967
|
-
})]);
|
|
33968
|
-
}
|
|
33969
|
-
inputSet = task.definition.ioSpecification.inputSets[0];
|
|
33970
|
-
// Check if dataInputRef exists
|
|
33971
|
-
var dataInputRef = inputSet.get('dataInputRefs').find(function (ref) {
|
|
33972
|
-
return ref.id === dataInputId;
|
|
33973
|
-
});
|
|
33974
|
-
if (!dataInputRef) {
|
|
33975
|
-
inputSet.dataInputRefs.push(dataInput);
|
|
33976
|
-
}
|
|
33977
|
-
return dataInput;
|
|
33978
|
-
}
|
|
33979
|
-
function findIOSpecificationOwner(ioSpec, modeler) {
|
|
33980
|
-
var owner = ioSpec.$parent;
|
|
33981
|
-
if (!owner) {
|
|
33982
|
-
var _modeler$nodes$find;
|
|
33983
|
-
return (_modeler$nodes$find = modeler.nodes.find(function (node) {
|
|
33984
|
-
var _node$definition$ioSp;
|
|
33985
|
-
return node.definition.ioSpecification === ioSpec || ((_node$definition$ioSp = node.definition.ioSpecification) === null || _node$definition$ioSp === void 0 ? void 0 : _node$definition$ioSp.id) === ioSpec.id;
|
|
33986
|
-
})) === null || _modeler$nodes$find === void 0 ? void 0 : _modeler$nodes$find.definition;
|
|
33987
|
-
}
|
|
33988
|
-
return owner;
|
|
33989
|
-
}
|
|
33990
|
-
function removeDataInput(task, sourceNode) {
|
|
33991
|
-
if (sourceNode.$type !== 'bpmn:DataObjectReference' && sourceNode.$type !== 'bpmn:DataStoreReference') {
|
|
33992
|
-
throw 'Source node must be a DataObjectReference or bpmn:DataStoreReference, got ' + sourceNode.$type;
|
|
33993
|
-
}
|
|
33994
|
-
var sourceNodeId = sourceNode.id;
|
|
33995
|
-
var dataInputId = "data_input_".concat(sourceNodeId);
|
|
33996
|
-
// Check if ioSpecification exists
|
|
33997
|
-
if (!task.definition.ioSpecification) {
|
|
33998
|
-
return;
|
|
33999
|
-
}
|
|
34000
|
-
// Check if dataInput exists
|
|
34001
|
-
if (!task.definition.ioSpecification.dataInputs) {
|
|
34002
|
-
return;
|
|
34003
|
-
}
|
|
34004
|
-
var dataInput = task.definition.ioSpecification.dataInputs.find(function (input) {
|
|
34005
|
-
return input.id === dataInputId;
|
|
34006
|
-
});
|
|
34007
|
-
if (!dataInput) {
|
|
34008
|
-
return;
|
|
34009
|
-
}
|
|
34010
|
-
// remove dataInput from dataInputs
|
|
34011
|
-
(0,external_lodash_.pull)(task.definition.ioSpecification.dataInputs, dataInput);
|
|
34012
|
-
// Check if inputSet exists
|
|
34013
|
-
if (!task.definition.ioSpecification.inputSets) {
|
|
34014
|
-
return;
|
|
34015
|
-
}
|
|
34016
|
-
var inputSet = task.definition.ioSpecification.inputSets[0];
|
|
34017
|
-
if (!inputSet) {
|
|
34018
|
-
return;
|
|
34019
|
-
}
|
|
34020
|
-
// Check if dataInputRef exists
|
|
34021
|
-
var dataInputRef = inputSet.dataInputRefs.find(function (ref) {
|
|
34022
|
-
return ref.id === dataInputId;
|
|
34023
|
-
});
|
|
34024
|
-
if (dataInputRef) {
|
|
34025
|
-
(0,external_lodash_.pull)(inputSet.dataInputRefs, dataInputRef);
|
|
34026
|
-
}
|
|
34027
|
-
// Remove inputSets if it is empty (without any dataInputRefs)
|
|
34028
|
-
if (inputSet.dataInputRefs.length === 0) {
|
|
34029
|
-
delete task.definition.ioSpecification.inputSets;
|
|
34030
|
-
}
|
|
34031
|
-
// Remove outputSets if it is empty (without any dataOutputRefs)
|
|
34032
|
-
if (task.definition.ioSpecification.outputSets) {
|
|
34033
|
-
var outputSet = task.definition.ioSpecification.outputSets[0];
|
|
34034
|
-
if (outputSet && (!outputSet.dataOutputRefs || outputSet.dataOutputRefs.length === 0)) {
|
|
34035
|
-
delete task.definition.ioSpecification.outputSets;
|
|
34036
|
-
}
|
|
34037
|
-
}
|
|
34038
|
-
// Remove ioSpecification if it is empty (without outputSets and inputSets)
|
|
34039
|
-
if (!task.definition.ioSpecification.inputSets && !task.definition.ioSpecification.outputSets) {
|
|
34040
|
-
delete task.definition.ioSpecification;
|
|
34041
|
-
}
|
|
34042
|
-
}
|
|
34043
34063
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/crown/crownButtons/deleteButton.vue?vue&type=script&lang=js&
|
|
34044
34064
|
|
|
34045
34065
|
|
|
@@ -37191,7 +37211,7 @@ var AssociationFlow = /*#__PURE__*/function () {
|
|
|
37191
37211
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
37192
37212
|
var _this = this;
|
|
37193
37213
|
var diagram = associationConfig_diagram(this.moddle);
|
|
37194
|
-
var associationFlow =
|
|
37214
|
+
var associationFlow = associationConfig_definition(this.moddle);
|
|
37195
37215
|
associationFlow.set('sourceRef', sourceShape.component.node.definition);
|
|
37196
37216
|
associationFlow.set('targetRef', targetShape.component.node.definition);
|
|
37197
37217
|
diagram.waypoint = waypoint.map(function (point) {
|
|
@@ -37214,9 +37234,9 @@ var AssociationFlow = /*#__PURE__*/function () {
|
|
|
37214
37234
|
/* harmony default export */ var nodes_association = ({
|
|
37215
37235
|
id: associationConfig_id,
|
|
37216
37236
|
component: association,
|
|
37217
|
-
bpmnType:
|
|
37237
|
+
bpmnType: associationConfig_bpmnType,
|
|
37218
37238
|
control: false,
|
|
37219
|
-
definition:
|
|
37239
|
+
definition: associationConfig_definition,
|
|
37220
37240
|
diagram: associationConfig_diagram,
|
|
37221
37241
|
inspectorConfig: [{
|
|
37222
37242
|
name: 'Data Association',
|
|
@@ -48556,10 +48576,10 @@ var ValidationStatus_component = normalizeComponent(
|
|
|
48556
48576
|
)
|
|
48557
48577
|
|
|
48558
48578
|
/* harmony default export */ var ValidationStatus = (ValidationStatus_component.exports);
|
|
48559
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48579
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/modeler/Modeler.vue?vue&type=template&id=0eb1d90b&
|
|
48560
48580
|
|
|
48561
48581
|
|
|
48562
|
-
var
|
|
48582
|
+
var Modelervue_type_template_id_0eb1d90b_render = function render() {
|
|
48563
48583
|
var _vm = this,
|
|
48564
48584
|
_c = _vm._self._c;
|
|
48565
48585
|
return _c('span', {
|
|
@@ -48851,9 +48871,9 @@ var Modelervue_type_template_id_6560a0bb_render = function render() {
|
|
|
48851
48871
|
});
|
|
48852
48872
|
})], 2)], 1);
|
|
48853
48873
|
};
|
|
48854
|
-
var
|
|
48874
|
+
var Modelervue_type_template_id_0eb1d90b_staticRenderFns = [];
|
|
48855
48875
|
|
|
48856
|
-
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=
|
|
48876
|
+
;// CONCATENATED MODULE: ./src/components/modeler/Modeler.vue?vue&type=template&id=0eb1d90b&
|
|
48857
48877
|
|
|
48858
48878
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/nodes/boundaryEvent/boundaryEvent.vue?vue&type=template&id=728530a2&
|
|
48859
48879
|
var boundaryEventvue_type_template_id_728530a2_render = function render() {
|
|
@@ -54464,7 +54484,7 @@ var ToolBar_component = normalizeComponent(
|
|
|
54464
54484
|
|
|
54465
54485
|
function addNodeToProcess(node, targetProcess) {
|
|
54466
54486
|
var ignoredNodes = function ignoredNodes(node) {
|
|
54467
|
-
return node.isBpmnType('bpmn:MessageFlow',
|
|
54487
|
+
return node.isBpmnType('bpmn:MessageFlow', bpmnType, config_bpmnType) || node.isType('processmaker-modeler-pool');
|
|
54468
54488
|
};
|
|
54469
54489
|
if (ignoredNodes(node)) {
|
|
54470
54490
|
return;
|
|
@@ -57061,7 +57081,7 @@ var DataOutputAssociation = /*#__PURE__*/function (_DataAssociation) {
|
|
|
57061
57081
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
57062
57082
|
var _this = this;
|
|
57063
57083
|
var diagram = config_diagram(this.moddle);
|
|
57064
|
-
var dataOutputAssociation =
|
|
57084
|
+
var dataOutputAssociation = definition(this.moddle);
|
|
57065
57085
|
dataOutputAssociation.set('sourceRef', sourceShape.component.node.definition);
|
|
57066
57086
|
dataOutputAssociation.set('targetRef', targetShape.component.node.definition);
|
|
57067
57087
|
diagram.waypoint = waypoint.map(function (point) {
|
|
@@ -78147,6 +78167,7 @@ var ColorUtil = /*#__PURE__*/function () {
|
|
|
78147
78167
|
|
|
78148
78168
|
|
|
78149
78169
|
|
|
78170
|
+
|
|
78150
78171
|
|
|
78151
78172
|
|
|
78152
78173
|
var _nodeIdGenerator = /*#__PURE__*/new WeakMap();
|
|
@@ -79097,6 +79118,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
79097
79118
|
var remount = false;
|
|
79098
79119
|
var flow = this.getNodeById(data.id);
|
|
79099
79120
|
if (flow && data.sourceRefId) {
|
|
79121
|
+
removeOutgoingAndIncomingRefsToFlow(flow);
|
|
79100
79122
|
var sourceRef = this.getNodeById(data.sourceRefId);
|
|
79101
79123
|
var outgoing = sourceRef.definition.get('outgoing').find(function (element) {
|
|
79102
79124
|
return element.id === flow.definition.id;
|
|
@@ -81601,6 +81623,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81601
81623
|
localStorage.promptSessionId = response.data.promptSessionId;
|
|
81602
81624
|
}).catch(function (error) {
|
|
81603
81625
|
var _error$response;
|
|
81626
|
+
console.log('error');
|
|
81604
81627
|
var errorMsg = ((_error$response = error.response) === null || _error$response === void 0 || (_error$response = _error$response.data) === null || _error$response === void 0 ? void 0 : _error$response.message) || error.message;
|
|
81605
81628
|
_this47.loading = false;
|
|
81606
81629
|
if (error.response.status === 404) {
|
|
@@ -81678,7 +81701,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81678
81701
|
subscribeToProgress: function subscribeToProgress() {
|
|
81679
81702
|
var _window$ProcessMaker9,
|
|
81680
81703
|
_this49 = this;
|
|
81681
|
-
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker9 = window.ProcessMaker) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.
|
|
81704
|
+
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker9 = window.ProcessMaker) === null || _window$ProcessMaker9 === void 0 || (_window$ProcessMaker9 = _window$ProcessMaker9.user) === null || _window$ProcessMaker9 === void 0 ? void 0 : _window$ProcessMaker9.id);
|
|
81682
81705
|
var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsProgressEvent';
|
|
81683
81706
|
if (!window.Echo) {
|
|
81684
81707
|
return;
|
|
@@ -81723,7 +81746,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81723
81746
|
subscribeToGenerationCompleted: function subscribeToGenerationCompleted() {
|
|
81724
81747
|
var _window$ProcessMaker10,
|
|
81725
81748
|
_this50 = this;
|
|
81726
|
-
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker10 = window.ProcessMaker) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.
|
|
81749
|
+
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker10 = window.ProcessMaker) === null || _window$ProcessMaker10 === void 0 || (_window$ProcessMaker10 = _window$ProcessMaker10.user) === null || _window$ProcessMaker10 === void 0 ? void 0 : _window$ProcessMaker10.id);
|
|
81727
81750
|
var streamCompletedEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsCompletedEvent';
|
|
81728
81751
|
window.Echo.private(channel).listen(streamCompletedEvent, function (response) {
|
|
81729
81752
|
if (response.data) {
|
|
@@ -81735,7 +81758,7 @@ var Multiplayer = /*#__PURE__*/function () {
|
|
|
81735
81758
|
subscribeToErrors: function subscribeToErrors() {
|
|
81736
81759
|
var _window$ProcessMaker11,
|
|
81737
81760
|
_this51 = this;
|
|
81738
|
-
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker11 = window.ProcessMaker) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.
|
|
81761
|
+
var channel = "ProcessMaker.Models.User.".concat((_window$ProcessMaker11 = window.ProcessMaker) === null || _window$ProcessMaker11 === void 0 || (_window$ProcessMaker11 = _window$ProcessMaker11.user) === null || _window$ProcessMaker11 === void 0 ? void 0 : _window$ProcessMaker11.id);
|
|
81739
81762
|
var streamProgressEvent = '.ProcessMaker\\Package\\PackageAi\\Events\\GenerateArtifactsErrorEvent';
|
|
81740
81763
|
window.Echo.private(channel).listen(streamProgressEvent, function () {
|
|
81741
81764
|
// Output error
|
|
@@ -81847,8 +81870,8 @@ var modelervue_type_style_index_0_prod_lang_scss_ = __webpack_require__(26695);
|
|
|
81847
81870
|
|
|
81848
81871
|
var Modeler_component = normalizeComponent(
|
|
81849
81872
|
modeler_Modelervue_type_script_lang_js_,
|
|
81850
|
-
|
|
81851
|
-
|
|
81873
|
+
Modelervue_type_template_id_0eb1d90b_render,
|
|
81874
|
+
Modelervue_type_template_id_0eb1d90b_staticRenderFns,
|
|
81852
81875
|
false,
|
|
81853
81876
|
null,
|
|
81854
81877
|
null,
|
|
@@ -82190,7 +82213,7 @@ var DataInputAssociation = /*#__PURE__*/function () {
|
|
|
82190
82213
|
value: function makeFlowNode(sourceShape, targetShape, waypoint) {
|
|
82191
82214
|
var _this = this;
|
|
82192
82215
|
var diagram = dataInputAssociation_config_diagram(this.moddle);
|
|
82193
|
-
var associationFlow =
|
|
82216
|
+
var associationFlow = config_definition(this.moddle);
|
|
82194
82217
|
|
|
82195
82218
|
// When saving the BPMN, if this is not an array the sourceRef is not stored
|
|
82196
82219
|
var dataInput = getOrFindDataInput(this.moddle, targetShape.component.node, sourceShape.component.node.definition);
|