- How can I trigger workflow using Business rule?
- How to create a Business rule to initiate workflow on a custom MDF object.
- What are different ways trigger a workflow on an MDF objects?
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental
- SuccessFactors Cloud HCM: MDF
- SuccessFactors Cloud HCM: MDF Worklfow
- SuccessFactors Cloud HCM: MDF Rules
Reproducing the Issue
Background: Workflow can be set using two ways:
A) Using Workflow Routing on the object level.
B) Dynamically through Rules, where customer will set 'wfConfig' property of an Object Definition.
Prior to 1902, wfconfig was shown in Basic Rules.
In 1902, we implemented New Rules scenarios where the wfConfig property was not shown in Basic or New MDF Scenarios when creating a rule.
Because of the above change, the customers were not able to Edit the Basic Rule or add a New wfConfig to the existing Rule and workaround for this was to create a New Rule Scenario with Workflow purpose.
In few cases of complex Rules which needed Edit and addition of wfconfig, this created a problem. So to prevent this we need to adopt the API developed by Rules Engine Team in 1905 to:
-Show wfconfig in Basic Rules
-Hide wfconfig in new MDF Rule Scenario based rules.
Post 1905 behavior should be as below:
1.When creating or Editing Basic Rules for MDF Object, user should be able to see the wfConfig property.
2.User should be able to set the wfConfig in Basic Rule and the Rule should be executed successfully.
3.When creating a new MDF Rule Scenario, the user should not be able to see wfconfig when creating/editing for any purpose except for Workflow.(Must select ‘Workflow’ as Purpose).
4. Then further choose like below:
MDF: Metadata Framework, MDF Workflow, MDF Business Rule, wfConfig, Scenario Based rule, Basic Rule, , KBA , LOD-SF-MDF-WFL , MDF Workflows , LOD-SF-MDF-RUL , Rule Issues in MDF Object , Product Enhancement