add mi panel to subprocesses
This commit is contained in:
parent
462a5e7778
commit
e138c4c26c
|
@ -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]);
|
||||
|
|
|
@ -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'
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue