SAP Knowledge Base Article - Public

2780630 - Is it possible to avoid workflow creation when you are editing an already approved leave?

Symptom

You have set up workflows for approval of leaves in your instance but you would like these workflows to not be retriggered if the employee is editing an already approved leave.

Thus you would like to know if there is any way you can make a configuration to achieve this need.

Environment

SAP SuccessFactors Employee Central (EC) - All Versions

Reproducing the Issue

  1. Create a leave request and a workflow is triggered (expected);
  2. Approve the workflow;
  3. Now edit the same leave and a new workflow is triggered (expected behavior but you want to change it);

Resolution

Although triggering workflow for any change is expected behavior, as of 1902 release the business rules engine offers you a way how you can achieve this need.

To be possible to achieve this need can to make use of the Original Record.

To be able to use it you must assure you are using the MDF rule scenario provided as of 1902 and documented in the KBA 2767237.

Below you can see one rule example, in this example my workflow will only trigger in the creation AND if the employee or admin is changing any field that actually changes the leave (time type, start date and end date), otherwise, no workflows will be triggered.

KB1.jpg

See Also

2767237 - Employee Central: Rule Scenarios for MDF related EC features in 1902

Keywords

avoid workflow during edit need to approve the workflow twice , KBA , LOD-SF-EC-TIM , Time-Off , How To

Product

SAP SuccessFactors HCM Core 1902