Skip to content

Commit ece73a3

Browse files
Prevent setting assignmentLock and allowReassignment on the Call Activity; store them in node config instead
1 parent c1ed562 commit ece73a3

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

resources/js/processes/modeler/components/inspector/TaskAssignment.vue

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,18 @@
126126
return this.$root.$children[0].process;
127127
},
128128
assignmentLockGetter () {
129-
return _.get(this.node, "assignmentLock") || false;
129+
if (this.node.$type === 'bpmn:CallActivity') {
130+
return _.get(this.node.config && JSON.parse(this.node.config), "assignmentLock") || false;
131+
} else {
132+
return _.get(this.node, "assignmentLock") || false;
133+
}
130134
},
131135
allowReassignmentGetter () {
132-
return _.get(this.node, "allowReassignment") || false;
136+
if (this.node.$type === 'bpmn:CallActivity') {
137+
return _.get(this.node.config && JSON.parse(this.node.config), "allowReassignment") || false;
138+
} else {
139+
return _.get(this.node, "allowReassignment") || false;
140+
}
133141
},
134142
assignedUserGetter () {
135143
let value = _.get(this.node, "assignedUsers");
@@ -311,13 +319,25 @@
311319
* Update assignmentLock property
312320
*/
313321
assignmentLockSetter (value) {
314-
this.$set(this.node, "assignmentLock", value);
322+
if (this.node.$type === 'bpmn:CallActivity') {
323+
const config = this.node.config && JSON.parse(this.node.config) || {};
324+
config.assignmentLock = value;
325+
this.$set(this.node, "config", JSON.stringify(config));
326+
} else {
327+
this.$set(this.node, "assignmentLock", value);
328+
}
315329
},
316330
/**
317331
* Update allowReassignment property
318332
*/
319333
allowReassignmentSetter (value) {
320-
this.$set(this.node, "allowReassignment", value);
334+
if (this.node.$type === 'bpmn:CallActivity') {
335+
const config = this.node.config && JSON.parse(this.node.config) || {};
336+
config.allowReassignment = value;
337+
this.$set(this.node, "config", JSON.stringify(config));
338+
} else {
339+
this.$set(this.node, "allowReassignment", value);
340+
}
321341
},
322342
/**
323343
* Update the event of the editer property

0 commit comments

Comments
 (0)