|
126 | 126 | return this.$root.$children[0].process; |
127 | 127 | }, |
128 | 128 | 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 | + } |
130 | 134 | }, |
131 | 135 | 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 | + } |
133 | 141 | }, |
134 | 142 | assignedUserGetter () { |
135 | 143 | let value = _.get(this.node, "assignedUsers"); |
|
311 | 319 | * Update assignmentLock property |
312 | 320 | */ |
313 | 321 | 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 | + } |
315 | 329 | }, |
316 | 330 | /** |
317 | 331 | * Update allowReassignment property |
318 | 332 | */ |
319 | 333 | 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 | + } |
321 | 341 | }, |
322 | 342 | /** |
323 | 343 | * Update the event of the editer property |
|
0 commit comments