SAP Knowledge Base Article - Public

2542271 - Business rules for Workflow Derivation Priority

Symptom

  • What is expected system behavior for the priority of which workflow will be triggered first based on the portlet it is in?
  • Will 'jobInfo' or 'compInfo' trigger first in the system when making changes via 'Take Action' (MSS)?
  • What happens when neither 'jobInfo' nor 'compInfo' have workflows set for the changes being made when Business Rules for Workflow Derivation is active in the system?

Environment

  • SAP SuccessFactors HCM Cloud
  • Employee Central

Resolution

  • In my example, I have two rules defined for base objects 'jobInfo' and 'compInfo' entities:
    SET_JOBINFO_WF
    JobInfoRule.JPG
    SET_COMPINFO_WF
    CompInfoRule.JPG
  • From the MSS (Take Action) page, when both the jobInfo and compInfo entities are changed, the onSave rules behave as follows:
  1. If the condition set by rule 'SET_JOBINFO_WF' is met as well as the condition set by rule 'SET_COMPINFO_WF' is met, then the workflow that is triggered is the corresponding condition met by the rule, either 'Promotion' or 'Demotion'. (which in my example is set on the 'jobInfo' entity).
  2. If only the 'jobInfo' is changed and the condition mentioned by 'SET_JOBINFO_WF' is met, then the workflow that is triggered is the corresponding condition met by the rule, either 'Promotion' or 'Demotion'. (which in my example is set on the 'jobInfo' entity).
  3. If only the 'compInfo' is changed and the condition mentioned by 'SET_COMPINFO_WF' is met then the workflow that is triggered is either 'Pay Rate Change' or 'Range Penetration Change' (which in my example is set on the 'compInfo' entity).
  4. When multiple entities are processed from the MSS UI (via Take Action), the preference is given to the workflow configuration set on the 'jobInfo' entity.  If none is set on the 'jobInfo' entity, then the system checks whether a workflow configuration is set on the 'compInfo' entity.  If none is set on the 'compInfo' entity either, then the system proceeds to check whether a workflow configuration is assigned on any other entity.  If none is assigned then the system saves the data directly.

Note: If the MSS workflow has multiple entities, such as 'jobInfo', 'compInfo' and/or Job relationship workflows, the 'wfConfig' is derived from the onSave result in this order:

  1. Pick from 'jobInfo' entity's workflow configuration result
  2. Else: pick from 'compInfo' entity's workflow configuration result
  3. Else: pick from other entity's workflow configuration result
  4. Else: pick from 'jobRelationship' entity's workflow configuration result

Keywords

success factors, SFEC, SF EC, wfl Derivation, business rules, Rules choose workflows to trigger, wf config , KBA , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HXM Core all versions