Invoking a Gosu rule from gosu code

It is possible to invoke Gosu rules in a rule set from Gosu code. To do so, use the following syntax:
  • rules.[rule set category].[rule set name].invoke([root entity])

It is important to understand that the use of the invoke method on a rule set triggers all of the rules in that rule set. You cannot invoke individual rules within a rule set using the invoke method. PolicyCenter executes all of the rules in the invoked rule set in sequential order. If a given rule’s CONDITION block expression evaluates to true, then PolicyCenter executes the Gosu code in the ACTION block for that rule.