Defining Node Conditions
You can configure a node condition expression to define the nodes that you want to subscribe to in a source viewpoint. For example, you can subscribe only to active nodes, or nodes at a specific level in a hierarchy. When you configure a node condition expression, only actions taken on the nodes that are evaluated to True for the expression will generate subscription request items for the target viewpoint.
Only properties that are configured for the node types associated with the viewpoint are available to be selected in the expression builder.
Note:
Node condition expressions are not applied to request items with the Remove, Rename, or Delete action.
To define a node condition expression:
-
From Views, open the view that contains the target viewpoint.
-
Select the target viewpoint.
-
Place your cursor to the right of the viewpoint name, click
, and then select Inspect.
-
Select Subscriptions, and then click the name of the subscription that you want to add an action filter to.
-
In the Subscription Inspector, select the Filters tab, and then click Edit.
-
In Node Condition, click Define Expression
to launch the expression builder.
-
In expression builder, create the node condition expression. Because you are evaluating nodes in the subscription viewpoint for the condition, you use the sourceNode object in the expression builder.
The expression builder guides you to create an expression that evaluates to a Boolean value only. See Building Expressions.
-
When you are finished creating the node condition expression, click Apply to return to the Subscription Inspector, and then click Save.