Groovy Template for a Custom Service Request

In the Orchestrator Studio, the Custom Service Request design page contains a Groovy template that you can use to create a custom service request.

Groovy Code Template for a Custom Service Request

The following list describes the highlighted sections in the preceding code:

  1. Add or remove import lines as necessary.

  2. Do not modify the function definition or script definition.

  3. Copy and paste the code in the commented lines and use them in your script. The code lines include:

    • Parameters for defining a string, numeric value, date format, and date value.

    • Parameters for including a warning or log statements in the AIS Server log, which can be used for debugging script issues.

    • Parameter for populating the returnMap for outputs.

The Groovy template also includes an orchAttr that enables you to include additional information in the Groovy script. See Additional Attributes and Methods Available in the Groovy Script Templates.