This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw:decision_tool [2019/10/14 15:06] runger |
bw:decision_tool [2022/08/02 15:17] (current) akoehler |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Introduction (Decisions) ====== | ====== Introduction (Decisions) ====== | ||
| - | This document | + | This page |
| ====== Decision Tool ====== | ====== Decision Tool ====== | ||
| Line 13: | Line 13: | ||
| The initial workflow is very simple. A SQLCommand query step retrieves a list of Business Partners from the SAP Business One database. The decision(s) are within a loop since we want to evaluate each record individually. | The initial workflow is very simple. A SQLCommand query step retrieves a list of Business Partners from the SAP Business One database. The decision(s) are within a loop since we want to evaluate each record individually. | ||
| - | {{: | + | {{ : |
| Three values are included in the query: Partner Code and Partner Type. Our decision will be based on Partner Type, which can be one of three values: C, S, or L. | Three values are included in the query: Partner Code and Partner Type. Our decision will be based on Partner Type, which can be one of three values: C, S, or L. | ||
| Line 25: | Line 25: | ||
| In this first example we will be branching to the SLQCommand step if the Card Type value = ‘C’. | In this first example we will be branching to the SLQCommand step if the Card Type value = ‘C’. | ||
| - | - Drag the tool to be executed for the “true” decision step into the design area and configure it as needed. \\ {{: | + | - Drag the tool to be executed for the “true” decision step into the design area and configure it as needed. \\ {{ |
| + | : | ||
| - Drag a Decision tool into the design area. | - Drag a Decision tool into the design area. | ||
| - At this point you can either enter the evaluation rule or close the Decision. | - At this point you can either enter the evaluation rule or close the Decision. | ||
| - In either case you will need to link the Decision to its preceding step. \\ {{: | - In either case you will need to link the Decision to its preceding step. \\ {{: | ||
| - If the application has not already done so, connect the Decision to the appropriate output step. | - If the application has not already done so, connect the Decision to the appropriate output step. | ||
| - | - Open the Decision tool and configure the evaluation expression that will lead to the output step. \\ {{: | + | - Open the Decision tool and configure the evaluation expression that will lead to the output step. \\ {{ |
| + | : | ||
| - Drag a “Merge” tool into the design area. | - Drag a “Merge” tool into the design area. | ||
| - Connect the Decision output step to the Merge tool. | - Connect the Decision output step to the Merge tool. | ||
| - | - Connect the Merge tool to the subsequent step in the workflow. \\ {{: | + | - Connect the Merge tool to the subsequent step in the workflow. \\ {{ : |
| ===== Using the “Else” Decision Rule ===== | ===== Using the “Else” Decision Rule ===== | ||
| Line 41: | Line 43: | ||
| However, if you want a false evaluation to go to a specific step, an ELSE evaluation must be used. In this next example we want the flow to move to the “SQLCommand_getOtherName” step. Therefore, we have an explicit ELSE step to point the workflow in that direction. | However, if you want a false evaluation to go to a specific step, an ELSE evaluation must be used. In this next example we want the flow to move to the “SQLCommand_getOtherName” step. Therefore, we have an explicit ELSE step to point the workflow in that direction. | ||
| - | {{: | + | {{ : |
| - | {{: | + | {{ : |
| ===== “No Match” Situations ===== | ===== “No Match” Situations ===== | ||
| Line 53: | Line 55: | ||
| The previous examples illustrate a single evaluation criterion. In some cases, however, the evaluation may need to be more complex. In the following (simple) example we are reading a list of all the SAP Business One Business Partners. We then want to take an action if 1) it is a customer (CardType = ‘C’) and 2) their current A/R balance is greater or equal to 50,000. The evaluation will look like this: | The previous examples illustrate a single evaluation criterion. In some cases, however, the evaluation may need to be more complex. In the following (simple) example we are reading a list of all the SAP Business One Business Partners. We then want to take an action if 1) it is a customer (CardType = ‘C’) and 2) their current A/R balance is greater or equal to 50,000. The evaluation will look like this: | ||
| - | {{: | + | {{ : |
| - **AND** and **OR** relationships are supported. | - **AND** and **OR** relationships are supported. | ||
| Line 60: | Line 62: | ||
| - When using a combination of AND and OR relations, the OR relationships are considered together. | - When using a combination of AND and OR relations, the OR relationships are considered together. | ||
| - It may be necessary to try different combinations of AND and OR to obtain the desired result. | - It may be necessary to try different combinations of AND and OR to obtain the desired result. | ||
| + | |||
| + | ====== Decisions Variables ====== | ||
| + | |||
| + | ^ Name ^ Description | ||
| + | | StepMessage | ||
| + | | StepStatus | ||