Using resultMap in Script
The following code is an example script written in the Groovy language within a Script Task.
It has been shown that many different types of data are produced with the resultMap variable and how these data are transferred to other processes as JSON.
The JSON display of the resultMap value is important in terms of giving an idea of how to use the data added with the script in the next step of the process.
GROOVY
When this script runs, the resultMap JSON state will be like the sample data below.
TEXT