Make the tasks within a Business Process branch out to another Business Process based on a Compare task.
You must have two Business Processes created:
- The one you want to initially use (Initial Business Process)
- The one to which you want to branch (Branch Business Process)
- Open the initial Business Process object's editor.
- Under the Script section, click the Add button to add a new task.
- Click Click to select task to produce a selection window. Select the task or object that can enable the branching.
Many times, this task is a Boolean (true or false) comparison, such as CompareFiles, CompareValues, or ContainsString.
- With that task highlighted, access the Properties view and define the task's parameters.
- Click the Add button to add a new task.
- Click Click to select task to produce a selection window. Select the Branch Business Process.
Note: A Business Process must be contained in the current Project or in a Package that has been made available to the current Project to appear in the selector window.
- In the Branch Business Process' Label column, type a label for this task (for example, BranchBP). Press Enter.
- Set the Pass and Fail actions for the task/object that can prompt the branching.
For example, suppose you want to use the Branch Business Process if a CompareFile task is false. You would:
- Set the CompareFile's Pass action as the Initial Business Process' next step
- Set the CompareFile's Fail action as BranchBP (or whatever you labeled the Branch Business Process)
-
If you are sequencing tasks that primarily use the "next" and "end" labels, make sure the Branch Business Process is moved down to the bottom of the list, and the task before it (that would end the Initial Business Process) has as Pass action of end.
Note: If you leave the Initial Business Process's second-to-last task as next and the Branch Business Process follows, you'll kick off the Branch Business Process.
- Click the Save button and close the editor to complete this task.
Comments
0 comments
Please sign in to leave a comment.