Enablement and Taking Over of Substitution Rules
If you want to enable or take over a substitution rule, the BPM OData service provides the EnableSubstitutionRule operation.
The EnableSubstitutionRule function import can be used in different scenarios depending on the mode of the substitution rule and the role of the current user in the substitution rule.
RECEIVE_TASKS Mode
For the substitution rules in RECEIVE_TASKS mode, the EnableSubstitutionRule function import can be used only by the substituted user to enable or disable the substitution rule by passing a true or false value for the Enabled parameter.
TAKE_OVER Mode
For the substitution rules in TAKE_OVER mode, the EnableSubstitutionRule function import can be used by both the substituted and the substituting user.
The substituted user uses this function import to enable or disable the substitution rule by passing a true or false value for the Enabled parameter. Once the substitution rule in TAKE_OVER mode has been enabled, the substituting user can take it over. If the substituted user disabled a substitution rule and later enabled it again, the substituting user must take it over again to receive substituted tasks.
The EnableSubstitutionRule function import can be used by the substituting user in order to take over or to refuse a substitution rule in TAKE_OVER mode by passing a true or false value for the Enabled parameter.