Below are the steps to create the first HR Triggers BRF+ Rule, the simplest and basic way to create it.
Creating the objects
The order in which you create the objects may vary according to your preference.
My suggestion is to create the objects in the following order, and SAVE it throughout. Only ACTIVATE the objects at the end once all is created.
1- Data object of type Table, called HR_TRIGGER_TABLE, with binding to GRAC_T_HR_TRIGGER_TABLE_BRFP
2- Data object of type Table, called ACTION_ID, with binding to GRAC_T_HR_ACTION_ID_BRFP
3- Function, assigning the context in Signature
4- Decision Table
5- Rule2
6- Loop
7- Rule1
8- Ruleset
9- Assign the Ruleset to the Function
Function
Assign the context in the function signature, as follows:
Data Objects
1- Data object of type Table, called HR_TRIGGER_TABLE, with binding to GRAC_T_HR_TRIGGER_TABLE_BRFP
2- Data object of type Table, called ACTION_ID, with binding to GRAC_T_HR_ACTION_ID_BRFP
Once you create them, automatically the correspondent Structure and Elements will appear.
Decision Table
Rule_2 object
To add operartion (1): in Edit mode, go to Add->Process Expression->Decision Table and select the decision table object.
To add operartion (2): in Edit mode, go to Add->Assign Value to Context->Table type for Action ID.
Click on Change, and select "Select Context Parameter", choose "Action ID" (text type).
In addition, click on Change, and set it to "Insert", once you complete, it should look like below:
Save.
LOOP object
In Edit mode, go to Options>Add Rule->Select an Existing Rule.
And select Rule_2 object.
Save.
Rule_1 object
In Edit mode, go to Add->Process Expression->and select LOOP_1 object.
Save.
Ruleset_1 object
In Edit mode, go to Options>Add Rule->Select an Existing Rule.
And select Rule_1 object.
Save it.
Assign the ruleset in the function: