Symptom
A workflow request continues to get escalated even after the escalation (which was originally defined in the workflow FO configuration at the point when the workflow was initiated) is removed from the workflow configuration.
Environment
SAP SuccessFactors Employee Central: Workflow Escalation
Reproducing the Issue
- Create an Escalation in Manage Data with one step. Choose escalationRouteFrom as "Current Approver", targetValue as "Manager" and escalationAfterDays as "1".
- Add this escalation in a Workflow foundation object which has a single-step approver as the Manager.
- Initiate a workflow request.
- Notice that after 1 day, the workflow gets escalated to the Manager's Manager.
- Remove the escalation (added in Step#2) from the workflow configuration and click on Save.
- Observe that the escalation process continues to be triggered for the workflow (initiated in Step#3) until it reaches the top most level.
Cause
Engineering team has confirmed that if an escalation defined in the workflow configuration at the point when the workflow is initiated, then any workflows that were already triggered will continue to consider the escalation configuration. Only new workflows that are triggered (after the escalation is removed) will not be impacted by the escalation.
Therefore, it is an expected behavior that workflows that were already triggered (when the escalation was defined in the workflow configuration) will continue to keep getting escalated unless acted upon, even though the escalation is removed from the configuration after the workflow is initiated.
Resolution
To avoid escalating the workflow till the top, go to Manage Data -> Escalation and change the escalationRouteFrom to "Original Approver" instead of "Current Approver". In the above example, the workflow will only get escalated to the Manager's Manager and not go beyond that.
Please note that if the same escalation configuration is shared across multiple workflow configurations, then this will impact the other workflows that are escalated too.
Keywords
b2405, CS20240008651256, INC9867603, SAP SuccessFactors, Employee Central, Workflow, Escalation, Configuration, Manage Data, Original Approver, Current Approver , KBA , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , How To