2024 Aug 05 7:15 AM - edited 2024 Aug 09 11:48 AM
I'm trying to model a Decision in SAP Build Process Automation that is using inputs that are lists.
The documentation for SBPA on how to create Decisions states:
Example
Employees | ||
Employee_ID | CityCode | Age |
L321 | BLR | 30 |
L322 | MUM | 40 |
My question is, how would I model the decision table to use the Employees List? Would I need another condition to use Employees from the example, as Employees is not available to add as a condition?
And where do I add the EXISTSIN conditions? 'BLR' EXISTSIN(Employees, CityCode) adapted to my case always gives me syntax errors in the Condition Editor.
UPDATE:
After leaving comments in the SAP Build Process Automation documentation, and getting pointed to the blog post Understanding how-to use Table & its Functions in Business Rules and also reading Using Vocabulary Rules to Build Reusable Formulas in SAP Cloud Platform Business Rules I think I'm a step further.
Unfortunately those two blogs are from the Business Rules in SAP Workflow Service days and therefore hard to find when you search with SAP Build Process Automation terminology.
But I'm still stuck with how to model the rule that calls the decision table.
2nd UPDATE:
I had success modeling a Decision that has an Input Parameter that is a List and then evaluate a Decision Table with Hit Policy First-Match.
The part I don't know how to solve is, how can I handle results from a Decision Table with Hit Policy All Match?
I would need a nested loop to handle the multiple results returned from the Decision Table for each Employee.
Kind regards,
Sebastian
I finally figured it out. When you switch the Decision Table Hit-Policy to All Match, the UPDATE function has to assign the result to a Data Type that contains a List of the Result Data Type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.