add MI for call activities

This commit is contained in:
Elizabeth Esswein 2023-05-18 15:40:07 -04:00
parent 61f2e5db32
commit 63dc415fc3
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ const LOW_PRIORITY = 500;
export default function MultiInstancePropertiesProvider(propertiesPanel) {
this.getGroups = function getGroupsCallback(element) {
return function pushGroup(groups) {
if (is(element, 'bpmn:Task')) {
if (is(element, 'bpmn:Task') || is(element, 'bpmn:CallActivity')) {
let group = groups.filter(g => g.id == 'multiInstance');
if (group.length == 1)
updateMultiInstanceGroup(element, group[0]);

View File

@ -16,7 +16,7 @@ export default function StandardLoopPropertiesProvider(propertiesPanel) {
this.getGroups = function getGroupsCallback(element) {
return function pushGroup(groups) {
if (
is(element, 'bpmn:Task') &&
(is(element, 'bpmn:Task') || is(element, 'bpmn:CallActivity')) &&
typeof(element.businessObject.loopCharacteristics) !== 'undefined' &&
element.businessObject.loopCharacteristics.$type === 'bpmn:StandardLoopCharacteristics'
) {