From ece73a38009a19a01235a3be6a9848d2b108c94f Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Wed, 14 Jan 2026 10:23:54 -0800 Subject: [PATCH] Prevent setting assignmentLock and allowReassignment on the Call Activity; store them in node config instead --- .../components/inspector/TaskAssignment.vue | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/resources/js/processes/modeler/components/inspector/TaskAssignment.vue b/resources/js/processes/modeler/components/inspector/TaskAssignment.vue index 560cb51ed1..b22b5e07cf 100644 --- a/resources/js/processes/modeler/components/inspector/TaskAssignment.vue +++ b/resources/js/processes/modeler/components/inspector/TaskAssignment.vue @@ -126,10 +126,18 @@ return this.$root.$children[0].process; }, assignmentLockGetter () { - return _.get(this.node, "assignmentLock") || false; + if (this.node.$type === 'bpmn:CallActivity') { + return _.get(this.node.config && JSON.parse(this.node.config), "assignmentLock") || false; + } else { + return _.get(this.node, "assignmentLock") || false; + } }, allowReassignmentGetter () { - return _.get(this.node, "allowReassignment") || false; + if (this.node.$type === 'bpmn:CallActivity') { + return _.get(this.node.config && JSON.parse(this.node.config), "allowReassignment") || false; + } else { + return _.get(this.node, "allowReassignment") || false; + } }, assignedUserGetter () { let value = _.get(this.node, "assignedUsers"); @@ -311,13 +319,25 @@ * Update assignmentLock property */ assignmentLockSetter (value) { - this.$set(this.node, "assignmentLock", value); + if (this.node.$type === 'bpmn:CallActivity') { + const config = this.node.config && JSON.parse(this.node.config) || {}; + config.assignmentLock = value; + this.$set(this.node, "config", JSON.stringify(config)); + } else { + this.$set(this.node, "assignmentLock", value); + } }, /** * Update allowReassignment property */ allowReassignmentSetter (value) { - this.$set(this.node, "allowReassignment", value); + if (this.node.$type === 'bpmn:CallActivity') { + const config = this.node.config && JSON.parse(this.node.config) || {}; + config.allowReassignment = value; + this.$set(this.node, "config", JSON.stringify(config)); + } else { + this.$set(this.node, "allowReassignment", value); + } }, /** * Update the event of the editer property