A reusable rule is essentially a predefined set of actions or processing steps that can be invoked multiple times across different workflows, systems, or processes. These rules are typically modular and designed to be reused wherever the same logic or sequence of actions is needed. The benefit of reusable rules is that they help to reduce redundancy in configurations, saving both time and effort.
Scope:
The reusable rule created is specific to the processing policy in which it was defined. New or existing processing policies cannot use reusable rules from this policy.
Precondition:
Multi-protocol gateway (MPGW) should be created and configured.
Steps to Create a Valid Reusable Rule:
1. In existing multi protocol gateway, click on the ‘+’ icon to create a new processing policy for a specific action to be performed on the request.

2. Enter the Policy Name and click on Apply Policy to create the Processing Policy.

3. A success message will appear upon creation. Click on Add to define the rules.

4. Click on the Match rule action to proceed with the configuration.

5. Select an existing match rule from the dropdown menu or click on ‘+’ to create a new match rule.

6. Click on the ‘+’ icon to add the necessary actions.

7. The AAA action is selected from the build rules, and the Reusable Actions accordion is disabled because there are no available reusable actions, as highlighted below.

8. You can see that the AAA action has been added to the rule. Click on the AAA action node to configure it.

9. Click the ‘+’ to create a new AAA policy or select an existing one.

10. I selected the Filter action and clicked on it to configure.

11. I clicked the Var Builder button, then selected the Custom User Variable option, and clicked the Use Custom button to set the Transform file value.

12. Click on Done to save changes.

13. Selected the Filter action and clicked on it to configure similar to Filter.

14. After that, select Verify and Results, and then configure.

15. Click on Create Reusable Rule to new reusable rule.

16. I selected the AAA action in the rule and then clicked on the 'Transform' action. As shown below, this resulted in an 'Invalid reusable rule' error.

17. I clicked the 'Filter' action to create a valid reusable rule, after which a highlighted box appears around the selected actions. The 'Invalid reusable rule' message disappeared, indicating that the rule is now valid.

18. Click on highlighted ‘close’ icon to create reusable rule.

19. While creating a Reusable rule, the create a Reusable rule, Reorder mode and Match rule are disabled. Once the Reusable rule is created, these previously disabled options become enabled, as shown in the screenshot below.

20. To create the second reusable rule, I clicked on the ‘Verify’ and ‘Results’ actions, then clicked the ‘Create Reusable Rule’ close icon.
Next, click the ‘Done’ button to create the rule and define the rule for the ‘test-reusable-policy’.

21. You can click the 'Add' button to create a new rule, or click 'Edit Rule'. In this case, I clicked the 'Add' button.

22. Then, click on the 'Plus' icon to check if the reusable actions are available.

23. You can view the reusable actions as shown below.

24. On hover, you can view the details of the action.

25. Select the first reusable rule from the list of reusable actions, and the corresponding actions for that rule will be added as shown below.

Note: The Processing Policy can be configured for any service. I am using default values throughout, but these can be customised to suit your specific needs.
PS : The above steps are performed on DP version 10.6.2.0