SAP Knowledge Base Article - Public

2306503 - Dependents: Workflow Configuration Tips & Behaviours

Symptom

------TO IMPLEMENTATION PARTNERS ONLY--------

How to Configure Dependents Workflow Configuration

Environment

Dependents Portlet in Personal Informatin

Resolution

WORKFLOW RULES :

NOTE: It is not possible to trigger workflow rules based on changes to fields in personRelationshipInfo element (fields in Dependents portlet) - this is not supported. Please refer to KBA 2314991

 

Example Dependents Rule Without country restriction:

 <rule id="rule-100">
    <trueoutput>DependentChange</trueoutput>
       <conditions>
               <or>  <!-- below configuration means type change or no change -->
                     <!–START : Dependents Workflow Rules -->

                        <equal id="personRelationshipInfo.relationship-type" inverse="true" />  
                       <equal id="personRelationshipInfo.relationship-type"  />  

                   <!--END: Dependents Workflow Rules -->

               </or>             
        </conditions>
</rule>

 

Example Dependents Rule With Country restriction:

 

<rule id="rule-100">
 <trueoutput>DependentChange</trueoutput>
        <conditions>
           <and> 
                <equal id="jobInfo.company.countryOfRegistration" value="USA"/>      Notes: <equal id="jobInfo.country-of-company" value="USA"/> will not work
                 <or> <!-- means type change or no change -->
                     <equal id="personRelationshipInfo.relationship-type" inverse="true" /> 
                     <equal id="personRelationshipInfo.relationship-type" /> 
               </or> 
         </and>
     </conditions>
</rule>

Notes:  If you are using both the regular AND the country restriction rules in the Workflow Rules XML, then we strongly recommend placing the country restricting dependents workflow rule at the top of Workflow Rules XML. At least it needs to be placed above all other "jobInfo" related workflow rules. This is because if the Job Info of the dependent's parent employee matches the other rule, the unexpected workflow will be trigger instead. For example:

<rule id="rule-4">
        <trueoutput>OTHER</trueoutput>
           <conditions>
             <and>
                 <equal id="jobInfo.event" value="13" compareToNew="true"/>
                 <equal id="jobInfo.employee-type" value="H"/>
             </and>
            </conditions>    
           </rule>

If the above workflow rule is placed above of the Dependent workflow rule , and the employee's current jobinfo record with event = 13; and employee-type=H. then this rule will match and the "OTHER" workflow will be triggered instead.

 

 

Current Limitation:

Edit with Route change is not supported for now.

Right now the mobile and web version has different json structure. Need to change the json structure to be in sync with Web version.

Keywords

KBA , LOD-SF-EC-WFL , Workflow & Trigger (Rules & XML) , Problem

Product

SAP SuccessFactors HCM Core all versions