Creating a Custom Rule with Java (Advanced)

You can create a 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.

To create a custom Java rule:

  1. On the Orchestrator Studio Home page, click the Rules icon.

  2. On the Rules side panel, click the New drop-down menu and select Java.

  3. Create and name the rule as described in Creating a Component.

  4. On the Rules design page, 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.

  5. Complete the following fields in the grid:

    • Input. Enter the name of the field in the class.

    • Value. Enter a variable for the input name. If the attribute is a boolean and you pass in "true", then you could enter a default value.

    • Default Value. Enter a default value if there is no mapped value. You can also add a default 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 Restore from the Manage drop-down menu to retrieve the last saved state of the custom Java rule.

  7. Click the Save button.