Adding a Custom Java Rule
You can create custom Java for a rule and then add it to the orchestration as a rule, which is referred to as a custom Java rule. Before you can add a custom Java rule to an orchestration, you must create the custom Java as described in Creating Custom Java for Orchestrations.
You can add a new custom Java rule or copy an existing custom Java rule.
To add a new custom Java rule:
- After adding the Rule step to the orchestration, click the Rule step row. 
- In the Rule design panel, click the New Custom Java button. 
- In the Custom Java pop-up field, enter a name for the custom Java rule. - Do NOT include spaces in the custom Java name. 
- Click the Ok button. 
- In the Class field, enter the path to the Java class, which includes the name of the Java path, for example: - This is the custom Java class that you created to use for the rule. See Creating Custom Java for Orchestrations. 
- Complete the following fields: - Attribute. Enter the name of the field in the class. 
- Input Value. Click the drop-down menu and select the input value. If the attribute is a boolean and you pass in "true", then you could use a default value. 
- Default Value. Enter a default, hard-coded value if there is no mapped value. You can also add a hard-coded value to use if the mapped value returns a null. 
 
- If you make a mistake while configuring any of the fields, you can click the Restore Custom Java button which refreshes the custom Java rule to its last saved state. 
- Click the Save All button. - The Orchestrator Studio saves the custom Java rule and saves the orchestration with the newly added step. 
To add a new custom Java rule by copying an existing custom Java rule:
- Click the Copy Java button. 
- In the pop-up fields, click the Custom Java to Copy drop-down menu and select a custom Java rule to copy. 
- Enter a name for the new custom Java rule. 
- Modify the custom Java rule values as necessary. 
- Click the Save All button.