Adding a Custom Java Rule
You can create custom Java for a rule and then add it to an 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 in this guide.
To add a new custom Java rule:
- Access the Rules design page from the Orchestrator Studio Home page. 
- On the Rules design page, click the New Custom Java button. 
- In the Rule field, enter a name for the custom Java rule. - Do NOT include spaces in the custom Java rule name. 
- In the Class field, enter the path to the Java class, which includes the name of the Java class. - This is the custom Java class that you created to use for the rule. 
- Complete the following fields in the grid: - Attribute. Enter the name of the field in the class. 
- Input Value. Enter a variable for the input name. If the attribute is a boolean and you pass in "true", then you could enter a hard-coded default value. 
- Default Value. Enter a 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 Rule button which refreshes the custom Java rule to its last saved state. 
- Click the Save button.