camunda-bpmn-js 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/assets/bpmn-js.css +4 -5
- package/dist/camunda-cloud-modeler.development.js +218 -51
- package/dist/camunda-cloud-modeler.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +280 -71
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/assets/bpmn-js.css
CHANGED
|
@@ -129,15 +129,14 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
[data-popup="align-elements"] .djs-popup-body .entry {
|
|
132
|
-
height: 20px;
|
|
133
|
-
width: 20px;
|
|
134
|
-
|
|
135
132
|
padding: 6px 8px;
|
|
136
133
|
}
|
|
137
134
|
|
|
138
135
|
[data-popup="align-elements"] .djs-popup-body .entry img {
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
display: block;
|
|
137
|
+
|
|
138
|
+
height: 20px;
|
|
139
|
+
width: 20px;
|
|
141
140
|
}
|
|
142
141
|
|
|
143
142
|
[data-popup="align-elements"] .bjs-align-elements-menu-entry {
|
|
@@ -76417,6 +76417,12 @@
|
|
|
76417
76417
|
function isArray$4(obj) {
|
|
76418
76418
|
return nativeToString$2.call(obj) === '[object Array]';
|
|
76419
76419
|
}
|
|
76420
|
+
function isObject$1(obj) {
|
|
76421
|
+
return nativeToString$2.call(obj) === '[object Object]';
|
|
76422
|
+
}
|
|
76423
|
+
function isNumber$1(obj) {
|
|
76424
|
+
return nativeToString$2.call(obj) === '[object Number]';
|
|
76425
|
+
}
|
|
76420
76426
|
function isFunction$1(obj) {
|
|
76421
76427
|
var tag = nativeToString$2.call(obj);
|
|
76422
76428
|
return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';
|
|
@@ -76532,6 +76538,167 @@
|
|
|
76532
76538
|
return Number(arg);
|
|
76533
76539
|
}
|
|
76534
76540
|
|
|
76541
|
+
/**
|
|
76542
|
+
* Is an element of the given BPMN type?
|
|
76543
|
+
*
|
|
76544
|
+
* @param {djs.model.Base|ModdleElement} element
|
|
76545
|
+
* @param {string} type
|
|
76546
|
+
*
|
|
76547
|
+
* @return {boolean}
|
|
76548
|
+
*/
|
|
76549
|
+
function is$3(element, type) {
|
|
76550
|
+
var bo = getBusinessObject$1(element);
|
|
76551
|
+
|
|
76552
|
+
return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type);
|
|
76553
|
+
}
|
|
76554
|
+
|
|
76555
|
+
/**
|
|
76556
|
+
* Return the business object for a given element.
|
|
76557
|
+
*
|
|
76558
|
+
* @param {djs.model.Base|ModdleElement} element
|
|
76559
|
+
*
|
|
76560
|
+
* @return {ModdleElement}
|
|
76561
|
+
*/
|
|
76562
|
+
function getBusinessObject$1(element) {
|
|
76563
|
+
return (element && element.businessObject) || element;
|
|
76564
|
+
}
|
|
76565
|
+
|
|
76566
|
+
var DEFAULT_PRIORITY$8 = 1000;
|
|
76567
|
+
|
|
76568
|
+
/**
|
|
76569
|
+
* A utility that can be used to plug-in into the command execution for
|
|
76570
|
+
* extension and/or validation.
|
|
76571
|
+
*
|
|
76572
|
+
* @param {EventBus} eventBus
|
|
76573
|
+
*
|
|
76574
|
+
* @example
|
|
76575
|
+
*
|
|
76576
|
+
* import inherits from 'inherits';
|
|
76577
|
+
*
|
|
76578
|
+
* import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
76579
|
+
*
|
|
76580
|
+
* function CommandLogger(eventBus) {
|
|
76581
|
+
* CommandInterceptor.call(this, eventBus);
|
|
76582
|
+
*
|
|
76583
|
+
* this.preExecute(function(event) {
|
|
76584
|
+
* console.log('command pre-execute', event);
|
|
76585
|
+
* });
|
|
76586
|
+
* }
|
|
76587
|
+
*
|
|
76588
|
+
* inherits(CommandLogger, CommandInterceptor);
|
|
76589
|
+
*
|
|
76590
|
+
*/
|
|
76591
|
+
function CommandInterceptor$1(eventBus) {
|
|
76592
|
+
this._eventBus = eventBus;
|
|
76593
|
+
}
|
|
76594
|
+
|
|
76595
|
+
CommandInterceptor$1.$inject = [ 'eventBus' ];
|
|
76596
|
+
|
|
76597
|
+
function unwrapEvent$1(fn, that) {
|
|
76598
|
+
return function(event) {
|
|
76599
|
+
return fn.call(that || null, event.context, event.command, event);
|
|
76600
|
+
};
|
|
76601
|
+
}
|
|
76602
|
+
|
|
76603
|
+
/**
|
|
76604
|
+
* Register an interceptor for a command execution
|
|
76605
|
+
*
|
|
76606
|
+
* @param {string|Array<string>} [events] list of commands to register on
|
|
76607
|
+
* @param {string} [hook] command hook, i.e. preExecute, executed to listen on
|
|
76608
|
+
* @param {number} [priority] the priority on which to hook into the execution
|
|
76609
|
+
* @param {Function} handlerFn interceptor to be invoked with (event)
|
|
76610
|
+
* @param {boolean} unwrap if true, unwrap the event and pass (context, command, event) to the
|
|
76611
|
+
* listener instead
|
|
76612
|
+
* @param {Object} [that] Pass context (`this`) to the handler function
|
|
76613
|
+
*/
|
|
76614
|
+
CommandInterceptor$1.prototype.on = function(events, hook, priority, handlerFn, unwrap, that) {
|
|
76615
|
+
|
|
76616
|
+
if (isFunction$1(hook) || isNumber$1(hook)) {
|
|
76617
|
+
that = unwrap;
|
|
76618
|
+
unwrap = handlerFn;
|
|
76619
|
+
handlerFn = priority;
|
|
76620
|
+
priority = hook;
|
|
76621
|
+
hook = null;
|
|
76622
|
+
}
|
|
76623
|
+
|
|
76624
|
+
if (isFunction$1(priority)) {
|
|
76625
|
+
that = unwrap;
|
|
76626
|
+
unwrap = handlerFn;
|
|
76627
|
+
handlerFn = priority;
|
|
76628
|
+
priority = DEFAULT_PRIORITY$8;
|
|
76629
|
+
}
|
|
76630
|
+
|
|
76631
|
+
if (isObject$1(unwrap)) {
|
|
76632
|
+
that = unwrap;
|
|
76633
|
+
unwrap = false;
|
|
76634
|
+
}
|
|
76635
|
+
|
|
76636
|
+
if (!isFunction$1(handlerFn)) {
|
|
76637
|
+
throw new Error('handlerFn must be a function');
|
|
76638
|
+
}
|
|
76639
|
+
|
|
76640
|
+
if (!isArray$4(events)) {
|
|
76641
|
+
events = [ events ];
|
|
76642
|
+
}
|
|
76643
|
+
|
|
76644
|
+
var eventBus = this._eventBus;
|
|
76645
|
+
|
|
76646
|
+
forEach$2(events, function(event) {
|
|
76647
|
+
|
|
76648
|
+
// concat commandStack(.event)?(.hook)?
|
|
76649
|
+
var fullEvent = [ 'commandStack', event, hook ].filter(function(e) { return e; }).join('.');
|
|
76650
|
+
|
|
76651
|
+
eventBus.on(fullEvent, priority, unwrap ? unwrapEvent$1(handlerFn, that) : handlerFn, that);
|
|
76652
|
+
});
|
|
76653
|
+
};
|
|
76654
|
+
|
|
76655
|
+
|
|
76656
|
+
var hooks$1 = [
|
|
76657
|
+
'canExecute',
|
|
76658
|
+
'preExecute',
|
|
76659
|
+
'preExecuted',
|
|
76660
|
+
'execute',
|
|
76661
|
+
'executed',
|
|
76662
|
+
'postExecute',
|
|
76663
|
+
'postExecuted',
|
|
76664
|
+
'revert',
|
|
76665
|
+
'reverted'
|
|
76666
|
+
];
|
|
76667
|
+
|
|
76668
|
+
/*
|
|
76669
|
+
* Install hook shortcuts
|
|
76670
|
+
*
|
|
76671
|
+
* This will generate the CommandInterceptor#(preExecute|...|reverted) methods
|
|
76672
|
+
* which will in term forward to CommandInterceptor#on.
|
|
76673
|
+
*/
|
|
76674
|
+
forEach$2(hooks$1, function(hook) {
|
|
76675
|
+
|
|
76676
|
+
/**
|
|
76677
|
+
* {canExecute|preExecute|preExecuted|execute|executed|postExecute|postExecuted|revert|reverted}
|
|
76678
|
+
*
|
|
76679
|
+
* A named hook for plugging into the command execution
|
|
76680
|
+
*
|
|
76681
|
+
* @param {string|Array<string>} [events] list of commands to register on
|
|
76682
|
+
* @param {number} [priority] the priority on which to hook into the execution
|
|
76683
|
+
* @param {Function} handlerFn interceptor to be invoked with (event)
|
|
76684
|
+
* @param {boolean} [unwrap=false] if true, unwrap the event and pass (context, command, event) to the
|
|
76685
|
+
* listener instead
|
|
76686
|
+
* @param {Object} [that] Pass context (`this`) to the handler function
|
|
76687
|
+
*/
|
|
76688
|
+
CommandInterceptor$1.prototype[hook] = function(events, priority, handlerFn, unwrap, that) {
|
|
76689
|
+
|
|
76690
|
+
if (isFunction$1(events) || isNumber$1(events)) {
|
|
76691
|
+
that = unwrap;
|
|
76692
|
+
unwrap = handlerFn;
|
|
76693
|
+
handlerFn = priority;
|
|
76694
|
+
priority = events;
|
|
76695
|
+
events = null;
|
|
76696
|
+
}
|
|
76697
|
+
|
|
76698
|
+
this.on(events, hook, priority, handlerFn, unwrap, that);
|
|
76699
|
+
};
|
|
76700
|
+
});
|
|
76701
|
+
|
|
76535
76702
|
/**
|
|
76536
76703
|
* Get extension elements of business object. Optionally filter by type.
|
|
76537
76704
|
*
|
|
@@ -76540,7 +76707,7 @@
|
|
|
76540
76707
|
* @returns {Array<ModdleElement>}
|
|
76541
76708
|
*/
|
|
76542
76709
|
function getExtensionElementsList$1(element, type = undefined) {
|
|
76543
|
-
const businessObject = getBusinessObject(element),
|
|
76710
|
+
const businessObject = getBusinessObject$1(element),
|
|
76544
76711
|
extensionElements = businessObject.get('extensionElements');
|
|
76545
76712
|
|
|
76546
76713
|
if (!extensionElements) {
|
|
@@ -76554,7 +76721,7 @@
|
|
|
76554
76721
|
}
|
|
76555
76722
|
|
|
76556
76723
|
if (type) {
|
|
76557
|
-
return values.filter(value => is$
|
|
76724
|
+
return values.filter(value => is$3(value, type));
|
|
76558
76725
|
}
|
|
76559
76726
|
|
|
76560
76727
|
return values;
|
|
@@ -76594,7 +76761,7 @@
|
|
|
76594
76761
|
* (1) zeebe:CalledDecision
|
|
76595
76762
|
* (2) zeebe:TaskDefinition and zeebe:TaskHeaders
|
|
76596
76763
|
*/
|
|
76597
|
-
class CleanUpBusinessRuleTaskBehavior extends CommandInterceptor {
|
|
76764
|
+
class CleanUpBusinessRuleTaskBehavior extends CommandInterceptor$1 {
|
|
76598
76765
|
constructor(commandStack, eventBus) {
|
|
76599
76766
|
super(eventBus);
|
|
76600
76767
|
|
|
@@ -76609,8 +76776,8 @@
|
|
|
76609
76776
|
} = context;
|
|
76610
76777
|
|
|
76611
76778
|
if (
|
|
76612
|
-
!is$
|
|
76613
|
-
|| !is$
|
|
76779
|
+
!is$3(element, 'bpmn:BusinessRuleTask')
|
|
76780
|
+
|| !is$3(moddleElement, 'bpmn:ExtensionElements')
|
|
76614
76781
|
|| !properties.values
|
|
76615
76782
|
) {
|
|
76616
76783
|
return;
|
|
@@ -76622,8 +76789,8 @@
|
|
|
76622
76789
|
if (
|
|
76623
76790
|
calledDecision
|
|
76624
76791
|
&& !taskDefinition
|
|
76625
|
-
&& properties.values.find(value => is$
|
|
76626
|
-
&& properties.values.find(value => is$
|
|
76792
|
+
&& properties.values.find(value => is$3(value, 'zeebe:CalledDecision'))
|
|
76793
|
+
&& properties.values.find(value => is$3(value, 'zeebe:TaskDefinition'))
|
|
76627
76794
|
) {
|
|
76628
76795
|
properties.values = without$1(properties.values, calledDecision);
|
|
76629
76796
|
}
|
|
@@ -76640,8 +76807,8 @@
|
|
|
76640
76807
|
} = context;
|
|
76641
76808
|
|
|
76642
76809
|
if (
|
|
76643
|
-
!is$
|
|
76644
|
-
|| !is$
|
|
76810
|
+
!is$3(element, 'bpmn:BusinessRuleTask')
|
|
76811
|
+
|| !is$3(moddleElement, 'bpmn:ExtensionElements')
|
|
76645
76812
|
|| !properties.values
|
|
76646
76813
|
) {
|
|
76647
76814
|
return;
|
|
@@ -76654,8 +76821,8 @@
|
|
|
76654
76821
|
if (
|
|
76655
76822
|
!calledDecision
|
|
76656
76823
|
&& (taskDefinition || taskHeaders)
|
|
76657
|
-
&& properties.values.find(value => is$
|
|
76658
|
-
&& properties.values.find(value => is$
|
|
76824
|
+
&& properties.values.find(value => is$3(value, 'zeebe:CalledDecision'))
|
|
76825
|
+
&& properties.values.find(value => is$3(value, 'zeebe:TaskDefinition') || is$3(value, 'zeebe:TaskHeaders'))
|
|
76659
76826
|
) {
|
|
76660
76827
|
properties.values = without$1(properties.values, (value) => value === taskDefinition || value === taskHeaders);
|
|
76661
76828
|
}
|
|
@@ -76673,19 +76840,19 @@
|
|
|
76673
76840
|
// helpers //////////
|
|
76674
76841
|
|
|
76675
76842
|
function getCalledDecision$2(element) {
|
|
76676
|
-
const businessObject = getBusinessObject(element);
|
|
76843
|
+
const businessObject = getBusinessObject$1(element);
|
|
76677
76844
|
|
|
76678
76845
|
return getExtensionElementsList$1(businessObject, 'zeebe:CalledDecision')[ 0 ];
|
|
76679
76846
|
}
|
|
76680
76847
|
|
|
76681
76848
|
function getTaskDefinition$3(element) {
|
|
76682
|
-
const businessObject = getBusinessObject(element);
|
|
76849
|
+
const businessObject = getBusinessObject$1(element);
|
|
76683
76850
|
|
|
76684
76851
|
return getExtensionElementsList$1(businessObject, 'zeebe:TaskDefinition')[ 0 ];
|
|
76685
76852
|
}
|
|
76686
76853
|
|
|
76687
76854
|
function getTaskHeaders$1(element) {
|
|
76688
|
-
const businessObject = getBusinessObject(element);
|
|
76855
|
+
const businessObject = getBusinessObject$1(element);
|
|
76689
76856
|
|
|
76690
76857
|
return getExtensionElementsList$1(businessObject, 'zeebe:TaskHeaders')[ 0 ];
|
|
76691
76858
|
}
|
|
@@ -76717,7 +76884,7 @@
|
|
|
76717
76884
|
* @return {ModdleElement}
|
|
76718
76885
|
*/
|
|
76719
76886
|
function getIoMapping$1(element) {
|
|
76720
|
-
const businessObject = getBusinessObject(element);
|
|
76887
|
+
const businessObject = getBusinessObject$1(element);
|
|
76721
76888
|
|
|
76722
76889
|
const extensionElements = businessObject.get('extensionElements');
|
|
76723
76890
|
|
|
@@ -76726,7 +76893,7 @@
|
|
|
76726
76893
|
}
|
|
76727
76894
|
|
|
76728
76895
|
return extensionElements.get('values').find((value) => {
|
|
76729
|
-
return is$
|
|
76896
|
+
return is$3(value, 'zeebe:IoMapping');
|
|
76730
76897
|
});
|
|
76731
76898
|
}
|
|
76732
76899
|
|
|
@@ -76772,7 +76939,7 @@
|
|
|
76772
76939
|
* @returns {boolean}
|
|
76773
76940
|
*/
|
|
76774
76941
|
function getPropagateAllChildVariablesDefault(element) {
|
|
76775
|
-
if (!is$
|
|
76942
|
+
if (!is$3(element, 'bpmn:CallActivity')) {
|
|
76776
76943
|
return false;
|
|
76777
76944
|
}
|
|
76778
76945
|
|
|
@@ -76797,7 +76964,7 @@
|
|
|
76797
76964
|
}
|
|
76798
76965
|
|
|
76799
76966
|
function getCalledElements$1(element) {
|
|
76800
|
-
const businessObject = getBusinessObject(element);
|
|
76967
|
+
const businessObject = getBusinessObject$1(element);
|
|
76801
76968
|
|
|
76802
76969
|
return getExtensionElementsList$1(businessObject, 'zeebe:CalledElement');
|
|
76803
76970
|
}
|
|
@@ -76811,11 +76978,11 @@
|
|
|
76811
76978
|
* @returns {boolean}
|
|
76812
76979
|
*/
|
|
76813
76980
|
function isPropagateAllChildVariables$1(element) {
|
|
76814
|
-
if (!is$
|
|
76981
|
+
if (!is$3(element, 'bpmn:CallActivity')) {
|
|
76815
76982
|
return false;
|
|
76816
76983
|
}
|
|
76817
76984
|
|
|
76818
|
-
const businessObject = getBusinessObject(element),
|
|
76985
|
+
const businessObject = getBusinessObject$1(element),
|
|
76819
76986
|
calledElement = getCalledElement$1(businessObject);
|
|
76820
76987
|
|
|
76821
76988
|
if (calledElement && has$2(calledElement, 'propagateAllChildVariables')) {
|
|
@@ -76831,7 +76998,7 @@
|
|
|
76831
76998
|
/**
|
|
76832
76999
|
* Zeebe BPMN specific behavior for creating call activities.
|
|
76833
77000
|
*/
|
|
76834
|
-
class CreateZeebeCallActivityBehavior extends CommandInterceptor {
|
|
77001
|
+
class CreateZeebeCallActivityBehavior extends CommandInterceptor$1 {
|
|
76835
77002
|
constructor(bpmnFactory, eventBus, modeling) {
|
|
76836
77003
|
super(eventBus);
|
|
76837
77004
|
|
|
@@ -76842,11 +77009,11 @@
|
|
|
76842
77009
|
this.postExecuted('shape.create', HIGH_PRIORITY$o, function(context) {
|
|
76843
77010
|
const { shape } = context;
|
|
76844
77011
|
|
|
76845
|
-
if (!is$
|
|
77012
|
+
if (!is$3(shape, 'bpmn:CallActivity')) {
|
|
76846
77013
|
return;
|
|
76847
77014
|
}
|
|
76848
77015
|
|
|
76849
|
-
const businessObject = getBusinessObject(shape);
|
|
77016
|
+
const businessObject = getBusinessObject$1(shape);
|
|
76850
77017
|
|
|
76851
77018
|
let calledElement = getCalledElement$1(businessObject);
|
|
76852
77019
|
|
|
@@ -77111,7 +77278,7 @@
|
|
|
77111
77278
|
}
|
|
77112
77279
|
|
|
77113
77280
|
function getFormDefinition(element) {
|
|
77114
|
-
const businessObject = getBusinessObject(element);
|
|
77281
|
+
const businessObject = getBusinessObject$1(element);
|
|
77115
77282
|
|
|
77116
77283
|
const formDefinitions = getExtensionElementsList$1(businessObject, 'zeebe:FormDefinition');
|
|
77117
77284
|
|
|
@@ -77119,10 +77286,10 @@
|
|
|
77119
77286
|
}
|
|
77120
77287
|
|
|
77121
77288
|
function getRootElement$1(element) {
|
|
77122
|
-
var businessObject = getBusinessObject(element),
|
|
77289
|
+
var businessObject = getBusinessObject$1(element),
|
|
77123
77290
|
parent = businessObject;
|
|
77124
77291
|
|
|
77125
|
-
while (parent.$parent && !is$
|
|
77292
|
+
while (parent.$parent && !is$3(parent, 'bpmn:Process')) {
|
|
77126
77293
|
parent = parent.$parent;
|
|
77127
77294
|
}
|
|
77128
77295
|
|
|
@@ -77146,7 +77313,7 @@
|
|
|
77146
77313
|
/**
|
|
77147
77314
|
* Zeebe BPMN specific form definition behavior.
|
|
77148
77315
|
*/
|
|
77149
|
-
class FormDefinitionBehavior extends CommandInterceptor {
|
|
77316
|
+
class FormDefinitionBehavior extends CommandInterceptor$1 {
|
|
77150
77317
|
constructor(bpmnFactory, eventBus, modeling) {
|
|
77151
77318
|
super(eventBus);
|
|
77152
77319
|
|
|
@@ -77163,7 +77330,7 @@
|
|
|
77163
77330
|
|
|
77164
77331
|
const userTaskForm = getUserTaskForm(shape, rootElement);
|
|
77165
77332
|
|
|
77166
|
-
if (!is$
|
|
77333
|
+
if (!is$3(shape, 'bpmn:UserTask') || !userTaskForm) {
|
|
77167
77334
|
return;
|
|
77168
77335
|
}
|
|
77169
77336
|
|
|
@@ -77185,7 +77352,7 @@
|
|
|
77185
77352
|
|
|
77186
77353
|
const oldFormDefinition = getFormDefinition(shape);
|
|
77187
77354
|
|
|
77188
|
-
if (!is$
|
|
77355
|
+
if (!is$3(shape, 'bpmn:UserTask') || !oldFormDefinition) {
|
|
77189
77356
|
return;
|
|
77190
77357
|
}
|
|
77191
77358
|
|
|
@@ -77193,7 +77360,7 @@
|
|
|
77193
77360
|
|
|
77194
77361
|
const rootElement = getRootElement$2(shape);
|
|
77195
77362
|
|
|
77196
|
-
const businessObject = getBusinessObject(shape);
|
|
77363
|
+
const businessObject = getBusinessObject$1(shape);
|
|
77197
77364
|
|
|
77198
77365
|
const extensionElements = businessObject.get('extensionElements');
|
|
77199
77366
|
|
|
@@ -77252,10 +77419,10 @@
|
|
|
77252
77419
|
// helpers //////////////
|
|
77253
77420
|
|
|
77254
77421
|
function getRootElement$2(element) {
|
|
77255
|
-
var businessObject = getBusinessObject(element),
|
|
77422
|
+
var businessObject = getBusinessObject$1(element),
|
|
77256
77423
|
parent = businessObject;
|
|
77257
77424
|
|
|
77258
|
-
while (parent.$parent && !is$
|
|
77425
|
+
while (parent.$parent && !is$3(parent, 'bpmn:Process')) {
|
|
77259
77426
|
parent = parent.$parent;
|
|
77260
77427
|
}
|
|
77261
77428
|
|
|
@@ -77269,7 +77436,7 @@
|
|
|
77269
77436
|
* Zeebe BPMN behavior removing zeebe:AssignmentDefinition elements without
|
|
77270
77437
|
* zeebe:assignee and zeebe:candidateGroups.
|
|
77271
77438
|
*/
|
|
77272
|
-
class CleanUpBusinessRuleTaskBehavior$1 extends CommandInterceptor {
|
|
77439
|
+
class CleanUpBusinessRuleTaskBehavior$1 extends CommandInterceptor$1 {
|
|
77273
77440
|
constructor(commandStack, eventBus) {
|
|
77274
77441
|
super(eventBus);
|
|
77275
77442
|
|
|
@@ -77279,18 +77446,18 @@
|
|
|
77279
77446
|
moddleElement
|
|
77280
77447
|
} = context;
|
|
77281
77448
|
|
|
77282
|
-
if (!is$
|
|
77449
|
+
if (!is$3(moddleElement, 'zeebe:AssignmentDefinition')) {
|
|
77283
77450
|
return;
|
|
77284
77451
|
}
|
|
77285
77452
|
|
|
77286
77453
|
const assignmentDefinition = moddleElement;
|
|
77287
77454
|
|
|
77288
77455
|
if (
|
|
77289
|
-
is$
|
|
77456
|
+
is$3(element, 'bpmn:UserTask')
|
|
77290
77457
|
&& isUndefined$4(assignmentDefinition.get('zeebe:assignee'))
|
|
77291
77458
|
&& isUndefined$4(assignmentDefinition.get('zeebe:candidateGroups'))
|
|
77292
77459
|
) {
|
|
77293
|
-
const businessObject = getBusinessObject(element);
|
|
77460
|
+
const businessObject = getBusinessObject$1(element);
|
|
77294
77461
|
|
|
77295
77462
|
removeExtensionElements$1(element, businessObject, assignmentDefinition, commandStack);
|
|
77296
77463
|
}
|
|
@@ -77314,7 +77481,7 @@
|
|
|
77314
77481
|
* (1) zeebe:propagateAllChildVariables of zeebe:CalledElement is set to true
|
|
77315
77482
|
* (2) zeebe:IoMapping extension element has zeebe:Output elements
|
|
77316
77483
|
*/
|
|
77317
|
-
class UpdatePropagateAllChildVariablesBehavior extends CommandInterceptor {
|
|
77484
|
+
class UpdatePropagateAllChildVariablesBehavior extends CommandInterceptor$1 {
|
|
77318
77485
|
constructor(commandStack, eventBus, modeling) {
|
|
77319
77486
|
super(eventBus);
|
|
77320
77487
|
|
|
@@ -77332,8 +77499,8 @@
|
|
|
77332
77499
|
const propagateAllChildVariables = properties.propagateAllChildVariables || properties[ 'zeebe:propagateAllChildVariables' ];
|
|
77333
77500
|
|
|
77334
77501
|
if (
|
|
77335
|
-
!is$
|
|
77336
|
-
|| !is$
|
|
77502
|
+
!is$3(element, 'bpmn:CallActivity')
|
|
77503
|
+
|| !is$3(moddleElement, 'zeebe:CalledElement')
|
|
77337
77504
|
|| !propagateAllChildVariables
|
|
77338
77505
|
) {
|
|
77339
77506
|
return;
|
|
@@ -77353,7 +77520,7 @@
|
|
|
77353
77520
|
});
|
|
77354
77521
|
|
|
77355
77522
|
if (!inputParameters || !inputParameters.length) {
|
|
77356
|
-
removeExtensionElements$1(element, getBusinessObject(element), ioMapping, commandStack);
|
|
77523
|
+
removeExtensionElements$1(element, getBusinessObject$1(element), ioMapping, commandStack);
|
|
77357
77524
|
}
|
|
77358
77525
|
}, true);
|
|
77359
77526
|
|
|
@@ -77370,21 +77537,21 @@
|
|
|
77370
77537
|
} = context;
|
|
77371
77538
|
|
|
77372
77539
|
if (
|
|
77373
|
-
!is$
|
|
77540
|
+
!is$3(element, 'bpmn:CallActivity')
|
|
77374
77541
|
|| !isPropagateAllChildVariables$1(element)
|
|
77375
77542
|
) {
|
|
77376
77543
|
return;
|
|
77377
77544
|
}
|
|
77378
77545
|
|
|
77379
|
-
const businessObject = getBusinessObject(element),
|
|
77546
|
+
const businessObject = getBusinessObject$1(element),
|
|
77380
77547
|
calledElement = getCalledElement$1(businessObject);
|
|
77381
77548
|
|
|
77382
77549
|
// (1) zeebe:IoMapping extension element with zeebe:Output added
|
|
77383
77550
|
if (
|
|
77384
|
-
is$
|
|
77551
|
+
is$3(moddleElement, 'bpmn:ExtensionElements')
|
|
77385
77552
|
&& properties.values
|
|
77386
77553
|
) {
|
|
77387
|
-
const ioMapping = properties.values.find((value) => is$
|
|
77554
|
+
const ioMapping = properties.values.find((value) => is$3(value, 'zeebe:IoMapping'));
|
|
77388
77555
|
|
|
77389
77556
|
if (
|
|
77390
77557
|
ioMapping
|
|
@@ -77398,7 +77565,7 @@
|
|
|
77398
77565
|
}
|
|
77399
77566
|
|
|
77400
77567
|
// (2) zeebe:Output added
|
|
77401
|
-
if (is$
|
|
77568
|
+
if (is$3(moddleElement, 'zeebe:IoMapping')) {
|
|
77402
77569
|
const outputParameters = properties.outputParameters || properties[ 'zeebe:outputParameters' ];
|
|
77403
77570
|
|
|
77404
77571
|
if (outputParameters && outputParameters.length) {
|
|
@@ -77771,7 +77938,7 @@
|
|
|
77771
77938
|
};
|
|
77772
77939
|
|
|
77773
77940
|
var isFunction$2 = require$$0.isFunction,
|
|
77774
|
-
isObject$
|
|
77941
|
+
isObject$2 = require$$0.isObject,
|
|
77775
77942
|
some$1 = require$$0.some;
|
|
77776
77943
|
|
|
77777
77944
|
var WILDCARD = '*';
|
|
@@ -77795,7 +77962,7 @@
|
|
|
77795
77962
|
ZeebeModdleExtension.prototype.canCopyProperty = function(property, parent) {
|
|
77796
77963
|
|
|
77797
77964
|
// (1) check if property is allowed in parent
|
|
77798
|
-
if (isObject$
|
|
77965
|
+
if (isObject$2(property) && !isAllowedInParent(property, parent)) {
|
|
77799
77966
|
return false;
|
|
77800
77967
|
}
|
|
77801
77968
|
|
|
@@ -77823,7 +77990,7 @@
|
|
|
77823
77990
|
|
|
77824
77991
|
// helpers //////////
|
|
77825
77992
|
|
|
77826
|
-
function is$
|
|
77993
|
+
function is$4(element, type) {
|
|
77827
77994
|
return element && isFunction$2(element.$instanceOf) && element.$instanceOf(type);
|
|
77828
77995
|
}
|
|
77829
77996
|
|
|
@@ -77832,7 +77999,7 @@
|
|
|
77832
77999
|
return element.$parent;
|
|
77833
78000
|
}
|
|
77834
78001
|
|
|
77835
|
-
if (is$
|
|
78002
|
+
if (is$4(element, type)) {
|
|
77836
78003
|
return element;
|
|
77837
78004
|
}
|
|
77838
78005
|
|
|
@@ -77868,14 +78035,14 @@
|
|
|
77868
78035
|
const eventDefinitions = event.get('eventDefinitions');
|
|
77869
78036
|
|
|
77870
78037
|
return eventDefinitions.some(function(def) {
|
|
77871
|
-
return is$
|
|
78038
|
+
return is$4(def, 'bpmn:MessageEventDefinition');
|
|
77872
78039
|
});
|
|
77873
78040
|
}
|
|
77874
78041
|
|
|
77875
78042
|
// check if property is allowed in ZeebeServiceTask but not for none events
|
|
77876
78043
|
function isAllowedInZeebeServiceTask(property) {
|
|
77877
78044
|
return zeebeServiceTaskProperties.some(function(propertyType) {
|
|
77878
|
-
return is$
|
|
78045
|
+
return is$4(property, propertyType);
|
|
77879
78046
|
});
|
|
77880
78047
|
}
|
|
77881
78048
|
|