< Previous | Next >

Implementing the decision branch conditions

In this lesson, you will set the criteria, based on the input data, for which branch to take when decisions are made in the business process.

The decision elements of the process currently have errors because there is no automated way to determine which branch should be taken for a given order.

The branch options are listed in the following table.

Table 1. Summary of Decision Criteria
Decision Criteria
Approve without Review? The previous task set the value of the OrderProcessingPreference - automaticApproval input field. Check if this field is true or false. If this field is true, then the order is automatically approved. If this field is false then the order must be reviewed before it is approved.
Account in Good Standing? Check whether the total price of the order is less than the customer's available credit.
Acceptable Credit Risk? In the previous task, the reviewer sets the value of the OrderStatus field. Check this field for APPROVED.
  1. In the process diagram, click the Approve Without Review? simple decision. In the Attributes view, click the Attributes – Approve without Review? tab and then click the Output branches tab.
    Output branches tab
    1. Click the Yes cell and change the probability field to 65. Similarly, change the No probability field to 35. These probabilities are used during simulation.
    2. Click the Yes cell again. Scroll down to the Expression field and click Edit (you can size the panes in the 4-pane layout by selecting and dragging the borders). The Expression Builder wizard opens.
      Output branches tab and Expression tab
    3. In Expression Builder, complete the following steps:
      1. Click Add.
      2. Under the Expression Composer, ensure Modeling artifact is selected as the first term. Expand Processes > OrderHandling > Approve Without Review? > Input > OrderProcessingPreference and select automaticApproval.
      3. For Operator, select is equal to.
      4. For the second term, select Boolean and set the Boolean value to true.
        Expression Builder window
      5. Click Apply, and then click OK. You might need to scroll down to find the OK button.
      Process diagram
  2. In the process diagram, click the Account in Good Standing? simple decision. In the Attributes view, click the Output branches tab and change the Yes probability to 85 and the No probability to 15.
    1. Select the Yes line, scroll down and click Edit under the Expression field.
    2. In the Expression Builder, complete the following steps:
      1. Click Add.
      2. Ensure that Modeling artifact is selected as the first term. Under First term details, expand Processes > OrderHandling > Account in Good Standing? > Input and select TotalPrice.
      3. For the Operator, select is less than or equal to.
      4. For the second term, select Modeling artifact and then expand Processes > OrderHandling > Account in Good Standing > ? Input > Customer and select AvailableCredit.
        Decision branch condition, Simple binary expression
      5. Click Apply, click OK, and then save your work.
  3. Click the Acceptable Credit Risk? task. In the Attributes view, select the Output branches tab. Make the following changes:
    1. Change the Yes probability to 70 and the No probability to 30.
    2. Select the Yes line, scroll down and click Edit under the Expression field.
    3. In Expression Builder, complete the following steps:
      1. Click Add.
      2. Ensure Modeling artifact is selected as the first term. Under First term details expand Processes > OrderHandling > Acceptable Credit Risk > Input and select OrderStatus.
      3. For Operator, select is equal to.
      4. For the second term, select Text and enter the value as APPROVED.
        Decision branch condition, Simple binary expression
      5. Click Apply, click OK, and then save your work. You should have no more errors (red Xs) on the decision elements of your process diagram.
< Previous | Next >