A condition determines whether a transaction journal is eligible for an action. You can also create a condition group and define a set of conditions together. A condition can have a child action or a child condition.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions with Loyalty Management |
Conditions
You can associate a condition with a child step or a child condition. When a transaction journal meets the filter criteria of a condition, either the child condition evaluates the transaction journal or the child action is triggered for the transaction journal.
For each condition, ensure that you specify a name and select one of these filter criteria.
- All conditions are met (AND): A transaction journal matches the condition only when all the filter criteria match.
- Any condition is met (IS): A transaction journal matches the condition when at least one of the filter criteria matches.
- Customize the logic: Specify a logic that the transaction journal must match to be evaluated
by the child condition or for the child action to be triggered.
For example, a custom logic can be (1 AND 2) OR 3. This logic means that the transaction journal matches the condition when either:
- The first two filter criteria are met
- Only the third filter criteria is met
Next, define the filters of the condition. To define filters, enter the required values for these fields.
| Field | Description |
|---|---|
| Resource |
Select an already defined parameter or an object field. When a transaction journal is processed, the value of the Resource field is automatically populated from the selected parameter. If you select an object field, its value is automatically populated based on the transaction journal that's processed. |
| Operator | Select the operator based on which the transaction journal is evaluated. |
| Type |
Select the type of value by using which you want to evaluate the transaction journal.
|
|
Value OR Resource |
|
- Resource: TransactionJournal.Brand
- Operator: Equals
- Type: Fixed Value
- Value: Cloud Kicks
Condition Groups
A condition group contains a set of conditions and a default path. Each condition in a condition group can contain child conditions or actions. The default path can only contain a child action.
When condition group processes a transaction journal, the transaction journal is evaluated by each condition in the sequence in which the conditions are saved. When a transaction journal satisfies the filter criteria of a condition, the transaction is no longer evaluated by the subsequent condition. The child condition or the child action of the matched condition either evaluates the transaction further or triggers the selected action. If the transaction journal doesn't match any condition, then the action associated with the default path is triggered for the transaction journal.