Try OpenEdge Now
skip to main content
BPM Events User's Guide
The rule language : Predefined rule actions : Enabling and disabling rules : enableRule(<application>, <module>, <rulename>)
 
enableRule(<application>, <module>, <rulename>)
This predefined rule action enables a particular rule. This rule was loaded previously (with the module it belongs to). For call effectiveness, the rule must be in a disabled state prior to the call. Indeed, when a module is loaded in BPM Events, all its rules are already automatically enabled by default. The syntax is:
enableRule(<applicationname>, <modulename>, <rulename>)
Note: These arguments are of String type: they must appear in quotes when given by value.
Example:
enableRule("HelpDesk", "moduleA", "apply_discount");