A rule:
Is used for simple condition checking in a business process.
Serves as an exclusive split.
Is an expression, for example a > 5.
Is either true or false and there is only one path that the processing can follow based on the results of the condition at runtime
To create a single rule:
In your business process, select the Business Process tab.
Click on the Business Process canvas to activate the Tool Palette.
If the Tool Palette does not appear either on the Fast View shortcut bar or as an open view in the perspective, open the Tool Palette.
From the Logic tool palette, drag and drop the Single-rule activity onto the canvas.
To rename the rule from its default name, in the Properties view, click the automatically generated rule name and type your rule name.
You can also change an activity's name directly on the canvas. Select the activity, then click its label. When the label appears in a box, type the new name.
Either expand the Properties section in the Business Process Logic Page or open the Properties Panel view.
Either expand the Variables section in the Business Process Logic Page or open the Variables Panel view.
Drag the variable that you want to use to the Select Variable icon on the Expression editor canvas in the Properties section, and when the cursor turns to a plus sign, drop the variable on that icon.
In the Properties section or Properties Panel view, click the is equal to icon on the Expression canvas.
The Properties for the Operation dialog box appears to the right of the canvas.
To change the operation type, do one of the following:
Click the arrow to open the Source Text drop-down list and select the operator that you want to use.
Drag the operator from the tool palette and when the cursor turns into a plus sign, drop it on top of the is equal to icon.
The new name and icon is reflected on the Expression canvas.
(Optional) Use the Collapse button to collapse the expression on the canvas.
When an expression is collapsed, it displays a text representation of the rule.
Return the collapsed expression to a graphical representation by clicking Expand.
Click the edit constant icon on the Expression canvas.
The Properties for the Operation dialog box appears to the right of the canvas.
To populate the Source Text field, do one of the following:
To have the logical name and source text be the same, select the Bind Source checkbox.
The Source Text field is automatically populated with the logical name.
Type the name of the actual value.
To change the data type, click the arrow to open the Data Type drop-down list and select the data type that you want to use.
If you select date time as the data type, the time is automatically adjusted to Greenwich Mean Time (GMT). For example, 6/22/2005 3:34:08 PM is sent as 2005-06-22T19:34:08.000Z. The GMT date format should be used in the rule for an AXIS client because the time in the request message is automatically adjusted to GMT.
User-defined data types are labeled Undefined when they are dropped onto the Expression editor canvas..Undefined data types are compatible with all other data types.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com