Test test
The Test activity is a Flow control activity. It allows you to enable transitions based on specified conditions.
Configure the Test activity test-configuration
Follow these steps to configure the Test activity:
-
Add a Test activity to your Orchestrated campaign.
-
By default, the Test activity presents a simple boolean test. If the condition defined in the 鈥淭rue鈥 transition is met, this transition will be activated. Otherwise, a default 鈥淔alse鈥 transition will be activated.
-
To configure the condition associated to a transition, click the Open personalization dialog icon. Use the expression editor to define the rules required to activate this transition. You can also leverage event variables, conditions, and date/time functions.
Additionally, you can modify the Label field to personalize the transition鈥檚 name on the Orchestrated campaign canvas.
-
You can add multiple output transitions to a Test activity. To do this, click the Add condition button and configure the label and associated condition for each transition.
v -
During Orchestrated campaign execution, each condition is tested sequentially until one of them is met. If none of the conditions are met, the Orchestrated campaigns continues along the path of the Default condition. If no default condition is activated, the campaign stops at this point.
Example example
In this example, different transitions are activated based on the number of profiles targeted by a Build audience activity:
- If more than 10,000 profiles are targeted, an email message is sent.
- For 1,000 to 10,000 profiles, an SMS is sent.
- If the targeted profiles fall below 1,000, they are directed to a 鈥渄o not contact鈥 transition.
To do this, the vars.recCount
event variable has been leveraged in the 鈥渆mail鈥 and 鈥渟ms鈥 conditions to count the number of targeted profiles and activate the appropriate transition.