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:

  1. After adding the Rule step to the orchestration, click the Rule step row.

  2. In the Rule design panel, click the New Custom Java button.

  3. In the Custom Java pop-up field, enter a name for the custom Java rule.

    Do NOT include spaces in the custom Java name.

  4. Click the Ok button.

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

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

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

  8. 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:

  1. Click the Copy Java button.

  2. In the pop-up fields, click the Custom Java to Copy drop-down menu and select a custom Java rule to copy.

  3. Enter a name for the new custom Java rule.

  4. Modify the custom Java rule values as necessary.

  5. Click the Save All button.