Verify Project Setup

Open msgHelloWorld.groovy and set a breakpoint on line 27 (left click on the line number).

Hello World with active Breakpoint

Open Test_HelloWorld.groovy, click on the green arrows beside line no 16 and Debug 'Test_HelloWorld'.

Run Test

The script compiles, runs and stops at the Breakpoint, with an open Debugger Windows (Threads & Variables).

Debugger Window: Code execution stopped at breakpoint

Find out, how to "Setop Over" line-by-line and halt after the addition. Check the Variables.

IntelliJ on halt - breakpoint hit

💡 TIP!

In the IDE watch the yellow and red markers in the editor to the right. Also the yellow warning exclamations on the top. Click on ti the open the Problems window.

Find the Database window.

Use ctrl + shift / or ctrl + / for comments.

Script functionality

Have a look at the Map Script itself that simply adds two values:

// This is the script's logic - not too much ...
total = a + b

See the test has passed and check the output (log messages):

Script output

Resume or Stop the execution.

Debugger Execution Controls

See also An illegal reflective access operation has occurred

Use the Map Script in Boomi

Copy and paste the script code to Boomi and do not forget to define the Inputs and Outputs which you are using in your script:

Map Script in Boomi

Write a test process with a Map that uses the Map Script and Test it in Boomi. Check the Logs!!!

Last updated