Table of Contents

Class ActionGroupBuilder

Namespace
NRules.RuleModel.Builders
Assembly
NRules.RuleModel.dll

Builder to compose a group of rule actions.

public class ActionGroupBuilder : RuleElementBuilder
Inheritance
ActionGroupBuilder
Inherited Members

Constructors

ActionGroupBuilder()

Initializes a new instance of the ActionGroupBuilder.

public ActionGroupBuilder()

Methods

Action(LambdaExpression)

Adds a rule action to the group element. The action will be executed on new and updated rule activations.

public void Action(LambdaExpression expression)

Parameters

expression LambdaExpression

Rule action expression. The first parameter of the action expression must be IContext. Names and types of the rest of the expression parameters must match the names and types defined in the pattern declarations.

Action(LambdaExpression, ActionTrigger)

Adds a rule action to the group element.

public void Action(LambdaExpression expression, ActionTrigger actionTrigger)

Parameters

expression LambdaExpression

Rule action expression. The first parameter of the action expression must be IContext. Names and types of the rest of the expression parameters must match the names and types defined in the pattern declarations.

actionTrigger ActionTrigger

Activation events that trigger the action.