Show TOC

Procedure documentationExecute Ruleset Action Locate this document in the navigation structure

 

The Execute Ruleset and Execute Flow Ruleset rule script actions result in evaluating and executing another ruleset – either a rete ruleset or a flow ruleset. This action is similar to invoking a ruleset, except that the current value of objects, including variable definitions, are available to the ruleset being invoked (instead of their initial values). If the invoked ruleset changes the value of any of the objects, these are reflected in the initial Flow Ruleset.

Syntax

Execute Ruleset "Ruleset-Name" [on Object-Name]

Example

For Each (purchaseOrderSchema:item)

Execute Ruleset Discount Ruleset On purchaseOrderSchema:item

Note Note

  • Execute Ruleset action is not available in FlowRuleset created as part of the process composer development component.

  • • If the target Ruleset uses static methods, Execute Ruleset action with On <object name > qualifier does not give the expected results. At the time of modelling, all the required classes whose static methods are being used in the target Ruleset have to be specified in the Execute Ruleset action call as follows:

    Execute Ruleset Ruleset1 <On Names of Objects whose static methods are being used in Ruleset1>

  • If objects are added as a result of Assert and Return action in the target Ruleset, these are not returned to the calling Flow Ruleset.

End of the note.