Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 10 Conditional Processing : TIBCO Object Service Broker Conditional Processing

TIBCO Object Service Broker Conditional Processing
What is Conditional Processing?
In TIBCO Object Service Broker, you use conditional processing to determine whether a given expression is true or false. Based on the result, you control which action statements in the rule are subsequently executed.
Uses of Conditional Processing
Using conditional processing you can, for example:
In conditions with relational comparisons, only one comparison is permitted per condition. For a complete list of comparisons that you can make in conditions, refer to Comparison Operators.
The value can be passed in as an argument value in the calling rule; or a local variable value passed in from a rule higher up in the calling hierarchy.
Use the value of a field of type logical using a table.field reference to determine the actions to be performed.
The value must be passed in from a rule higher up in the calling hierarchy.
If you want to provide conditional processing, you can specify conditions to your rule in the conditions section of the rule.
What are Conditions?
Conditions are logical expressions evaluated sequentially for their truth value. The sequencing of actions following this evaluation is regulated by the Y/N quadrant and the action numbers that are specified for the rules statements. If one of the conditions is satisfied, the actions corresponding to it are executed and no further conditions are evaluated. If no conditions are given, all the numbered action statements in the body of the rule are executed.
Example of a Condition Segment and Associated Actions
The following example shows the condition segment containing an expression and the action segment showing the first action to take place based on the values determined by the Y/N quadrant:

 
_ ------------------------------------------------------------+--------------
_ JOBTITLE = 'SENIOR ANALYST'; | Y N N
_ JOBTITLE='ANALYST'; | Y N
_ ------------------------------------------------------------+--------------
_ RATE = 0.1; | 1
_ RATE = 0.05; | 1
- RATE = 0.002; | 1

 
Adding Conditions
To add conditions, type an I into the line command field of the condition section and press Enter to insert a line. Add each condition, ending each one with a semicolon(;).
This part of the rule also contains the Y/N quadrant, which contains values that associate conditions with actions. The Rule Editor manages the Y/N quadrant; you cannot edit it.
Maximum Number of Conditions
You can have up to six conditions in a rule.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved