Symptom
The business rule (onView) is being triggered without any issues, however, result is incorrect.
Environment
SAP SuccessFactors Employee Central - Work Permit Information
Reproducing the Issue
Scenario: Update the work permit portlet of the employee in Singapore.
Create an onView business rule condition:
If Work permit Infor Model.Country is not equal to the employee's country (SG)
then all work permit fields visibility is equal to none.
Else if
Work permit Infor Model.Country is equal to the employee's country (SG)
then all work permit fields visibility is equal to view.
**After triggering the rule, the work permit fields still become not visible even if it is the employee's country**
Cause
System limitation
Resolution
This is a limitation of the current portlet framework.
When work permit data is loaded from the server, the server side will split the data into 2 parts, one is called metadata which indicates the meta information that will be displayed on the UI such as WorkPermit.Country.WorkPermit.Document Type; another is called user data which indicates the actual data for the subject user such as (Country) Visa(Document Type). The response from the server will contain only one metadata and several user data. That says all the user data shared the same metadata.
Metadata | Country | DocumentType | DocumentTitle |
User data1 | Singapore | Visa | XXX |
User data2 | Japan | Visa | XXX |
In this case, it changed the Metadata visibility dynamically according to the Country, but the Meta Data shared one copy, so you can either see all the fields or see nothing.
We do not support such use cases and the Engineering suggestion is to disable the onView rule.
For such kinds of requirements, take Pay Component Recurring as an example, the access permission is controlled on the pay component level, however, for the work permit, we don't support RBP control on the Country level. If you think it's strongly required, please create a separate requirement for SAP. 2090228 - How to Submit Ideas for SAP SuccessFactors Products
Keywords
work permit information, business rule, metadata, system limitation , KBA , LOD-SF-EC-PER-WRK , Work Permit - Config, Rules, RBP, UI , Problem