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.

To add a new custom Java rule:

  1. Access the Rules design page from the Orchestrator Studio Home page.

  2. On the Rules design page, click the New Custom Java button.

  3. In the Rule field, enter a name for the custom Java rule.

    Do NOT include spaces in the custom Java rule name.

  4. 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.

  5. 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.

  6. 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.

  7. Click the Save button.