Script Templates

Script Templates are used to easily create a new scripts together with test contexts. Right click on any script folder where you want to create a New -> Boomi Process Script.

Use IntelliJ Templates
  • Give the script a meaningful name.

    • DO use characters, numbers and underline only.

    • DO NOT use spaces or special characters: -/&(){},[] etc.

    • DO use eitherCamelCase, camelCase or lower_case notation.

  • Write one line about the purpose of the script.

  • and you your shortcut as the author

Create a new Boomi Process Script based on a template
circle-info

The script filename starts with psg<BoomiScriptName> as the naming convention for Process Script Groovy: psgMyFirstScript.groovy.

The Script file psgMyFirstScript.groovy is created with the following content:

Create a new Test Context

To run a Boomi Script we need a Test Context.

When you create a New -> Boomi Process Script Test, provide the script's name that you used when creating the script: final String SCRIPT_NAME = "MyFirstScript"

Create a new Test Class for MyFirstScript

Run the Test

You can run or debug the Test right from there:

Run or debug script

Last updated