camunda-bpmn-js 4.17.0 → 4.18.0
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/base-modeler.development.js +262 -243
- package/dist/base-modeler.production.min.js +2 -2
- package/dist/camunda-cloud-modeler.development.js +587 -421
- package/dist/camunda-cloud-modeler.production.min.js +7 -7
- package/dist/camunda-cloud-navigated-viewer.development.js +18 -0
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +18 -0
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +537 -512
- package/dist/camunda-platform-modeler.production.min.js +3 -3
- package/package.json +7 -7
|
@@ -27687,29 +27687,34 @@
|
|
|
27687
27687
|
* Update context pad position.
|
|
27688
27688
|
*/
|
|
27689
27689
|
ContextPad.prototype._updatePosition = function() {
|
|
27690
|
-
if (!this.isOpen()) {
|
|
27691
|
-
return;
|
|
27692
|
-
}
|
|
27693
27690
|
|
|
27694
|
-
|
|
27691
|
+
const updateFn = () => {
|
|
27692
|
+
if (!this.isOpen()) {
|
|
27693
|
+
return;
|
|
27694
|
+
}
|
|
27695
27695
|
|
|
27696
|
-
|
|
27696
|
+
var html = this._current.html;
|
|
27697
27697
|
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
|
|
27698
|
+
var position = this._getPosition(this._current.target);
|
|
27699
|
+
|
|
27700
|
+
if ('x' in position && 'y' in position) {
|
|
27701
|
+
html.style.left = position.x + 'px';
|
|
27702
|
+
html.style.top = position.y + 'px';
|
|
27703
|
+
} else {
|
|
27704
|
+
[
|
|
27705
|
+
'top',
|
|
27706
|
+
'right',
|
|
27707
|
+
'bottom',
|
|
27708
|
+
'left'
|
|
27709
|
+
].forEach(function(key) {
|
|
27710
|
+
if (key in position) {
|
|
27711
|
+
html.style[ key ] = position[ key ] + 'px';
|
|
27712
|
+
}
|
|
27713
|
+
});
|
|
27714
|
+
}
|
|
27715
|
+
};
|
|
27716
|
+
|
|
27717
|
+
this._scheduler.schedule(updateFn, 'ContextPad#_updatePosition');
|
|
27713
27718
|
};
|
|
27714
27719
|
|
|
27715
27720
|
/**
|
|
@@ -44915,9 +44920,16 @@
|
|
|
44915
44920
|
hints.moveChildren = false;
|
|
44916
44921
|
}
|
|
44917
44922
|
|
|
44918
|
-
// apply same
|
|
44919
|
-
|
|
44920
|
-
|
|
44923
|
+
// apply same directionality
|
|
44924
|
+
var isHorizontalPool = isHorizontal$3(element);
|
|
44925
|
+
if (!getDi$1(element).isHorizontal) {
|
|
44926
|
+
getDi$1(newElement).isHorizontal = isHorizontalPool;
|
|
44927
|
+
}
|
|
44928
|
+
|
|
44929
|
+
// keep the existing size of the pool's direction to
|
|
44930
|
+
// prevent dangling message flows
|
|
44931
|
+
newElement.width = isHorizontalPool ? element.width : elementFactory.getDefaultSize(newElement).width;
|
|
44932
|
+
newElement.height = isHorizontalPool ? elementFactory.getDefaultSize(newElement).height : element.height;
|
|
44921
44933
|
}
|
|
44922
44934
|
|
|
44923
44935
|
if (!rules.allowed('shape.resize', { shape: newBusinessObject })) {
|
|
@@ -48603,10 +48615,17 @@
|
|
|
48603
48615
|
}
|
|
48604
48616
|
|
|
48605
48617
|
if (is$6(bo, 'bpmn:Participant')) {
|
|
48618
|
+
var isHorizontalPool = di.isHorizontal === undefined || di.isHorizontal === true;
|
|
48606
48619
|
if (isExpanded$1(bo, di)) {
|
|
48607
|
-
|
|
48620
|
+
if (isHorizontalPool) {
|
|
48621
|
+
return { width: 600, height: 250 };
|
|
48622
|
+
}
|
|
48623
|
+
return { width: 250, height: 600 };
|
|
48608
48624
|
} else {
|
|
48609
|
-
|
|
48625
|
+
if (isHorizontalPool) {
|
|
48626
|
+
return { width: 400, height: 60 };
|
|
48627
|
+
}
|
|
48628
|
+
return { width: 60, height: 400 };
|
|
48610
48629
|
}
|
|
48611
48630
|
}
|
|
48612
48631
|
|
|
@@ -115434,8 +115453,8 @@
|
|
|
115434
115453
|
});
|
|
115435
115454
|
const selectedElement = state.selectedElement;
|
|
115436
115455
|
|
|
115437
|
-
/**
|
|
115438
|
-
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
115456
|
+
/**
|
|
115457
|
+
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
115439
115458
|
*/
|
|
115440
115459
|
const _update = element => {
|
|
115441
115460
|
if (!element) {
|
|
@@ -115620,10 +115639,10 @@
|
|
|
115620
115639
|
|
|
115621
115640
|
const DEFAULT_PRIORITY$1 = 1000;
|
|
115622
115641
|
|
|
115623
|
-
/**
|
|
115624
|
-
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
115625
|
-
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
115626
|
-
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
115642
|
+
/**
|
|
115643
|
+
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
115644
|
+
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
115645
|
+
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
115627
115646
|
*/
|
|
115628
115647
|
|
|
115629
115648
|
class BpmnPropertiesPanelRenderer {
|
|
@@ -115660,10 +115679,10 @@
|
|
|
115660
115679
|
});
|
|
115661
115680
|
}
|
|
115662
115681
|
|
|
115663
|
-
/**
|
|
115664
|
-
* Attach the properties panel to a parent node.
|
|
115665
|
-
*
|
|
115666
|
-
* @param {HTMLElement} container
|
|
115682
|
+
/**
|
|
115683
|
+
* Attach the properties panel to a parent node.
|
|
115684
|
+
*
|
|
115685
|
+
* @param {HTMLElement} container
|
|
115667
115686
|
*/
|
|
115668
115687
|
attachTo(container) {
|
|
115669
115688
|
if (!container) {
|
|
@@ -115688,8 +115707,8 @@
|
|
|
115688
115707
|
this._eventBus.fire('propertiesPanel.attach');
|
|
115689
115708
|
}
|
|
115690
115709
|
|
|
115691
|
-
/**
|
|
115692
|
-
* Detach the properties panel from its parent node.
|
|
115710
|
+
/**
|
|
115711
|
+
* Detach the properties panel from its parent node.
|
|
115693
115712
|
*/
|
|
115694
115713
|
detach() {
|
|
115695
115714
|
const parentNode = this._container.parentNode;
|
|
@@ -115699,11 +115718,11 @@
|
|
|
115699
115718
|
}
|
|
115700
115719
|
}
|
|
115701
115720
|
|
|
115702
|
-
/**
|
|
115703
|
-
* Register a new properties provider to the properties panel.
|
|
115704
|
-
*
|
|
115705
|
-
* @param {Number} [priority]
|
|
115706
|
-
* @param {PropertiesProvider} provider
|
|
115721
|
+
/**
|
|
115722
|
+
* Register a new properties provider to the properties panel.
|
|
115723
|
+
*
|
|
115724
|
+
* @param {Number} [priority]
|
|
115725
|
+
* @param {PropertiesProvider} provider
|
|
115707
115726
|
*/
|
|
115708
115727
|
registerProvider(priority, provider) {
|
|
115709
115728
|
if (!provider) {
|
|
@@ -115720,9 +115739,9 @@
|
|
|
115720
115739
|
this._eventBus.fire('propertiesPanel.providersChanged');
|
|
115721
115740
|
}
|
|
115722
115741
|
|
|
115723
|
-
/**
|
|
115724
|
-
* Updates the layout of the properties panel.
|
|
115725
|
-
* @param {Object} layout
|
|
115742
|
+
/**
|
|
115743
|
+
* Updates the layout of the properties panel.
|
|
115744
|
+
* @param {Object} layout
|
|
115726
115745
|
*/
|
|
115727
115746
|
setLayout(layout) {
|
|
115728
115747
|
this._eventBus.fire('propertiesPanel.setLayout', {
|
|
@@ -115772,12 +115791,12 @@
|
|
|
115772
115791
|
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
115773
115792
|
}
|
|
115774
115793
|
|
|
115775
|
-
/**
|
|
115776
|
-
* Setup keyboard bindings (undo, redo) on the given container.
|
|
115777
|
-
*
|
|
115778
|
-
* @param {Element} container
|
|
115779
|
-
* @param {EventBus} eventBus
|
|
115780
|
-
* @param {CommandStack} commandStack
|
|
115794
|
+
/**
|
|
115795
|
+
* Setup keyboard bindings (undo, redo) on the given container.
|
|
115796
|
+
*
|
|
115797
|
+
* @param {Element} container
|
|
115798
|
+
* @param {EventBus} eventBus
|
|
115799
|
+
* @param {CommandStack} commandStack
|
|
115781
115800
|
*/
|
|
115782
115801
|
function setupKeyboard(container, eventBus, commandStack) {
|
|
115783
115802
|
function cancel(event) {
|
|
@@ -115802,14 +115821,14 @@
|
|
|
115802
115821
|
});
|
|
115803
115822
|
}
|
|
115804
115823
|
|
|
115805
|
-
/**
|
|
115806
|
-
* A handler that combines and executes multiple commands.
|
|
115807
|
-
*
|
|
115808
|
-
* All updates are bundled on the command stack and executed in one step.
|
|
115809
|
-
* This also makes it possible to revert the changes in one step.
|
|
115810
|
-
*
|
|
115811
|
-
* Example use case: remove the camunda:formKey attribute and in addition
|
|
115812
|
-
* add all form fields needed for the camunda:formData property.
|
|
115824
|
+
/**
|
|
115825
|
+
* A handler that combines and executes multiple commands.
|
|
115826
|
+
*
|
|
115827
|
+
* All updates are bundled on the command stack and executed in one step.
|
|
115828
|
+
* This also makes it possible to revert the changes in one step.
|
|
115829
|
+
*
|
|
115830
|
+
* Example use case: remove the camunda:formKey attribute and in addition
|
|
115831
|
+
* add all form fields needed for the camunda:formData property.
|
|
115813
115832
|
*/
|
|
115814
115833
|
let MultiCommandHandler$1 = class MultiCommandHandler {
|
|
115815
115834
|
constructor(commandStack) {
|
|
@@ -115936,12 +115955,12 @@
|
|
|
115936
115955
|
return compensateEventDefinition && compensateEventDefinition.get('activityRef');
|
|
115937
115956
|
}
|
|
115938
115957
|
|
|
115939
|
-
/**
|
|
115940
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
115958
|
+
/**
|
|
115959
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
115941
115960
|
*/
|
|
115942
115961
|
|
|
115943
|
-
/**
|
|
115944
|
-
* @returns {Array<Entry>} entries
|
|
115962
|
+
/**
|
|
115963
|
+
* @returns {Array<Entry>} entries
|
|
115945
115964
|
*/
|
|
115946
115965
|
function CompensationProps(props) {
|
|
115947
115966
|
const {
|
|
@@ -116051,12 +116070,12 @@
|
|
|
116051
116070
|
return getFlowElements(element, 'bpmn:BoundaryEvent');
|
|
116052
116071
|
}
|
|
116053
116072
|
|
|
116054
|
-
/**
|
|
116055
|
-
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
116056
|
-
*
|
|
116057
|
-
* @param {ModdleElement} activity
|
|
116058
|
-
* @param {Array<ModdleElement>} boundaryEvents
|
|
116059
|
-
* @returns {Boolean}
|
|
116073
|
+
/**
|
|
116074
|
+
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
116075
|
+
*
|
|
116076
|
+
* @param {ModdleElement} activity
|
|
116077
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
116078
|
+
* @returns {Boolean}
|
|
116060
116079
|
*/
|
|
116061
116080
|
function hasCompensationEventAttached(activity, boundaryEvents) {
|
|
116062
116081
|
const {
|
|
@@ -116071,15 +116090,15 @@
|
|
|
116071
116090
|
});
|
|
116072
116091
|
}
|
|
116073
116092
|
|
|
116074
|
-
/**
|
|
116075
|
-
* Checks whether an Activity can be compensated. That's the case when it is
|
|
116076
|
-
* a) a CallActivity
|
|
116077
|
-
* b) a SubProcess, when it is not event based and not a compensation
|
|
116078
|
-
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
116079
|
-
*
|
|
116080
|
-
* @param {ModdleElement} activity
|
|
116081
|
-
* @param {Array<ModdleElement>} boundaryEvents
|
|
116082
|
-
* @returns {Boolean}
|
|
116093
|
+
/**
|
|
116094
|
+
* Checks whether an Activity can be compensated. That's the case when it is
|
|
116095
|
+
* a) a CallActivity
|
|
116096
|
+
* b) a SubProcess, when it is not event based and not a compensation
|
|
116097
|
+
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
116098
|
+
*
|
|
116099
|
+
* @param {ModdleElement} activity
|
|
116100
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
116101
|
+
* @returns {Boolean}
|
|
116083
116102
|
*/
|
|
116084
116103
|
function canBeCompensated(activity, boundaryEvents) {
|
|
116085
116104
|
return is$6(activity, 'bpmn:CallActivity') || is$6(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
|
|
@@ -116092,11 +116111,11 @@
|
|
|
116092
116111
|
});
|
|
116093
116112
|
}
|
|
116094
116113
|
|
|
116095
|
-
/**
|
|
116096
|
-
* Retrieves all possible activities to reference for a Compensation.
|
|
116097
|
-
*
|
|
116098
|
-
* @param {djs.model.Base} element
|
|
116099
|
-
* @returns {Array<ModdleElement>}
|
|
116114
|
+
/**
|
|
116115
|
+
* Retrieves all possible activities to reference for a Compensation.
|
|
116116
|
+
*
|
|
116117
|
+
* @param {djs.model.Base} element
|
|
116118
|
+
* @returns {Array<ModdleElement>}
|
|
116100
116119
|
*/
|
|
116101
116120
|
function findActivityRefs(element) {
|
|
116102
116121
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -116116,13 +116135,13 @@
|
|
|
116116
116135
|
return activities;
|
|
116117
116136
|
}
|
|
116118
116137
|
|
|
116119
|
-
/**
|
|
116120
|
-
* Retrieves an option label in the form
|
|
116121
|
-
* a) with name: "my Task (id=Task_1)"
|
|
116122
|
-
* b) without name: "(id=Task_1)"
|
|
116123
|
-
*
|
|
116124
|
-
* @param {ModdleElement} activity
|
|
116125
|
-
* @returns {String}
|
|
116138
|
+
/**
|
|
116139
|
+
* Retrieves an option label in the form
|
|
116140
|
+
* a) with name: "my Task (id=Task_1)"
|
|
116141
|
+
* b) without name: "(id=Task_1)"
|
|
116142
|
+
*
|
|
116143
|
+
* @param {ModdleElement} activity
|
|
116144
|
+
* @returns {String}
|
|
116126
116145
|
*/
|
|
116127
116146
|
function createOptionLabel(activity) {
|
|
116128
116147
|
const {
|
|
@@ -116137,12 +116156,12 @@
|
|
|
116137
116156
|
|
|
116138
116157
|
const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
|
|
116139
116158
|
|
|
116140
|
-
/**
|
|
116141
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116159
|
+
/**
|
|
116160
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116142
116161
|
*/
|
|
116143
116162
|
|
|
116144
|
-
/**
|
|
116145
|
-
* @returns {Array<Entry>} entries
|
|
116163
|
+
/**
|
|
116164
|
+
* @returns {Array<Entry>} entries
|
|
116146
116165
|
*/
|
|
116147
116166
|
function DocumentationProps(props) {
|
|
116148
116167
|
const {
|
|
@@ -116213,12 +116232,12 @@
|
|
|
116213
116232
|
});
|
|
116214
116233
|
}
|
|
116215
116234
|
|
|
116216
|
-
/**
|
|
116217
|
-
* Retrieves a documentation element from a given moddle element.
|
|
116218
|
-
*
|
|
116219
|
-
* @param {ModdleElement} businessObject
|
|
116220
|
-
*
|
|
116221
|
-
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
116235
|
+
/**
|
|
116236
|
+
* Retrieves a documentation element from a given moddle element.
|
|
116237
|
+
*
|
|
116238
|
+
* @param {ModdleElement} businessObject
|
|
116239
|
+
*
|
|
116240
|
+
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
116222
116241
|
*/
|
|
116223
116242
|
function getDocumentation(businessObject) {
|
|
116224
116243
|
return function () {
|
|
@@ -116227,10 +116246,10 @@
|
|
|
116227
116246
|
};
|
|
116228
116247
|
}
|
|
116229
116248
|
|
|
116230
|
-
/**
|
|
116231
|
-
* Sets a documentation element for a given moddle element.
|
|
116232
|
-
*
|
|
116233
|
-
* @param {ModdleElement} businessObject
|
|
116249
|
+
/**
|
|
116250
|
+
* Sets a documentation element for a given moddle element.
|
|
116251
|
+
*
|
|
116252
|
+
* @param {ModdleElement} businessObject
|
|
116234
116253
|
*/
|
|
116235
116254
|
function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
|
|
116236
116255
|
return function (value) {
|
|
@@ -116273,15 +116292,15 @@
|
|
|
116273
116292
|
};
|
|
116274
116293
|
}
|
|
116275
116294
|
|
|
116276
|
-
/**
|
|
116277
|
-
* Create a new element and (optionally) set its parent.
|
|
116278
|
-
*
|
|
116279
|
-
* @param {string} type
|
|
116280
|
-
* @param {Object} properties
|
|
116281
|
-
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
116282
|
-
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
116283
|
-
*
|
|
116284
|
-
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
116295
|
+
/**
|
|
116296
|
+
* Create a new element and (optionally) set its parent.
|
|
116297
|
+
*
|
|
116298
|
+
* @param {string} type
|
|
116299
|
+
* @param {Object} properties
|
|
116300
|
+
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
116301
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
116302
|
+
*
|
|
116303
|
+
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
116285
116304
|
*/
|
|
116286
116305
|
function createElement$3(type, properties, parent, bpmnFactory) {
|
|
116287
116306
|
const element = bpmnFactory.create(type, properties);
|
|
@@ -116291,8 +116310,8 @@
|
|
|
116291
116310
|
return element;
|
|
116292
116311
|
}
|
|
116293
116312
|
|
|
116294
|
-
/**
|
|
116295
|
-
* generate a semantic id with given prefix
|
|
116313
|
+
/**
|
|
116314
|
+
* generate a semantic id with given prefix
|
|
116296
116315
|
*/
|
|
116297
116316
|
function nextId$1(prefix) {
|
|
116298
116317
|
const ids = new Ids$1([32, 32, 1]);
|
|
@@ -116321,12 +116340,12 @@
|
|
|
116321
116340
|
const EMPTY_OPTION$4 = '';
|
|
116322
116341
|
const CREATE_NEW_OPTION$4 = 'create-new';
|
|
116323
116342
|
|
|
116324
|
-
/**
|
|
116325
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116343
|
+
/**
|
|
116344
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116326
116345
|
*/
|
|
116327
116346
|
|
|
116328
|
-
/**
|
|
116329
|
-
* @returns {Array<Entry>} entries
|
|
116347
|
+
/**
|
|
116348
|
+
* @returns {Array<Entry>} entries
|
|
116330
116349
|
*/
|
|
116331
116350
|
function ErrorProps$2(props) {
|
|
116332
116351
|
const {
|
|
@@ -116502,12 +116521,12 @@
|
|
|
116502
116521
|
|
|
116503
116522
|
const CREATE_NEW_OPTION$3 = 'create-new';
|
|
116504
116523
|
|
|
116505
|
-
/**
|
|
116506
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116524
|
+
/**
|
|
116525
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116507
116526
|
*/
|
|
116508
116527
|
|
|
116509
|
-
/**
|
|
116510
|
-
* @returns {Array<Entry>} entries
|
|
116528
|
+
/**
|
|
116529
|
+
* @returns {Array<Entry>} entries
|
|
116511
116530
|
*/
|
|
116512
116531
|
function EscalationProps$2(props) {
|
|
116513
116532
|
const {
|
|
@@ -116680,12 +116699,12 @@
|
|
|
116680
116699
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
116681
116700
|
}
|
|
116682
116701
|
|
|
116683
|
-
/**
|
|
116684
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116702
|
+
/**
|
|
116703
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116685
116704
|
*/
|
|
116686
116705
|
|
|
116687
|
-
/**
|
|
116688
|
-
* @returns {Array<Entry>} entries
|
|
116706
|
+
/**
|
|
116707
|
+
* @returns {Array<Entry>} entries
|
|
116689
116708
|
*/
|
|
116690
116709
|
function ExecutableProps(props) {
|
|
116691
116710
|
const {
|
|
@@ -116756,14 +116775,14 @@
|
|
|
116756
116775
|
// for ID validation as per BPMN Schema (QName - Namespace)
|
|
116757
116776
|
const ID_REGEX = /^[a-z_][\w-.]*$/i;
|
|
116758
116777
|
|
|
116759
|
-
/**
|
|
116760
|
-
* checks whether the id value is valid
|
|
116761
|
-
*
|
|
116762
|
-
* @param {ModdleElement} element
|
|
116763
|
-
* @param {String} idValue
|
|
116764
|
-
* @param {Function} translate
|
|
116765
|
-
*
|
|
116766
|
-
* @return {String} error message
|
|
116778
|
+
/**
|
|
116779
|
+
* checks whether the id value is valid
|
|
116780
|
+
*
|
|
116781
|
+
* @param {ModdleElement} element
|
|
116782
|
+
* @param {String} idValue
|
|
116783
|
+
* @param {Function} translate
|
|
116784
|
+
*
|
|
116785
|
+
* @return {String} error message
|
|
116767
116786
|
*/
|
|
116768
116787
|
function isIdValid(element, idValue, translate) {
|
|
116769
116788
|
const assigned = element.$model.ids.assigned(idValue);
|
|
@@ -116791,12 +116810,12 @@
|
|
|
116791
116810
|
return SPACE_REGEX.test(value);
|
|
116792
116811
|
}
|
|
116793
116812
|
|
|
116794
|
-
/**
|
|
116795
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116813
|
+
/**
|
|
116814
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116796
116815
|
*/
|
|
116797
116816
|
|
|
116798
|
-
/**
|
|
116799
|
-
* @returns {Array<Entry>} entries
|
|
116817
|
+
/**
|
|
116818
|
+
* @returns {Array<Entry>} entries
|
|
116800
116819
|
*/
|
|
116801
116820
|
function IdProps$1() {
|
|
116802
116821
|
return [{
|
|
@@ -116838,12 +116857,12 @@
|
|
|
116838
116857
|
});
|
|
116839
116858
|
}
|
|
116840
116859
|
|
|
116841
|
-
/**
|
|
116842
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116860
|
+
/**
|
|
116861
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116843
116862
|
*/
|
|
116844
116863
|
|
|
116845
|
-
/**
|
|
116846
|
-
* @returns {Array<Entry>} entries
|
|
116864
|
+
/**
|
|
116865
|
+
* @returns {Array<Entry>} entries
|
|
116847
116866
|
*/
|
|
116848
116867
|
function LinkProps(props) {
|
|
116849
116868
|
const {
|
|
@@ -116891,12 +116910,12 @@
|
|
|
116891
116910
|
const EMPTY_OPTION$3 = '';
|
|
116892
116911
|
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
116893
116912
|
|
|
116894
|
-
/**
|
|
116895
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116913
|
+
/**
|
|
116914
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
116896
116915
|
*/
|
|
116897
116916
|
|
|
116898
|
-
/**
|
|
116899
|
-
* @returns {Array<Entry>} entries
|
|
116917
|
+
/**
|
|
116918
|
+
* @returns {Array<Entry>} entries
|
|
116900
116919
|
*/
|
|
116901
116920
|
function MessageProps$1(props) {
|
|
116902
116921
|
const {
|
|
@@ -117039,12 +117058,12 @@
|
|
|
117039
117058
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
117040
117059
|
}
|
|
117041
117060
|
|
|
117042
|
-
/**
|
|
117043
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117061
|
+
/**
|
|
117062
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117044
117063
|
*/
|
|
117045
117064
|
|
|
117046
|
-
/**
|
|
117047
|
-
* @returns {Array<Entry>} entries
|
|
117065
|
+
/**
|
|
117066
|
+
* @returns {Array<Entry>} entries
|
|
117048
117067
|
*/
|
|
117049
117068
|
function MultiInstanceProps$2(props) {
|
|
117050
117069
|
const {
|
|
@@ -117115,59 +117134,59 @@
|
|
|
117115
117134
|
|
|
117116
117135
|
// generic ///////////////////////////
|
|
117117
117136
|
|
|
117118
|
-
/**
|
|
117119
|
-
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
117120
|
-
*
|
|
117121
|
-
* @param {djs.model.Base} element
|
|
117122
|
-
* @return {boolean}
|
|
117137
|
+
/**
|
|
117138
|
+
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
117139
|
+
*
|
|
117140
|
+
* @param {djs.model.Base} element
|
|
117141
|
+
* @return {boolean}
|
|
117123
117142
|
*/
|
|
117124
117143
|
function isMultiInstanceSupported$1(element) {
|
|
117125
117144
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
117126
117145
|
return !!loopCharacteristics && is$6(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
|
|
117127
117146
|
}
|
|
117128
117147
|
|
|
117129
|
-
/**
|
|
117130
|
-
* getBody - get the body of a given expression.
|
|
117131
|
-
*
|
|
117132
|
-
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
117133
|
-
* @return {string} the body (value) of the expression
|
|
117148
|
+
/**
|
|
117149
|
+
* getBody - get the body of a given expression.
|
|
117150
|
+
*
|
|
117151
|
+
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
117152
|
+
* @return {string} the body (value) of the expression
|
|
117134
117153
|
*/
|
|
117135
117154
|
function getBody(expression) {
|
|
117136
117155
|
return expression && expression.get('body');
|
|
117137
117156
|
}
|
|
117138
117157
|
|
|
117139
|
-
/**
|
|
117140
|
-
* getProperty - get a property value of the loop characteristics.
|
|
117141
|
-
*
|
|
117142
|
-
* @param {djs.model.Base} element
|
|
117143
|
-
* @param {string} propertyName
|
|
117144
|
-
*
|
|
117145
|
-
* @return {any} the property value
|
|
117158
|
+
/**
|
|
117159
|
+
* getProperty - get a property value of the loop characteristics.
|
|
117160
|
+
*
|
|
117161
|
+
* @param {djs.model.Base} element
|
|
117162
|
+
* @param {string} propertyName
|
|
117163
|
+
*
|
|
117164
|
+
* @return {any} the property value
|
|
117146
117165
|
*/
|
|
117147
117166
|
function getProperty$2(element, propertyName) {
|
|
117148
117167
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
117149
117168
|
return loopCharacteristics && loopCharacteristics.get(propertyName);
|
|
117150
117169
|
}
|
|
117151
117170
|
|
|
117152
|
-
/**
|
|
117153
|
-
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
117154
|
-
*
|
|
117155
|
-
* @param {djs.model.Base} element
|
|
117156
|
-
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
117171
|
+
/**
|
|
117172
|
+
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
117173
|
+
*
|
|
117174
|
+
* @param {djs.model.Base} element
|
|
117175
|
+
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
117157
117176
|
*/
|
|
117158
117177
|
function getLoopCharacteristics$2(element) {
|
|
117159
117178
|
const bo = getBusinessObject$2(element);
|
|
117160
117179
|
return bo.loopCharacteristics;
|
|
117161
117180
|
}
|
|
117162
117181
|
|
|
117163
|
-
/**
|
|
117164
|
-
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
117165
|
-
*
|
|
117166
|
-
* @param {ModdleElement} parent
|
|
117167
|
-
* @param {string} body
|
|
117168
|
-
* @param {BpmnFactory} bpmnFactory
|
|
117169
|
-
*
|
|
117170
|
-
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
117182
|
+
/**
|
|
117183
|
+
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
117184
|
+
*
|
|
117185
|
+
* @param {ModdleElement} parent
|
|
117186
|
+
* @param {string} body
|
|
117187
|
+
* @param {BpmnFactory} bpmnFactory
|
|
117188
|
+
*
|
|
117189
|
+
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
117171
117190
|
*/
|
|
117172
117191
|
function createFormalExpression$1(parent, body, bpmnFactory) {
|
|
117173
117192
|
return createElement$3('bpmn:FormalExpression', {
|
|
@@ -117175,13 +117194,13 @@
|
|
|
117175
117194
|
}, parent, bpmnFactory);
|
|
117176
117195
|
}
|
|
117177
117196
|
|
|
117178
|
-
/**
|
|
117179
|
-
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
117180
|
-
*
|
|
117181
|
-
* @param {djs.model.Base} element
|
|
117182
|
-
* @param {string} propertyName
|
|
117183
|
-
* @param {string} newValue
|
|
117184
|
-
* @param {BpmnFactory} bpmnFactory
|
|
117197
|
+
/**
|
|
117198
|
+
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
117199
|
+
*
|
|
117200
|
+
* @param {djs.model.Base} element
|
|
117201
|
+
* @param {string} propertyName
|
|
117202
|
+
* @param {string} newValue
|
|
117203
|
+
* @param {BpmnFactory} bpmnFactory
|
|
117185
117204
|
*/
|
|
117186
117205
|
function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
|
|
117187
117206
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
@@ -117218,23 +117237,23 @@
|
|
|
117218
117237
|
|
|
117219
117238
|
// loopCardinality
|
|
117220
117239
|
|
|
117221
|
-
/**
|
|
117222
|
-
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
117223
|
-
*
|
|
117224
|
-
* @param {djs.model.Base} element
|
|
117225
|
-
*
|
|
117226
|
-
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
117240
|
+
/**
|
|
117241
|
+
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
117242
|
+
*
|
|
117243
|
+
* @param {djs.model.Base} element
|
|
117244
|
+
*
|
|
117245
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
117227
117246
|
*/
|
|
117228
117247
|
function getLoopCardinality(element) {
|
|
117229
117248
|
return getProperty$2(element, 'loopCardinality');
|
|
117230
117249
|
}
|
|
117231
117250
|
|
|
117232
|
-
/**
|
|
117233
|
-
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
117234
|
-
*
|
|
117235
|
-
* @param {djs.model.Base} element
|
|
117236
|
-
*
|
|
117237
|
-
* @return {string} the loop cardinality value
|
|
117251
|
+
/**
|
|
117252
|
+
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
117253
|
+
*
|
|
117254
|
+
* @param {djs.model.Base} element
|
|
117255
|
+
*
|
|
117256
|
+
* @return {string} the loop cardinality value
|
|
117238
117257
|
*/
|
|
117239
117258
|
function getLoopCardinalityValue(element) {
|
|
117240
117259
|
const loopCardinality = getLoopCardinality(element);
|
|
@@ -117243,35 +117262,35 @@
|
|
|
117243
117262
|
|
|
117244
117263
|
// completionCondition /////////////////////
|
|
117245
117264
|
|
|
117246
|
-
/**
|
|
117247
|
-
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
117248
|
-
*
|
|
117249
|
-
* @param {djs.model.Base} element
|
|
117250
|
-
*
|
|
117251
|
-
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
117265
|
+
/**
|
|
117266
|
+
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
117267
|
+
*
|
|
117268
|
+
* @param {djs.model.Base} element
|
|
117269
|
+
*
|
|
117270
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
117252
117271
|
*/
|
|
117253
117272
|
function getCompletionCondition$1(element) {
|
|
117254
117273
|
return getProperty$2(element, 'completionCondition');
|
|
117255
117274
|
}
|
|
117256
117275
|
|
|
117257
|
-
/**
|
|
117258
|
-
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
117259
|
-
*
|
|
117260
|
-
* @param {djs.model.Base} element
|
|
117261
|
-
*
|
|
117262
|
-
* @return {string} the completion condition value
|
|
117276
|
+
/**
|
|
117277
|
+
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
117278
|
+
*
|
|
117279
|
+
* @param {djs.model.Base} element
|
|
117280
|
+
*
|
|
117281
|
+
* @return {string} the completion condition value
|
|
117263
117282
|
*/
|
|
117264
117283
|
function getCompletionConditionValue(element) {
|
|
117265
117284
|
const completionCondition = getCompletionCondition$1(element);
|
|
117266
117285
|
return getBody(completionCondition);
|
|
117267
117286
|
}
|
|
117268
117287
|
|
|
117269
|
-
/**
|
|
117270
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117288
|
+
/**
|
|
117289
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117271
117290
|
*/
|
|
117272
117291
|
|
|
117273
|
-
/**
|
|
117274
|
-
* @returns {Array<Entry>} entries
|
|
117292
|
+
/**
|
|
117293
|
+
* @returns {Array<Entry>} entries
|
|
117275
117294
|
*/
|
|
117276
117295
|
function NameProps(props) {
|
|
117277
117296
|
const {
|
|
@@ -117375,12 +117394,12 @@
|
|
|
117375
117394
|
return categoryValue;
|
|
117376
117395
|
}
|
|
117377
117396
|
|
|
117378
|
-
/**
|
|
117379
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117397
|
+
/**
|
|
117398
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117380
117399
|
*/
|
|
117381
117400
|
|
|
117382
|
-
/**
|
|
117383
|
-
* @returns {Array<Entry>} entries
|
|
117401
|
+
/**
|
|
117402
|
+
* @returns {Array<Entry>} entries
|
|
117384
117403
|
*/
|
|
117385
117404
|
function ProcessProps$1(props) {
|
|
117386
117405
|
const {
|
|
@@ -117471,15 +117490,15 @@
|
|
|
117471
117490
|
return is$6(element, 'bpmn:Participant') && element.businessObject.get('processRef');
|
|
117472
117491
|
}
|
|
117473
117492
|
|
|
117474
|
-
/**
|
|
117475
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117493
|
+
/**
|
|
117494
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
117476
117495
|
*/
|
|
117477
117496
|
|
|
117478
117497
|
const EMPTY_OPTION$2 = '';
|
|
117479
117498
|
const CREATE_NEW_OPTION$1 = 'create-new';
|
|
117480
117499
|
|
|
117481
|
-
/**
|
|
117482
|
-
* @returns {Entry[]}
|
|
117500
|
+
/**
|
|
117501
|
+
* @returns {Entry[]}
|
|
117483
117502
|
*/
|
|
117484
117503
|
function SignalProps$1(props) {
|
|
117485
117504
|
const {
|
|
@@ -117629,12 +117648,12 @@
|
|
|
117629
117648
|
return isAny$1(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition$1(element);
|
|
117630
117649
|
}
|
|
117631
117650
|
|
|
117632
|
-
/**
|
|
117633
|
-
* Get the timer definition type for a given timer event definition.
|
|
117634
|
-
*
|
|
117635
|
-
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
117636
|
-
*
|
|
117637
|
-
* @return {string|undefined} the timer definition type
|
|
117651
|
+
/**
|
|
117652
|
+
* Get the timer definition type for a given timer event definition.
|
|
117653
|
+
*
|
|
117654
|
+
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
117655
|
+
*
|
|
117656
|
+
* @return {string|undefined} the timer definition type
|
|
117638
117657
|
*/
|
|
117639
117658
|
function getTimerDefinitionType(timer) {
|
|
117640
117659
|
if (!timer) {
|
|
@@ -117717,12 +117736,12 @@
|
|
|
117717
117736
|
return entries;
|
|
117718
117737
|
}
|
|
117719
117738
|
|
|
117720
|
-
/**
|
|
117721
|
-
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
117722
|
-
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
117723
|
-
*
|
|
117724
|
-
* @param {type} props
|
|
117725
|
-
* @return {SelectEntry}
|
|
117739
|
+
/**
|
|
117740
|
+
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
117741
|
+
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
117742
|
+
*
|
|
117743
|
+
* @param {type} props
|
|
117744
|
+
* @return {SelectEntry}
|
|
117726
117745
|
*/
|
|
117727
117746
|
function TimerEventDefinitionType$2(props) {
|
|
117728
117747
|
const {
|
|
@@ -117790,13 +117809,13 @@
|
|
|
117790
117809
|
});
|
|
117791
117810
|
}
|
|
117792
117811
|
|
|
117793
|
-
/**
|
|
117794
|
-
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
117795
|
-
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
117796
|
-
* together with timerEventDefinitionType.
|
|
117797
|
-
*
|
|
117798
|
-
* @param {type} props
|
|
117799
|
-
* @return {TextFieldEntry}
|
|
117812
|
+
/**
|
|
117813
|
+
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
117814
|
+
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
117815
|
+
* together with timerEventDefinitionType.
|
|
117816
|
+
*
|
|
117817
|
+
* @param {type} props
|
|
117818
|
+
* @return {TextFieldEntry}
|
|
117800
117819
|
*/
|
|
117801
117820
|
function TimerEventDefinitionValue$2(props) {
|
|
117802
117821
|
const {
|
|
@@ -118081,12 +118100,12 @@
|
|
|
118081
118100
|
bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
|
|
118082
118101
|
};
|
|
118083
118102
|
|
|
118084
|
-
/**
|
|
118085
|
-
* Get extension elements of business object. Optionally filter by type.
|
|
118086
|
-
*
|
|
118087
|
-
* @param {ModdleElement} businessObject
|
|
118088
|
-
* @param {string} [type=undefined]
|
|
118089
|
-
* @returns {Array<ModdleElement>}
|
|
118103
|
+
/**
|
|
118104
|
+
* Get extension elements of business object. Optionally filter by type.
|
|
118105
|
+
*
|
|
118106
|
+
* @param {ModdleElement} businessObject
|
|
118107
|
+
* @param {string} [type=undefined]
|
|
118108
|
+
* @returns {Array<ModdleElement>}
|
|
118090
118109
|
*/
|
|
118091
118110
|
function getExtensionElementsList$2(businessObject, type = undefined) {
|
|
118092
118111
|
const extensionElements = businessObject.get('extensionElements');
|
|
@@ -118103,13 +118122,13 @@
|
|
|
118103
118122
|
return values;
|
|
118104
118123
|
}
|
|
118105
118124
|
|
|
118106
|
-
/**
|
|
118107
|
-
* Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
|
|
118108
|
-
*
|
|
118109
|
-
* @param {ModdleElement} element
|
|
118110
|
-
* @param {ModdleElement} businessObject
|
|
118111
|
-
* @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
|
|
118112
|
-
* @param {CommandStack} commandStack
|
|
118125
|
+
/**
|
|
118126
|
+
* Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
|
|
118127
|
+
*
|
|
118128
|
+
* @param {ModdleElement} element
|
|
118129
|
+
* @param {ModdleElement} businessObject
|
|
118130
|
+
* @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
|
|
118131
|
+
* @param {CommandStack} commandStack
|
|
118113
118132
|
*/
|
|
118114
118133
|
function addExtensionElements(element, businessObject, extensionElementToAdd, bpmnFactory, commandStack) {
|
|
118115
118134
|
const commands = [];
|
|
@@ -118147,13 +118166,13 @@
|
|
|
118147
118166
|
commandStack.execute('properties-panel.multi-command-executor', commands);
|
|
118148
118167
|
}
|
|
118149
118168
|
|
|
118150
|
-
/**
|
|
118151
|
-
* Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
|
|
118152
|
-
*
|
|
118153
|
-
* @param {ModdleElement} element
|
|
118154
|
-
* @param {ModdleElement} businessObject
|
|
118155
|
-
* @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
|
|
118156
|
-
* @param {CommandStack} commandStack
|
|
118169
|
+
/**
|
|
118170
|
+
* Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
|
|
118171
|
+
*
|
|
118172
|
+
* @param {ModdleElement} element
|
|
118173
|
+
* @param {ModdleElement} businessObject
|
|
118174
|
+
* @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
|
|
118175
|
+
* @param {CommandStack} commandStack
|
|
118157
118176
|
*/
|
|
118158
118177
|
function removeExtensionElements$1(element, businessObject, extensionElementsToRemove, commandStack) {
|
|
118159
118178
|
if (!isArray$a(extensionElementsToRemove)) {
|
|
@@ -118525,24 +118544,24 @@
|
|
|
118525
118544
|
return is$6(element, 'bpmn:UserTask') || isZeebeServiceTask(element);
|
|
118526
118545
|
}
|
|
118527
118546
|
|
|
118528
|
-
/**
|
|
118529
|
-
* Get first zeebe:TaskHeaders element for a specific element.
|
|
118530
|
-
*
|
|
118531
|
-
* @param {ModdleElement} element
|
|
118532
|
-
*
|
|
118533
|
-
* @return {ModdleElement} a zeebe:TaskHeader element
|
|
118547
|
+
/**
|
|
118548
|
+
* Get first zeebe:TaskHeaders element for a specific element.
|
|
118549
|
+
*
|
|
118550
|
+
* @param {ModdleElement} element
|
|
118551
|
+
*
|
|
118552
|
+
* @return {ModdleElement} a zeebe:TaskHeader element
|
|
118534
118553
|
*/
|
|
118535
118554
|
function getTaskHeaders$1(element) {
|
|
118536
118555
|
const businessObject = getBusinessObject$2(element);
|
|
118537
118556
|
return getExtensionElementsList$2(businessObject, 'zeebe:TaskHeaders')[0];
|
|
118538
118557
|
}
|
|
118539
118558
|
|
|
118540
|
-
/**
|
|
118541
|
-
* Retrieve all zeebe:Header elements for a specific element.
|
|
118542
|
-
*
|
|
118543
|
-
* @param {ModdleElement} element
|
|
118544
|
-
*
|
|
118545
|
-
* @return {Array<ModdleElement>} a list of zeebe:Header elements
|
|
118559
|
+
/**
|
|
118560
|
+
* Retrieve all zeebe:Header elements for a specific element.
|
|
118561
|
+
*
|
|
118562
|
+
* @param {ModdleElement} element
|
|
118563
|
+
*
|
|
118564
|
+
* @return {Array<ModdleElement>} a list of zeebe:Header elements
|
|
118546
118565
|
*/
|
|
118547
118566
|
function getHeaders(element) {
|
|
118548
118567
|
const taskHeaders = getTaskHeaders$1(element);
|
|
@@ -118583,10 +118602,10 @@
|
|
|
118583
118602
|
return DEFAULT_IMPLEMENTATION_OPTION$1;
|
|
118584
118603
|
};
|
|
118585
118604
|
|
|
118586
|
-
/**
|
|
118587
|
-
* Set value by either creating a zeebe:calledDecision or a zeebe:taskDefintion
|
|
118588
|
-
* extension element. Note that they must not exist both at the same time, however
|
|
118589
|
-
* this will be ensured by a bpmn-js behavior (and not by the propPanel).
|
|
118605
|
+
/**
|
|
118606
|
+
* Set value by either creating a zeebe:calledDecision or a zeebe:taskDefintion
|
|
118607
|
+
* extension element. Note that they must not exist both at the same time, however
|
|
118608
|
+
* this will be ensured by a bpmn-js behavior (and not by the propPanel).
|
|
118590
118609
|
*/
|
|
118591
118610
|
const setValue = value => {
|
|
118592
118611
|
let extensionElement, extensionElementType;
|
|
@@ -119039,12 +119058,12 @@
|
|
|
119039
119058
|
return isAny$1(element, CONDITIONAL_SOURCES$1);
|
|
119040
119059
|
}
|
|
119041
119060
|
|
|
119042
|
-
/**
|
|
119043
|
-
* getConditionExpression - get the body value of a condition expression for a given element
|
|
119044
|
-
*
|
|
119045
|
-
* @param {ModdleElement} element
|
|
119046
|
-
*
|
|
119047
|
-
* @return {string|undefined}
|
|
119061
|
+
/**
|
|
119062
|
+
* getConditionExpression - get the body value of a condition expression for a given element
|
|
119063
|
+
*
|
|
119064
|
+
* @param {ModdleElement} element
|
|
119065
|
+
*
|
|
119066
|
+
* @return {string|undefined}
|
|
119048
119067
|
*/
|
|
119049
119068
|
function getConditionExpression$1(element) {
|
|
119050
119069
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -119100,12 +119119,12 @@
|
|
|
119100
119119
|
});
|
|
119101
119120
|
}
|
|
119102
119121
|
|
|
119103
|
-
/**
|
|
119104
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
119122
|
+
/**
|
|
119123
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
119105
119124
|
*/
|
|
119106
119125
|
|
|
119107
|
-
/**
|
|
119108
|
-
* @returns {Array<Entry>} entries
|
|
119126
|
+
/**
|
|
119127
|
+
* @returns {Array<Entry>} entries
|
|
119109
119128
|
*/
|
|
119110
119129
|
function EscalationProps$1(props) {
|
|
119111
119130
|
const {
|
|
@@ -119733,24 +119752,24 @@
|
|
|
119733
119752
|
|
|
119734
119753
|
// helpers /////////////
|
|
119735
119754
|
|
|
119736
|
-
/**
|
|
119737
|
-
* @typedef { { cmd: string, context: Object } } Command
|
|
119738
|
-
* @typedef {Command[]} Commands
|
|
119739
|
-
*
|
|
119740
|
-
* @typedef {import('diagram-js/lib/model/Types').Element} Element
|
|
119741
|
-
* @typedef {import('bpmn-js/lib/model/Types').ModdleElement} ModdleElement
|
|
119742
|
-
*
|
|
119743
|
-
* @param {import('didi').Injector} Injector
|
|
119755
|
+
/**
|
|
119756
|
+
* @typedef { { cmd: string, context: Object } } Command
|
|
119757
|
+
* @typedef {Command[]} Commands
|
|
119758
|
+
*
|
|
119759
|
+
* @typedef {import('diagram-js/lib/model/Types').Element} Element
|
|
119760
|
+
* @typedef {import('bpmn-js/lib/model/Types').ModdleElement} ModdleElement
|
|
119761
|
+
*
|
|
119762
|
+
* @param {import('didi').Injector} Injector
|
|
119744
119763
|
*/
|
|
119745
119764
|
|
|
119746
|
-
/**
|
|
119747
|
-
* @param {Injector} injector
|
|
119748
|
-
* @param {Element} element
|
|
119749
|
-
*
|
|
119750
|
-
* @returns { {
|
|
119751
|
-
* commands: Commands,
|
|
119752
|
-
* extensionElements: ModdleElement
|
|
119753
|
-
* } }
|
|
119765
|
+
/**
|
|
119766
|
+
* @param {Injector} injector
|
|
119767
|
+
* @param {Element} element
|
|
119768
|
+
*
|
|
119769
|
+
* @returns { {
|
|
119770
|
+
* commands: Commands,
|
|
119771
|
+
* extensionElements: ModdleElement
|
|
119772
|
+
* } }
|
|
119754
119773
|
*/
|
|
119755
119774
|
function getOrCreateExtensionElements(injector, element, moddleElement) {
|
|
119756
119775
|
const businessObject = moddleElement || getBusinessObject$2(element);
|
|
@@ -119773,14 +119792,14 @@
|
|
|
119773
119792
|
};
|
|
119774
119793
|
}
|
|
119775
119794
|
|
|
119776
|
-
/**
|
|
119777
|
-
* @param {Injector} injector
|
|
119778
|
-
* @param {Element} element
|
|
119779
|
-
*
|
|
119780
|
-
* @returns { {
|
|
119781
|
-
* commands: Commands,
|
|
119782
|
-
* formDefinition: ModdleElement
|
|
119783
|
-
* } }
|
|
119795
|
+
/**
|
|
119796
|
+
* @param {Injector} injector
|
|
119797
|
+
* @param {Element} element
|
|
119798
|
+
*
|
|
119799
|
+
* @returns { {
|
|
119800
|
+
* commands: Commands,
|
|
119801
|
+
* formDefinition: ModdleElement
|
|
119802
|
+
* } }
|
|
119784
119803
|
*/
|
|
119785
119804
|
function getOrCreateFormDefintition(injector, element) {
|
|
119786
119805
|
let formDefinition = getFormDefinition$1(element);
|
|
@@ -119803,15 +119822,15 @@
|
|
|
119803
119822
|
};
|
|
119804
119823
|
}
|
|
119805
119824
|
|
|
119806
|
-
/**
|
|
119807
|
-
* @param {Injector} injector
|
|
119808
|
-
* @param {Element} element
|
|
119809
|
-
*
|
|
119810
|
-
* @returns { {
|
|
119811
|
-
* commands: Commands,
|
|
119812
|
-
* formDefinition: ModdleElement,
|
|
119813
|
-
* userTaskForm: ModdleElement
|
|
119814
|
-
* } }
|
|
119825
|
+
/**
|
|
119826
|
+
* @param {Injector} injector
|
|
119827
|
+
* @param {Element} element
|
|
119828
|
+
*
|
|
119829
|
+
* @returns { {
|
|
119830
|
+
* commands: Commands,
|
|
119831
|
+
* formDefinition: ModdleElement,
|
|
119832
|
+
* userTaskForm: ModdleElement
|
|
119833
|
+
* } }
|
|
119815
119834
|
*/
|
|
119816
119835
|
function getOrCreateUserTaskForm(injector, element) {
|
|
119817
119836
|
let userTaskForm = getUserTaskForm$1(element);
|
|
@@ -119888,8 +119907,8 @@
|
|
|
119888
119907
|
function removeFormDefinition(injector, element) {
|
|
119889
119908
|
const formDefinition = getFormDefinition$1(element);
|
|
119890
119909
|
|
|
119891
|
-
/**
|
|
119892
|
-
* @type {import('bpmn-js/lib/features/modeling/Modeling').default}
|
|
119910
|
+
/**
|
|
119911
|
+
* @type {import('bpmn-js/lib/features/modeling/Modeling').default}
|
|
119893
119912
|
*/
|
|
119894
119913
|
const modeling = injector.get('modeling');
|
|
119895
119914
|
if (formDefinition) {
|
|
@@ -119901,36 +119920,36 @@
|
|
|
119901
119920
|
}
|
|
119902
119921
|
}
|
|
119903
119922
|
|
|
119904
|
-
/**
|
|
119905
|
-
* @param {Injector} injector
|
|
119906
|
-
* @param {Object} properties
|
|
119907
|
-
* @param {ModdleElement} parent
|
|
119908
|
-
*
|
|
119909
|
-
* @returns {ModdleElement}
|
|
119923
|
+
/**
|
|
119924
|
+
* @param {Injector} injector
|
|
119925
|
+
* @param {Object} properties
|
|
119926
|
+
* @param {ModdleElement} parent
|
|
119927
|
+
*
|
|
119928
|
+
* @returns {ModdleElement}
|
|
119910
119929
|
*/
|
|
119911
119930
|
function createFormDefinition(injector, properties, parent) {
|
|
119912
119931
|
const bpmnFactory = injector.get('bpmnFactory');
|
|
119913
119932
|
return createElement$3('zeebe:FormDefinition', properties, parent, bpmnFactory);
|
|
119914
119933
|
}
|
|
119915
119934
|
|
|
119916
|
-
/**
|
|
119917
|
-
* @param {Injector} injector
|
|
119918
|
-
* @param {Object} properties
|
|
119919
|
-
* @param {ModdleElement} parent
|
|
119920
|
-
*
|
|
119921
|
-
* @returns {ModdleElement}
|
|
119935
|
+
/**
|
|
119936
|
+
* @param {Injector} injector
|
|
119937
|
+
* @param {Object} properties
|
|
119938
|
+
* @param {ModdleElement} parent
|
|
119939
|
+
*
|
|
119940
|
+
* @returns {ModdleElement}
|
|
119922
119941
|
*/
|
|
119923
119942
|
function createUserTaskForm(injector, properties, parent) {
|
|
119924
119943
|
const bpmnFactory = injector.get('bpmnFactory');
|
|
119925
119944
|
return createElement$3('zeebe:UserTaskForm', properties, parent, bpmnFactory);
|
|
119926
119945
|
}
|
|
119927
119946
|
|
|
119928
|
-
/**
|
|
119929
|
-
* @param {Element} element
|
|
119930
|
-
* @param {ModdleElement} moddleElement
|
|
119931
|
-
* @param {Object} properties
|
|
119932
|
-
*
|
|
119933
|
-
* @returns {Command}
|
|
119947
|
+
/**
|
|
119948
|
+
* @param {Element} element
|
|
119949
|
+
* @param {ModdleElement} moddleElement
|
|
119950
|
+
* @param {Object} properties
|
|
119951
|
+
*
|
|
119952
|
+
* @returns {Command}
|
|
119934
119953
|
*/
|
|
119935
119954
|
function createUpdateModdlePropertiesCommand(element, moddleElement, properties) {
|
|
119936
119955
|
return {
|
|
@@ -120276,11 +120295,11 @@
|
|
|
120276
120295
|
|
|
120277
120296
|
// helper //////////////////////////
|
|
120278
120297
|
|
|
120279
|
-
/**
|
|
120280
|
-
* Check whether the propagateAllParentVariables attribute is set on an element.
|
|
120281
|
-
* @param {Object} element
|
|
120282
|
-
*
|
|
120283
|
-
* @returns {boolean}
|
|
120298
|
+
/**
|
|
120299
|
+
* Check whether the propagateAllParentVariables attribute is set on an element.
|
|
120300
|
+
* @param {Object} element
|
|
120301
|
+
*
|
|
120302
|
+
* @returns {boolean}
|
|
120284
120303
|
*/
|
|
120285
120304
|
function isPropagateAllParentVariables(element) {
|
|
120286
120305
|
if (!is$6(element, 'bpmn:CallActivity')) {
|
|
@@ -120381,37 +120400,37 @@
|
|
|
120381
120400
|
return ioMapping && ioMapping.get(prop) || [];
|
|
120382
120401
|
}
|
|
120383
120402
|
|
|
120384
|
-
/**
|
|
120385
|
-
* Get a ioMapping from the business object
|
|
120386
|
-
*
|
|
120387
|
-
* @param {djs.model.Base} element
|
|
120388
|
-
*
|
|
120389
|
-
* @return {ModdleElement} the ioMapping object
|
|
120403
|
+
/**
|
|
120404
|
+
* Get a ioMapping from the business object
|
|
120405
|
+
*
|
|
120406
|
+
* @param {djs.model.Base} element
|
|
120407
|
+
*
|
|
120408
|
+
* @return {ModdleElement} the ioMapping object
|
|
120390
120409
|
*/
|
|
120391
120410
|
function getIoMapping$1(element) {
|
|
120392
120411
|
const bo = getBusinessObject$2(element);
|
|
120393
120412
|
return (getElements$1(bo, 'zeebe:IoMapping') || [])[0];
|
|
120394
120413
|
}
|
|
120395
120414
|
|
|
120396
|
-
/**
|
|
120397
|
-
* Return all input parameters existing in the business object, and
|
|
120398
|
-
* an empty array if none exist.
|
|
120399
|
-
*
|
|
120400
|
-
* @param {djs.model.Base} element
|
|
120401
|
-
*
|
|
120402
|
-
* @return {Array} a list of input parameter objects
|
|
120415
|
+
/**
|
|
120416
|
+
* Return all input parameters existing in the business object, and
|
|
120417
|
+
* an empty array if none exist.
|
|
120418
|
+
*
|
|
120419
|
+
* @param {djs.model.Base} element
|
|
120420
|
+
*
|
|
120421
|
+
* @return {Array} a list of input parameter objects
|
|
120403
120422
|
*/
|
|
120404
120423
|
function getInputParameters$1(element) {
|
|
120405
120424
|
return getParameters$1.apply(this, [element, 'inputParameters']);
|
|
120406
120425
|
}
|
|
120407
120426
|
|
|
120408
|
-
/**
|
|
120409
|
-
* Return all output parameters existing in the business object, and
|
|
120410
|
-
* an empty array if none exist.
|
|
120411
|
-
*
|
|
120412
|
-
* @param {djs.model.Base} element
|
|
120413
|
-
*
|
|
120414
|
-
* @return {Array} a list of output parameter objects
|
|
120427
|
+
/**
|
|
120428
|
+
* Return all output parameters existing in the business object, and
|
|
120429
|
+
* an empty array if none exist.
|
|
120430
|
+
*
|
|
120431
|
+
* @param {djs.model.Base} element
|
|
120432
|
+
*
|
|
120433
|
+
* @return {Array} a list of output parameter objects
|
|
120415
120434
|
*/
|
|
120416
120435
|
function getOutputParameters$1(element) {
|
|
120417
120436
|
return getParameters$1.apply(this, [element, 'outputParameters']);
|
|
@@ -121082,11 +121101,11 @@
|
|
|
121082
121101
|
|
|
121083
121102
|
// helper //////////////////////////
|
|
121084
121103
|
|
|
121085
|
-
/**
|
|
121086
|
-
* Determine default value for propagateAllChildVariables attribute
|
|
121087
|
-
* @param {Object} element representing a bpmn:CallActivity
|
|
121088
|
-
*
|
|
121089
|
-
* @returns {boolean}
|
|
121104
|
+
/**
|
|
121105
|
+
* Determine default value for propagateAllChildVariables attribute
|
|
121106
|
+
* @param {Object} element representing a bpmn:CallActivity
|
|
121107
|
+
*
|
|
121108
|
+
* @returns {boolean}
|
|
121090
121109
|
*/
|
|
121091
121110
|
function determinePropAllChildVariablesDefault(element) {
|
|
121092
121111
|
const outputParameters = getOutputParameters$1(element);
|
|
@@ -121095,12 +121114,12 @@
|
|
|
121095
121114
|
}
|
|
121096
121115
|
}
|
|
121097
121116
|
|
|
121098
|
-
/**
|
|
121099
|
-
* Check whether the propagateAllChildVariables attribute is set on an element.
|
|
121100
|
-
* Note that a default logic will be determine if it is not explicitly set.
|
|
121101
|
-
* @param {Object} element
|
|
121102
|
-
*
|
|
121103
|
-
* @returns {boolean}
|
|
121117
|
+
/**
|
|
121118
|
+
* Check whether the propagateAllChildVariables attribute is set on an element.
|
|
121119
|
+
* Note that a default logic will be determine if it is not explicitly set.
|
|
121120
|
+
* @param {Object} element
|
|
121121
|
+
*
|
|
121122
|
+
* @returns {boolean}
|
|
121104
121123
|
*/
|
|
121105
121124
|
function isPropagateAllChildVariables(element) {
|
|
121106
121125
|
if (!is$6(element, 'bpmn:CallActivity')) {
|
|
@@ -121259,6 +121278,117 @@
|
|
|
121259
121278
|
};
|
|
121260
121279
|
}
|
|
121261
121280
|
|
|
121281
|
+
function PriorityDefinitionProps(props) {
|
|
121282
|
+
const {
|
|
121283
|
+
element
|
|
121284
|
+
} = props;
|
|
121285
|
+
if (!is$6(element, 'bpmn:UserTask')) {
|
|
121286
|
+
return [];
|
|
121287
|
+
}
|
|
121288
|
+
return [{
|
|
121289
|
+
id: 'priorityDefinitionPriority',
|
|
121290
|
+
component: Priority$1,
|
|
121291
|
+
isEdited: isEdited$6
|
|
121292
|
+
}];
|
|
121293
|
+
}
|
|
121294
|
+
function Priority$1(props) {
|
|
121295
|
+
const {
|
|
121296
|
+
element
|
|
121297
|
+
} = props;
|
|
121298
|
+
const commandStack = useService$1('commandStack');
|
|
121299
|
+
const bpmnFactory = useService$1('bpmnFactory');
|
|
121300
|
+
const translate = useService$1('translate');
|
|
121301
|
+
const debounce = useService$1('debounceInput');
|
|
121302
|
+
const getValue = () => {
|
|
121303
|
+
return (getPriorityDefinition(element) || {}).priority;
|
|
121304
|
+
};
|
|
121305
|
+
const setValue = value => {
|
|
121306
|
+
const commands = [];
|
|
121307
|
+
const businessObject = getBusinessObject$2(element);
|
|
121308
|
+
let extensionElements = businessObject.get('extensionElements');
|
|
121309
|
+
|
|
121310
|
+
// (1) ensure extension elements
|
|
121311
|
+
if (!extensionElements) {
|
|
121312
|
+
extensionElements = createElement$3('bpmn:ExtensionElements', {
|
|
121313
|
+
values: []
|
|
121314
|
+
}, businessObject, bpmnFactory);
|
|
121315
|
+
commands.push({
|
|
121316
|
+
cmd: 'element.updateModdleProperties',
|
|
121317
|
+
context: {
|
|
121318
|
+
element,
|
|
121319
|
+
moddleElement: businessObject,
|
|
121320
|
+
properties: {
|
|
121321
|
+
extensionElements
|
|
121322
|
+
}
|
|
121323
|
+
}
|
|
121324
|
+
});
|
|
121325
|
+
}
|
|
121326
|
+
|
|
121327
|
+
// (2) ensure PriorityDefinition
|
|
121328
|
+
let priorityDefinition = getPriorityDefinition(element);
|
|
121329
|
+
const isNullValue = value === null || value === '' || value === undefined;
|
|
121330
|
+
if (priorityDefinition && isNullValue) {
|
|
121331
|
+
// (3a) remove priority definition if it exists and priority is set to null
|
|
121332
|
+
commands.push({
|
|
121333
|
+
cmd: 'element.updateModdleProperties',
|
|
121334
|
+
context: {
|
|
121335
|
+
element,
|
|
121336
|
+
moddleElement: extensionElements,
|
|
121337
|
+
properties: {
|
|
121338
|
+
values: extensionElements.get('values').filter(v => v !== priorityDefinition)
|
|
121339
|
+
}
|
|
121340
|
+
}
|
|
121341
|
+
});
|
|
121342
|
+
} else if (priorityDefinition && !isNullValue) {
|
|
121343
|
+
// (3b) update priority definition if it already exists
|
|
121344
|
+
commands.push({
|
|
121345
|
+
cmd: 'element.updateModdleProperties',
|
|
121346
|
+
context: {
|
|
121347
|
+
element,
|
|
121348
|
+
moddleElement: priorityDefinition,
|
|
121349
|
+
properties: {
|
|
121350
|
+
priority: value
|
|
121351
|
+
}
|
|
121352
|
+
}
|
|
121353
|
+
});
|
|
121354
|
+
} else if (!priorityDefinition && !isNullValue) {
|
|
121355
|
+
// (3c) create priority definition if it does not exist
|
|
121356
|
+
priorityDefinition = createElement$3('zeebe:PriorityDefinition', {
|
|
121357
|
+
priority: value
|
|
121358
|
+
}, extensionElements, bpmnFactory);
|
|
121359
|
+
commands.push({
|
|
121360
|
+
cmd: 'element.updateModdleProperties',
|
|
121361
|
+
context: {
|
|
121362
|
+
element,
|
|
121363
|
+
moddleElement: extensionElements,
|
|
121364
|
+
properties: {
|
|
121365
|
+
values: [...extensionElements.get('values'), priorityDefinition]
|
|
121366
|
+
}
|
|
121367
|
+
}
|
|
121368
|
+
});
|
|
121369
|
+
}
|
|
121370
|
+
|
|
121371
|
+
// (4) commit all updates
|
|
121372
|
+
commandStack.execute('properties-panel.multi-command-executor', commands);
|
|
121373
|
+
};
|
|
121374
|
+
return FeelEntryWithVariableContext$1({
|
|
121375
|
+
element,
|
|
121376
|
+
id: 'priorityDefinitionPriority',
|
|
121377
|
+
label: translate('Priority'),
|
|
121378
|
+
feel: 'optional',
|
|
121379
|
+
getValue,
|
|
121380
|
+
setValue,
|
|
121381
|
+
debounce
|
|
121382
|
+
});
|
|
121383
|
+
}
|
|
121384
|
+
|
|
121385
|
+
// helper ///////////////////////
|
|
121386
|
+
|
|
121387
|
+
function getPriorityDefinition(element) {
|
|
121388
|
+
const businessObject = getBusinessObject$2(element);
|
|
121389
|
+
return getExtensionElementsList$2(businessObject, 'zeebe:PriorityDefinition')[0];
|
|
121390
|
+
}
|
|
121391
|
+
|
|
121262
121392
|
const SCRIPT_IMPLEMENTATION_OPTION = 'script',
|
|
121263
121393
|
JOB_WORKER_IMPLEMENTATION_OPTION$1 = 'jobWorker',
|
|
121264
121394
|
DEFAULT_IMPLEMENTATION_OPTION = '';
|
|
@@ -121293,10 +121423,10 @@
|
|
|
121293
121423
|
return DEFAULT_IMPLEMENTATION_OPTION;
|
|
121294
121424
|
};
|
|
121295
121425
|
|
|
121296
|
-
/**
|
|
121297
|
-
* Set value by either creating a zeebe:script or a zeebe:taskDefintion
|
|
121298
|
-
* extension element. Note that they must not exist both at the same time, however
|
|
121299
|
-
* this will be ensured by a bpmn-js behavior (and not by the propPanel).
|
|
121426
|
+
/**
|
|
121427
|
+
* Set value by either creating a zeebe:script or a zeebe:taskDefintion
|
|
121428
|
+
* extension element. Note that they must not exist both at the same time, however
|
|
121429
|
+
* this will be ensured by a bpmn-js behavior (and not by the propPanel).
|
|
121300
121430
|
*/
|
|
121301
121431
|
const setValue = value => {
|
|
121302
121432
|
let extensionElement, extensionElementType;
|
|
@@ -121588,8 +121718,8 @@
|
|
|
121588
121718
|
return getExtensionElementsList$2(businessObject, 'zeebe:Script')[0];
|
|
121589
121719
|
}
|
|
121590
121720
|
|
|
121591
|
-
/**
|
|
121592
|
-
* @returns {Entry[]}
|
|
121721
|
+
/**
|
|
121722
|
+
* @returns {Entry[]}
|
|
121593
121723
|
*/
|
|
121594
121724
|
function SignalProps(props) {
|
|
121595
121725
|
const {
|
|
@@ -121820,7 +121950,7 @@
|
|
|
121820
121950
|
return FeelEntryWithVariableContext$1({
|
|
121821
121951
|
element,
|
|
121822
121952
|
id,
|
|
121823
|
-
label: translate('
|
|
121953
|
+
label: translate('Job type'),
|
|
121824
121954
|
feel: 'optional',
|
|
121825
121955
|
getValue,
|
|
121826
121956
|
setValue,
|
|
@@ -122085,13 +122215,13 @@
|
|
|
122085
122215
|
return getExtensionElementsList$2(businessObject, 'zeebe:TaskSchedule')[0];
|
|
122086
122216
|
}
|
|
122087
122217
|
|
|
122088
|
-
/**
|
|
122089
|
-
* Check whether a given timer expression type is supported for a given element.
|
|
122090
|
-
*
|
|
122091
|
-
* @param {string} type
|
|
122092
|
-
* @param {Element|ModdleElement} element
|
|
122093
|
-
*
|
|
122094
|
-
* @return {boolean}
|
|
122218
|
+
/**
|
|
122219
|
+
* Check whether a given timer expression type is supported for a given element.
|
|
122220
|
+
*
|
|
122221
|
+
* @param {string} type
|
|
122222
|
+
* @param {Element|ModdleElement} element
|
|
122223
|
+
*
|
|
122224
|
+
* @return {boolean}
|
|
122095
122225
|
*/
|
|
122096
122226
|
function isTimerExpressionTypeSupported$1(type, element) {
|
|
122097
122227
|
const businessObject = getBusinessObject$2(element);
|
|
@@ -122184,12 +122314,12 @@
|
|
|
122184
122314
|
return options;
|
|
122185
122315
|
}
|
|
122186
122316
|
|
|
122187
|
-
/**
|
|
122188
|
-
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
122189
|
-
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
122190
|
-
*
|
|
122191
|
-
* @param {type} props
|
|
122192
|
-
* @return {SelectEntry}
|
|
122317
|
+
/**
|
|
122318
|
+
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
122319
|
+
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
122320
|
+
*
|
|
122321
|
+
* @param {type} props
|
|
122322
|
+
* @return {SelectEntry}
|
|
122193
122323
|
*/
|
|
122194
122324
|
function TimerEventDefinitionType$1(props) {
|
|
122195
122325
|
const {
|
|
@@ -122247,16 +122377,16 @@
|
|
|
122247
122377
|
});
|
|
122248
122378
|
}
|
|
122249
122379
|
|
|
122250
|
-
/**
|
|
122251
|
-
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
122252
|
-
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
122253
|
-
* together with timerEventDefinitionType.
|
|
122254
|
-
*
|
|
122255
|
-
* @param {object} props
|
|
122256
|
-
* @param {ModdleElement} props.element
|
|
122257
|
-
* @param {'timeCycle'|'timeDate'|'timeDuration'} props.timerEventDefinitionType?
|
|
122258
|
-
* @param {string} props.label?
|
|
122259
|
-
* @return {TextFieldEntry}
|
|
122380
|
+
/**
|
|
122381
|
+
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
122382
|
+
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
122383
|
+
* together with timerEventDefinitionType.
|
|
122384
|
+
*
|
|
122385
|
+
* @param {object} props
|
|
122386
|
+
* @param {ModdleElement} props.element
|
|
122387
|
+
* @param {'timeCycle'|'timeDate'|'timeDuration'} props.timerEventDefinitionType?
|
|
122388
|
+
* @param {string} props.label?
|
|
122389
|
+
* @return {TextFieldEntry}
|
|
122260
122390
|
*/
|
|
122261
122391
|
function TimerEventDefinitionValue$1(props) {
|
|
122262
122392
|
const {
|
|
@@ -122425,10 +122555,10 @@
|
|
|
122425
122555
|
return JOB_WORKER_IMPLEMENTATION_OPTION;
|
|
122426
122556
|
};
|
|
122427
122557
|
|
|
122428
|
-
/**
|
|
122429
|
-
* Set value by either creating or removing zeebe:userTask extension element.
|
|
122430
|
-
* Note that they must not exist both at the same time, however this
|
|
122431
|
-
* will be ensured by a camunda-bpmn-js behavior (and not by the propPanel).
|
|
122558
|
+
/**
|
|
122559
|
+
* Set value by either creating or removing zeebe:userTask extension element.
|
|
122560
|
+
* Note that they must not exist both at the same time, however this
|
|
122561
|
+
* will be ensured by a camunda-bpmn-js behavior (and not by the propPanel).
|
|
122432
122562
|
*/
|
|
122433
122563
|
const setValue = value => {
|
|
122434
122564
|
if (value === ZEEBE_USER_TASK_IMPLEMENTATION_OPTION) {
|
|
@@ -122735,8 +122865,8 @@
|
|
|
122735
122865
|
return properties && properties.get(getPropertyName(namespace));
|
|
122736
122866
|
}
|
|
122737
122867
|
|
|
122738
|
-
/**
|
|
122739
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
122868
|
+
/**
|
|
122869
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
122740
122870
|
*/
|
|
122741
122871
|
|
|
122742
122872
|
const LOW_PRIORITY$1$1 = 500;
|
|
@@ -122951,6 +123081,8 @@
|
|
|
122951
123081
|
element
|
|
122952
123082
|
}), ...TaskScheduleProps({
|
|
122953
123083
|
element
|
|
123084
|
+
}), ...PriorityDefinitionProps({
|
|
123085
|
+
element
|
|
122954
123086
|
})],
|
|
122955
123087
|
component: Group$1
|
|
122956
123088
|
};
|
|
@@ -123064,13 +123196,13 @@
|
|
|
123064
123196
|
return groups.find(g => g.id === id);
|
|
123065
123197
|
}
|
|
123066
123198
|
|
|
123067
|
-
/**
|
|
123068
|
-
* Replace entries with the same ID.
|
|
123069
|
-
*s
|
|
123070
|
-
* @param {Entry[]} oldEntries
|
|
123071
|
-
* @param {Entry[]} newEntries
|
|
123072
|
-
*
|
|
123073
|
-
* @returns {Entry[]} combined entries
|
|
123199
|
+
/**
|
|
123200
|
+
* Replace entries with the same ID.
|
|
123201
|
+
*s
|
|
123202
|
+
* @param {Entry[]} oldEntries
|
|
123203
|
+
* @param {Entry[]} newEntries
|
|
123204
|
+
*
|
|
123205
|
+
* @returns {Entry[]} combined entries
|
|
123074
123206
|
*/
|
|
123075
123207
|
function replaceEntries(oldEntries, newEntries) {
|
|
123076
123208
|
const filteredEntries = oldEntries.filter(oldEntry => !newEntries.find(newEntry => newEntry.id === oldEntry.id));
|
|
@@ -123378,6 +123510,16 @@
|
|
|
123378
123510
|
}), translate('Uses the resource found in the same deployment.')]
|
|
123379
123511
|
})]
|
|
123380
123512
|
});
|
|
123513
|
+
},
|
|
123514
|
+
'priorityDefinitionPriority': element => {
|
|
123515
|
+
const translate = useService$1('translate');
|
|
123516
|
+
return u("div", {
|
|
123517
|
+
children: [u("p", {
|
|
123518
|
+
children: translate('An integer value that can range from 0 to 100, where a higher value indicates a higher priority.')
|
|
123519
|
+
}), u("p", {
|
|
123520
|
+
children: translate('If unset, the default value is 50.')
|
|
123521
|
+
})]
|
|
123522
|
+
});
|
|
123381
123523
|
}
|
|
123382
123524
|
};
|
|
123383
123525
|
|
|
@@ -128545,6 +128687,9 @@
|
|
|
128545
128687
|
if (notEmpty && isEmpty(value)) {
|
|
128546
128688
|
return `${label} ${translate('must not be empty.')}`;
|
|
128547
128689
|
}
|
|
128690
|
+
if (property.feel && isFeel$1(value)) {
|
|
128691
|
+
return;
|
|
128692
|
+
}
|
|
128548
128693
|
if (maxLength && (value || '').length > maxLength) {
|
|
128549
128694
|
return `${label} ${translate('must have max length {maxLength}.', {
|
|
128550
128695
|
maxLength
|
|
@@ -128602,6 +128747,9 @@
|
|
|
128602
128747
|
return replacements[key] || '{' + key + '}';
|
|
128603
128748
|
});
|
|
128604
128749
|
}
|
|
128750
|
+
function isFeel$1(value) {
|
|
128751
|
+
return isString$3(value) && value.trim().startsWith('=');
|
|
128752
|
+
}
|
|
128605
128753
|
|
|
128606
128754
|
/**
|
|
128607
128755
|
* Based on conditions, remove properties from the template.
|
|
@@ -155914,6 +156062,24 @@
|
|
|
155914
156062
|
}
|
|
155915
156063
|
]
|
|
155916
156064
|
},
|
|
156065
|
+
{
|
|
156066
|
+
name: "PriorityDefinition",
|
|
156067
|
+
superClass: [
|
|
156068
|
+
"Element"
|
|
156069
|
+
],
|
|
156070
|
+
meta: {
|
|
156071
|
+
allowedIn: [
|
|
156072
|
+
"bpmn:UserTask"
|
|
156073
|
+
]
|
|
156074
|
+
},
|
|
156075
|
+
properties: [
|
|
156076
|
+
{
|
|
156077
|
+
name: "priority",
|
|
156078
|
+
type: "String",
|
|
156079
|
+
isAttr: true
|
|
156080
|
+
}
|
|
156081
|
+
]
|
|
156082
|
+
},
|
|
155917
156083
|
{
|
|
155918
156084
|
name: "TaskSchedule",
|
|
155919
156085
|
superClass: [
|