Symptom
When onInit rule is configured to check the Company field [Legal Entity] in Job Information and depending on the value selected it should set the value for the field Biographical information.
Environment
SAP SuccessFactors Employee Central - Add New Employee
Reproducing the Issue
Prerequisite: Hire Template is configured and required permission are given to the user and OnInit rule has been added to check the Company field [Legal Entity] in Job Information and depending on the value selected it should set the value for the field Biographical information.
Steps to follow:
Scenario 1 - When an Admin user as “Hire Configuration template” permission and is doing a Rehire Inactive employee.
- Navigate to Rehire Inactive employee > search for an employee.
- Select Rehire employee and Basic data popup appears.
- Select event reason and template as “Standard Template” and continue.
- The rule checks the company field value, and it sets the correct value for the field in Biographical Information.
Scenario 2 - When an Admin user does not have “Hire Configuration template” permission and is doing a Rehire Inactive employee.
- Navigate to Rehire Inactive employee > search for an employee.
- Select Rehire employee.
- Add new employee screen page appears without Basic data popup appearing.
- The rule doesn't work properly.
- In the Business Rule Execution Log, the rule log shows the company value selected as "Null".
Cause
- When user has permission for “Hire Configuration template”, they see page Basic data(popup) first where legal entity value is already populated (because it is a rehire scenario), and when they click on continue to load first page (that has person information), onInit rules for personInfo [Biographical Information] are triggered and they know the value for company field in Job Information, so the rule work as expected.
- When user does not have permission for “Hire Configuration template”, it directly tries to load first page of hire, and at the time of triggering onInit rules for personInfo [Biographical Information], Job Information is not yet updated with company value (or any other values for that user in Job Information), so the rule fails as jobinfo.company has "Null" value.
Resolution
This is working as expected with current design.
See Also
Keywords
hire, screen, add new employee, legal entity, company, Hire Configuration template, OnInit, rule, business rule, Basic data, popup, INC5937950 , KBA , LOD-SF-EC-HIR-RIE , Rehire Inactive Employee , LOD-SF-EC , Employee Central , Problem