Open the application in the Object Manager
panel.
Under the Detail
section, choose the Contained Objects
tab.
The Contained Objects
tab page appears.
Choose Expression
from the Type
field and choose Create Object
.
In the Object Creation
dialog box that appears, choose Decision Tree
in the Type
field.
Enter the following data:
Name
(Optional) Short Text
(Optional) Text
Choose Create and navigate to object
.
The newly created decision tree expression appears in the Object Manager
panel.
Note
If you choose Create
the decision table expression appears under the Contained Objects
tab.
Choose the result type. You can select return value or perform action.
Select Return Value
Choose Return Value
in the Result Type
field.
Assign the result data object.
You can assign a standard data object, an existing data object or a new data object.
Select a Standard Type
Choose (Graphical Access
).
In the context menu, choose Default Objects
and choose the data object type.
Select an Existing Data Object
Choose (Graphical Access
).
In the context menu, choose Select...
.
In the Object Query
dialog box that appears, select the data object and choose Select
.
Create a New Data Object
Choose (Graphical Access
).
In the context menu, choose Create...
.
In the Object Creation
dialog box that appears, create the data object.
For more information, see Creating Data Objects
Note
The result data object can be an element, a structure or a table data object.
Assign a root node to the decision tree. You can choose direct input, an existing expression or a new expression.
Select Direct Input
In the context menu of the node, choose
.Choose (Graphical Access
) to define the incoming parameter.
You can choose a standard type, an existing data object or an expression.
Select a Standard Type
In the context menu, choose Default Objects
and select the standard type.
Select an Existing Data Object
In the context menu, choose Other Context Parameter...
.
In the Context Query
dialog box that appears, select the data object.
Select an Existing Expression
In the context menu, choose Expressions
.
In the Object Query
dialog box that appears, select the expression.
Choose the comparison operator and enter values.
Choose Done
.
Select an Existing Expression
In the context menu of the node, choose
.In the Object Query
dialog box that appears, select the expression.
Create a New Expression
In the context menu of the node, choose
.In the Object Creation
dialog box that appears, create the expression.
For more information, see Creating Expressions
Note
The root node can only be a condition.
The selected expression is set as the root node and two child nodes appear under the root node.
Add a condition or a result to the child node. You can assign an existing expression or a new expression to the child node depending upon the outcome of the condition in the root node.
Assign an Existing Expression as a Result
In the context menu of the positive child node, choose
.In the Object Query
dialog box that appears, select the expression.
Assign a New Expression as a Result
In the context menu of the positive child node, choose
In the Object Creation
dialog box that appears, create the expression.
For more information, see Creating Expressions
Choose Direct Input
In the context menu of the node, choose
.Choose (Graphical Access
).
You can choose a standard type, an existing data object or an expression.
Select a Standard Type
In the context menu, choose Default Objects
and select the standard type.
Select an Existing Data Object
In the context menu, choose Other Context Parameter...
.
In the Context Query
dialog box that appears, select the data object.
Select an Existing Expression
In the context menu, choose Expressions
.
In the Object Query
dialog box that appears, select the expression.
Choose the comparison operator and enter values.
Choose Done
.
Assign an Existing Expression as a Condition
In the context menu of the negative child node, choose
In the Object Query
dialog box that appears, select the expression and choose Select
.
Assign a New Expression as a Condition
In the context menu of the negative child node, choose
In the Object Creation
dialog box that appears, create the expression.
For more information, see Creating Expressions
Note
There is no restriction to the level of nodes that you can create in the decision tree.
All leaf nodes have to be result nodes.
Activate the expression.
Save the expression.