Business processes usually require different approvers depending on the actual data in the process. Approvers shouldn't be hard coded into approval steps, but should be calculated dynamically with each process run. Also, in some situations, an actual approval by a human might not even be required, but the process should be approved automatically. Decisions and decision logic are perfectly suited to handle these kinds of situations. In the following, you'll create decision logic that will approve a sales order automatically when its sales order amount is below a certain threshold.
Create a decision to determine approvers who will be authorized to approve sales order based on complex rules.
To learn more about how to create and configure decision logic in the process, follow this tutorial.
To carry out this exercise, you can choose from the following options:
- Live Environment – Using the instructions provided below, you can perform the steps in your SAP BTP account.
- Platform Simulation – Follow the step-by-step instructions within the simulation.
- Side-by-side – Follow the step-by-step instructions within the simulation and perform the steps in your SAP BTP account simultaneously.
We strongly recommend to perform the steps in the live environment.
To add a decision, first identify the set of rules to consider in the decision-making process.
Then define the data types relevant for designing the rules. Data types will contain all the necessary fields that will be needed to model the rule. For example, if a design rule says "Sales Order Amount greater than 100000", then set the Approver e-mail as firstname.lastname@example.org. Then, the data types are Sales Order with
Amountfield, and Approver with