Bookshelf Home | Contents | Index | PDF |
Siebel Business Process Framework: Workflow Guide > About Workflow Process Steps and Connectors > About Conditional Logic on a Branch Connector > Defining a Branch ConnectorConditional logic is defined on connectors emanating out of a workflow process step, not on the step itself. Therefore, to establish conditional logic in a workflow process, you define a branch connector, which includes adding a connector to the workflow process then defining conditional logic on that connector. Typically, a branch connector is a connector that emanates from a Start step, decision point, Wait step, or User Interact step.
Defining Multiple Branches on a Single StepA Start step, Decision Point, Wait step or User Interact step can each have multiple branch connectors. To define multiple branches on a single workflow step, perform the procedure described in Defining a Branch Connector for each branch you must define for the step. Note that each branch can have its own conditional logic. CAUTION: When defining multiple branch connectors, always define at least one connector with the Type property set to Default. This provides an exit route in case a work item does not meet the conditions defined. Comparing Branching Declaratively to Programming With ScriptYou can implement branching declaratively, as in multiple branches emanating from a single step in a workflow process. In some cases, you can achieve the same result through script, as in scripting on a business service. For example, assume you have a STATUS field that references a List of Values (LOV) and this LOV itself has 120 values. When the user updates the STATUS field, a workflow process performs 100 different updates in three related business components. This workflow contains a Start step that checks for 120 conditions then uses 100 different branches that, in turn, updates the relevant business component. As an alternative, you can configure a workflow process that contains a scripted business service. In this workflow, the STATUS is sent to the business service. The business service computes then propagates the outcome to the business components either through the same business service or through a separate Siebel operation step in the workflow process. Conclusions that can be drawn from this example include:
Branching and Parallel ProcessingIn this release, a workflow process does not support parallel processing. Make sure you define conditions so the workflow can only proceed along one connector. If conditions are defined in such a way that flow can proceed along multiple connectors, the exact run-time behavior of the Workflow engine cannot be accurately predicted. |
Siebel Business Process Framework: Workflow Guide | Copyright © 2008, Oracle. All rights reserved. | |