Creating and editing condition fragments to be used in Interactive Communications - condition is one of the four types of document fragments used to build Interactive Communications. The other three are texts, lists, and layout fragments.
Condition is a document fragment that you can include in an Interactive Communication. The other document fragments are text, list, and layout fragment. Conditions enable you to define one or more contextual assets that get included in an Interactive Communication based on the supplied data and rules.
The assets in the conditions that are rendered based on the applied rules and the values passed to the rule. The rules in the conditions can check values in the following types of data:
Select Forms > Document Fragments.
Select Create > Condition.
Specify the following information:
Create Condition page appears.
Tap Add Assets.
Select Assets page appears and displays the available texts, lists, conditions, and images that are available for adding in the condition.
Only none-based, newly-created assets and FDM-based assets (created using same FDM as the condition being created) appear in the Select Assets page.
Tap on the appropriate assets to select them to include in the condition and then tap Done.
Create Condition page appears and lists the added assets.
You can use the following options to manage assets in a condition:
[A] Reject Change. Tap this icon to reject the changes you may have made to the asset and the rule in the condition.
[B] Accept Change. Tap this icon to accept the changes you have made in the asset and rule in the condition.
[C] Duplicate Asset. Tap this icon to create a copy of the asset along with the applied rule, if any, in the condition. Then you can proceed to editing the rule and asset for duplicated asset. Duplicating an asset is useful for creating similar rules to display alternate assets based on a particular context.
[D] Show Preview. Tap this icon to display a preview of the asset within the Create\Edit Condition page.
[E] Reorder. Tap and hold this icon to drag-and-drop assets to reorder them within a condition.
You can select the following options to specify how the condition behaves at runtime:
The created rules appear in the RULE column in the Create Condition screen.
You can insert assets in your condition that already have rules or repeat applied.
The condition is created. Now you can proceed to using the condition as a building block while creating an Interactive Communication.
To save a new or edited condition, you must have at least one rule for each of assets added in the condition.
You can edit a condition using the following steps. You can also choose to edit a condition from within an Interactive Communication by selecting Edit Fragment in the popup menu.
Using rule editor in a condition, you can create rules to display or hide assets based on preset conditions. These conditions can be constructed based on:
While creating or editing a condition, tap (Rule Editor) icon for the relevant asset.
The Create Rule dialog appears. In addition to string, number, mathematical expression, and date, the following are also available in the Rule Editor for creating statements of the rules:
Select the appropriate option to be evaluated.
Collection property is not supported for creating rules to display assets.
Select the appropriate operator to evaluate the rule, such as Is Equal To, Contains, and Starts With.
Insert the evaluating expression, string, data model property, variable, or date.
Rule to show an asset when policy type is standard
The rule gets applied to the asset.
While creating or editing a rule in a condition, you can tap (Resize) to expand the Create Rule\Edit Rule dialog. The expanded, full-window dialog allows you to:
Tap Resize again to go back to the Create Rule\Edit Rule dialog.
While creating or editing a rule in a condition, you can tap (Resize) to expand the Create Rule/Edit Rule dialog.
The Expanded, full-window dialog appears.
In the left pane, tap Variables.
The Variables pane appears.
Create Variables pane appears.
Enter the following information and tap Create:
The variable is created and listed in the Variables pane.
To insert a variable in the rule, drag-and-drop the variable into a placeholder for an option in the rule.
After you have constructed a valid rule, tap Done.
Proceed to making further changes, if required, in the condition and saving it.