Symptom
Approved MDF Workflow Content is getting updated if we edit record which triggered the workflow.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP SuccessFactors Employee Central
- SAP SuccessFactors HXM Suite
Reproducing the Issue
- Assign workflow to any MDF object (eg: Department) using onsave rule. Workflow is triggered to the target user as expected and approved by all the step approvers.
- Now edit to the approved record via make corection/ edit to a new value, such that Workfow rule condition are not satisfied and no Workflow is triggered.
- New updated Value is appearing the previous approved workflow.
Resolution
This is a by-design behavior for MDF workflow. Workflow is triggered by 'CORRECT' operation and once the workflow is completed, it's linked to the corrected record by "row_id" which is the key field of the record in DB.
So when Company admin edits the same record, he/she is still making change on the same row_id. It explains why a completed workflow also gets updated since the content of referred row_id is changed.
Workflow is not designed for audit. If company admin wants to audit the change of record, we suggest them leverage the "MDF Version History" field in object definition.
If in case you want to trigger the workflow everytime errespective of what changes being made them please use "Workflow Routing" in Object definition.
Keywords
workflow content Changed content in workflow Workflow MDF workflow , KBA , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , LOD-SF-EC , Employee Central , LOD-SF-MDF-WFL , Custom Object based Workflows , Problem