How to use exitToNextRoot
It is useful to employ the exitToNextRoot method if you set up your rule set to make two separate decisions.
For example, suppose that you set up an Add Forms rule to determine the issuing state for a policy. Then, you decide on the forms to attach using the results of this determination. You can structure the rule set as follows:
- Always process my child rules to evaluate the policy line…
- If (conditions) Then (Add forms) [Done, but go to next top-level rule]
- Otherwise…
- Always process my child rules to evaluate the policy state…
- If (conditions) Then (Add forms) [Done, no need to go further]
- Otherwise…
After PolicyCenter makes the first decision (setting forms for that policy line), the decision logic is complete. However, PolicyCenter needs to move on to the next major block of decision-making, which is deciding if the giving state requires further forms. After PolicyCenter sets the segment, the rule set is finally complete, so the rule can just use the simple exit method.
