This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
bw:decision_tool [2019/01/02 06:49] _deletedUser4_ created |
bw:decision_tool [2022/08/02 15:17] (current) akoehler |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Introduction ====== | + | ====== Introduction |
| - | This document | + | This page |
| - | + | ||
| - | ====== Audience ====== | + | |
| - | + | ||
| - | This document is intended for developers of Bizweaver workflows. | + | |
| - | + | ||
| - | ====== Related Documents ====== | + | |
| - | + | ||
| - | The following documents contain additional information that may be helpful with the development of Bizweaver workflows. | + | |
| - | + | ||
| - | * Bizweaver – Application Introduction | + | |
| - | * Bizweaver – Looping Tool | + | |
| - | + | ||
| - | ====== General Workflow Step Information ====== | + | |
| - | + | ||
| - | - Each workflow step must have a unique **Name**. | + | |
| - | - The application will assign a default name, but we recommend that you change the name to something that helps you understand the purpose of the step as it is used in other steps. | + | |
| - | - The name cannot have spaces or special characters other than and underscore (_) | + | |
| - | - Enter an optional **Description** to provide any additional information that may be helpful to understanding the step. | + | |
| - | - Press < | + | |
| ====== Decision Tool ====== | ====== Decision Tool ====== | ||
| Line 32: | 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. | ||
| - | {{:media/image1.png?576x79}} | + | {{ :bw: |
| 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 44: | 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. |
| - | + | :bw: | |
| - | {{:media/image2.png?576x88}} | + | - Drag a Decision tool into the design area. |
| - | + | - 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. \\ {{:bw:image3.png}} |
| - | < | + | - If the application has not already done so, connect the Decision to the appropriate output step. |
| - | < | + | |
| - | < | + | :bw: |
| - | < | + | - Drag a “Merge” tool into the design area. |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | {{:media/image3.png?576x109}} | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | {{:media/image4.png?576x95}} | + | |
| - | + | ||
| - | Be sure to pick the appropriate data Type for the value being evaluated. | + | |
| - | + | ||
| - | The evaluation expression can be viewed in the “Branching Details” window of the Decision. This will also show you where the branch will go if the evaluation is true. | + | |
| - | + | ||
| - | {{:media/image5.png?576x81}} | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | {{:media/image6.png?576x105}} | + | |
| ===== Using the “Else” Decision Rule ===== | ===== Using the “Else” Decision Rule ===== | ||
| Line 84: | 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. | ||
| - | {{:media/image7.png?576x76}} | + | {{ :bw: |
| - | {{:media/image8.png?576x107}} | + | {{ :bw: |
| ===== “No Match” Situations ===== | ===== “No Match” Situations ===== | ||
| Line 96: | 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: | ||
| - | {{:media/image9.png?384x118}} | + | {{ :bw: |
| - **AND** and **OR** relationships are supported. | - **AND** and **OR** relationships are supported. | ||
| Line 103: | 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 | ||