Creating a Custom Rule with Java (Advanced)

You can create complex rule using custom Java. Before you add a custom Java rule in the Orchestrator Studio, you must create a custom Java class to use for the rule as described in Creating Custom Java for Orchestrations.

To create a custom Java rule:

  1. Click the Rules icon on the Orchestrator Studio Home page.

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

  3. Select the Java radio button.

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

  5. (Studio 5.1.0) Click the Product Code drop-down list to select a product code to associate with the rule.

    This gives an administrator the option to manage UDO security for orchestration components by product code.

  6. In the space provided, enter a short description with a maximum of 200 characters. This description appears below the rule name in the component list.

  7. Click the Edit Long Description button to add a long description to provide more detail about the purpose of the component.

  8. In the Fully Qualified Class field, enter the fully qualified 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.

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

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

  11. Click the Save button.