Symptom
You have configured a business rule which reaches into 'Work Permit' through Biographical Information (e.g. Job Information Model > Employment Details Model > Biographical Information > Work Permit) to check Work Permit details, and while it is finding the Work Permit details for the current User / employment you are acting on, it is also picking up the Work Permit details for other employments of that User
Environment
SAP SuccessFactors HCM
SuccessFactors Employee Central
Reproducing the Issue
- Log into environment
- Go to an example user's profile, who has multiple employments (even if they are old inactive employments)
- Set up a rule trace to see the steps your rule is taking
- Make an edit to the employee's data which triggers your business rule that checks Work Permit through 'Biographical Information' pathing (e.g. Job Information Model > Employment Details Model > Biographical Information > Work Permit)
- Download the rule trace, and in the 'collection' detected by the rule, you can see that the current employment is being picked up - however, other employments are also being picked up and compared against the rule, and they may cause the rule to fail / trigger errors if they meet the conditions to do so, even if the current employment you are acting on is fine
Cause
This is because the rule is going through 'Biographical Information' in order to reach Work Permit - rules that go through 'Biographical Information' will find the user's employments based on their Person ID, so they are able to detect all employments and run the rule conditions against them all as part of the 'collection' of employments under the Person ID.
Resolution
This is current expected behaviour due to the rule going through 'Biographical Information' ; if the rule is triggering errors or triggering incorrect behaviour due to picking up Work Permit details from other / inactive employments, you will need to edit/remove the details from those employments so they no longer meet the conditions. If the details are no longer needed, they can be removed from the old employment only. If the details are still needed, they should be moved to the current employment to be maintained.
Keywords
work, permit, work permit, user, employment, collection, rule, error, workflow, , KBA , LOD-SF-EC-PER-WRK , Work Permit - Config, Rules, RBP, UI , Problem