From afb071d0106ead4c9ef47bf12031e7e9e0e01d94 Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Wed, 12 Jul 2023 13:20:36 -0400 Subject: [PATCH] apparently didn't finish search and replace when creating the escalation panels --- .../EscalationPropertiesProvider.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/spiffworkflow/escalations/propertiesPanel/EscalationPropertiesProvider.js b/app/spiffworkflow/escalations/propertiesPanel/EscalationPropertiesProvider.js index 3d263e2..97ddeac 100644 --- a/app/spiffworkflow/escalations/propertiesPanel/EscalationPropertiesProvider.js +++ b/app/spiffworkflow/escalations/propertiesPanel/EscalationPropertiesProvider.js @@ -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; };