Development tools : Transaction editor : Drawing flows in the flow editor : Creating condition state : Defining Condition in Condition state
  
Defining Condition in Condition state
This section describes how to define a condition in Condition state.
Conditions in Condition state are sever-side conditions. No matter defining server-side or client-side conditions, there are three kinds of Condition type: Expression, Global functions, and Common.
Add a Condition for the Condition state
1 Drag-and-drop a condition state icon from the Palette to the canvas.
2 In the Properties view, go to the Condition tab and click the Add icon This graphic is described in the surrounding text. on the Condition List panel to create a new condition.
Then the Condition Details panel appears.
Define the Condition expression
This graphic is described in the surrounding text.
1 Select Condition type and define the entire Condition expression according to the selected type.
There are three Condition types, Expression, Global function, and Common.
Note The list of possible Global functions and Common s would be restricted to the target environment, such as the server-side, client-side or both.
Expression: logical or relational operation defined by users
This graphic is described in the surrounding text.
Select one of the operators to define Expression type.
Define left and right input elements according to Expression type. Click the 'browse' button on the right. In the pop-up Expression editor, select one of the supported elements and assign the value.
Global function: common data manipulation, such as compare and concatenate provided by UDTT
This graphic is described in the surrounding text.
1 Expand the functions tree to select the Global function. You could use the search bar to find the Global function you want and use Description label to know better about the function. See Global functions for detailed information about the function.
2 Define each parameter. Click the 'browse' button on the right. In the pop-up Expression editor, select one of the supported elements and assign the value.
Common: common condition which has been defined by users in Condition Dictionary
This graphic is described in the surrounding text.
1 Select the Common from the List panel.
2 Define each parameter. Click the 'browse' button on the right. In the pop-up Expression editor, select one of the supported elements and assign the value.
3 In the Event field, an event name will be generated automatically. You could re-name the event.
4 Optional: In the Description field, enter the basic knowledge of this condition to clarify the purpose or function.
5 Click 'Apply value' button to save the defined condition.
Result
A Condition is successfully defined. You could repeat the steps to create multiple Conditions for a Condition state.
Go up to
Creating condition state