add mi panel to subprocesses

This commit is contained in:
Elizabeth Esswein 2023-06-22 09:04:01 -04:00
parent 462a5e7778
commit e138c4c26c
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') || is(element, 'bpmn:CallActivity')) {
if (is(element, 'bpmn:Task') || is(element, 'bpmn:CallActivity') || is(element, 'bpmn:SubProcess')) {
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:CallActivity')) &&
(is(element, 'bpmn:Task') || is(element, 'bpmn:CallActivity') || is(element, 'bpmn:SubProcess')) &&
typeof(element.businessObject.loopCharacteristics) !== 'undefined' &&
element.businessObject.loopCharacteristics.$type === 'bpmn:StandardLoopCharacteristics'
) {