mirror of
https://github.com/sartography/bpmn-js-spiffworkflow.git
synced 2025-02-22 12:38:07 +00:00
apparently didn't finish search and replace when creating the escalation panels
This commit is contained in:
parent
c8040aab59
commit
afb071d010
@ -12,8 +12,8 @@ const LOW_PRIORITY = 500;
|
||||
const eventDetails = {
|
||||
'eventType': 'bpmn:Escalation',
|
||||
'eventDefType': 'bpmn:EscalationEventDefinition',
|
||||
'referenceType': 'errorRef',
|
||||
'idPrefix': 'error',
|
||||
'referenceType': 'escalationRef',
|
||||
'idPrefix': 'escalation',
|
||||
};
|
||||
|
||||
export default function EscalationPropertiesProvider(
|
||||
@ -26,14 +26,14 @@ export default function EscalationPropertiesProvider(
|
||||
this.getGroups = function (element) {
|
||||
return function (groups) {
|
||||
if (is(element, 'bpmn:Process') || is(element, 'bpmn:Collaboration')) {
|
||||
const getEscalationArray = getArrayForType('bpmn:Escalation', 'errorRef', 'Escalation');
|
||||
const errorGroup = getListGroupForType('escalations', 'Escalations', getEscalationArray);
|
||||
groups.push(errorGroup({ element, translate, moddle, commandStack }));
|
||||
const getEscalationArray = getArrayForType('bpmn:Escalation', 'escalationRef', 'Escalation');
|
||||
const escalationGroup = getListGroupForType('escalations', 'Escalations', getEscalationArray);
|
||||
groups.push(escalationGroup({ element, translate, moddle, commandStack }));
|
||||
} else if (hasEventType(element, 'bpmn:EscalationEventDefinition')) {
|
||||
const getEscalationSelector = getSelectorForType(eventDetails);
|
||||
const errorGroup = getConfigureGroupForType(eventDetails, 'Escalation', true, getEscalationSelector);
|
||||
const group = errorGroup({ element, translate, moddle, commandStack });
|
||||
replaceGroup('error', groups, group);
|
||||
const escalationGroup = getConfigureGroupForType(eventDetails, 'Escalation', true, getEscalationSelector);
|
||||
const group = escalationGroup({ element, translate, moddle, commandStack });
|
||||
replaceGroup('escalation', groups, group);
|
||||
}
|
||||
return groups;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user