Rule.Update Interface

Implements

public static interface Rule.Update
extends Settable<Update>

The entirety of a rule update inside a RuleSet.Update flow.

Method Summary

Modifier and Type Method and Description
abstract Update withActions(List<DeliveryRuleAction> actions)

Specifies the list of actions that are executed when all the conditions of a rule are satisfied.

abstract Update withConditions(List<DeliveryRuleCondition> conditions)

Specifies the list of conditions that must be matched for the actions to be executed.

abstract Update withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)

Specifies whether the rules engine should continue running the remaining rules or stop after this rule is matched.

abstract Update withOrder(int order)

Specifies the order in which the rule is applied for the endpoint.

Method Details

withActions

public abstract Rule.Update withActions(List<DeliveryRuleAction> actions)

Specifies the list of actions that are executed when all the conditions of a rule are satisfied.

Parameters:

actions - the list of actions

Returns:

the next stage of the update

withConditions

public abstract Rule.Update withConditions(List<DeliveryRuleCondition> conditions)

Specifies the list of conditions that must be matched for the actions to be executed.

Parameters:

conditions - the list of conditions

Returns:

the next stage of the update

withMatchProcessingBehavior

public abstract Rule.Update withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior)

Specifies whether the rules engine should continue running the remaining rules or stop after this rule is matched.

Parameters:

matchProcessingBehavior - the match processing behavior

Returns:

the next stage of the update

withOrder

public abstract Rule.Update withOrder(int order)

Specifies the order in which the rule is applied for the endpoint.

Parameters:

order - the order value

Returns:

the next stage of the update

Applies to