Adding a Custom Java Service Request

You can create custom Java for a service request, which is referred to as a custom Java service request. Before you can add a custom Java service request to an orchestration, you must create the custom Java as described in Creating Custom Java for Orchestrations.

To add a custom Java service request, you can add a new custom Java service request or copy an existing custom Java service request.

To add a new custom Java service request:

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

  2. In the Service Request area, click the New Custom Java button.

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

    Do NOT include spaces in the name.

  4. Click the Ok button.

  5. In the Class field, enter the Java class.

    This is the custom Java class that you created to use for the service request. 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. Click the Save button.

    The Orchestrator Studio saves the custom Java request and saves the orchestration with the newly added ServiceRequest step.

  8. If you modify any fields and make a mistake, you can click the Restore Custom Java button which refreshes the custom Java rule to its last saved state.

To add a new custom Java service request by copying an existing custom Java service request:

  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 service request to copy.

  3. In the New field, enter a name for the new custom Java service request.

  4. Modify the custom Java service request values as necessary.

  5. Click the Save button.