Go to Rule Action

The Go to Rule workflow action allows the logic of one workflow rule to invoke a Callable rule.  By using Callable rules along with this type of action, multiple rules in a workflow process can reuse sets of actions and their associated conditions without requiring you to define the actions and their conditions more than once.

 

 

 

Configuring a Go to Rule Action

To create a Go to Rule action, you must first have at least one Callable workflow rule defined in the form's workflow settings.  This can be a conditional or non-conditional rule, and it may contain one or many actions, including true or false actions.  For more information on Callable rules, see Workflow Rule Configuration.

 

Once you have a callable rule defined that you want to invoke from another rule, follow the steps below to create it:

 

  1. Create a workflow rule for the form that determines the conditions under which the Go to Rule action should be executed.  For more information on creating workflow rules, see Workflow Rule Configuration.

 

  1. Create a new action for the rule you defined in the step above.  When prompted for action type, choose "Go to Rule."  As with other action types, you may optionally enable business process logging for this action.  For more information, see Rule Action Configuration.  Once you have entered the basic information about the action, click the Next button.

 

  1. The next screen will prompt you to choose the rule that you want the action to invoke.  The New Rule field will contain a dropdown list showing the available callable rules.  Choose the rule you want the action to invoke, and click the Finish button.

 

Just like any other type of action, a Go to Rule action can be defined either by itself, or within the chain of execution of other actions associated with a rule.  When a Go to Rule action is called, the workflow engine leaves the chain of execution of actions for the rule that it is currently evaluating, skips to the rule that is called, executes its actions if necessary, then comes back to the original rule and finishes the execution of its actions.

 

Note that the workflow configuration interface will not allow you to configure a workflow process that might involve circular execution of rules and actions.  For example, Rule A cannot contain a Go to Rule action that calls Rule B, which in turn has a Go to Rule action that calls Rule A again, since in practice this type of scenario could produce catastrophic results.  When you are defining a Go to Rule action and you get to the rule selection screen, any rules that would cause this type of condition are filtered from the available rules list, making them unavailable for selection.