Defining the Input and Output Variables

The Orchestration Outputs design page provides a script template that you can use. The references to values in the code are related to the inputs and outputs defined in the table below the script.

In the following image of the Groovy template sample, the:

  • Blue mapping indicates that for every value you expect to get from the inputMap in the code, a matching entry must exist in the Input column of the custom step.
  • Green mapping indicates that for every value you expect to get from the returnMap in the code, a matching entry must exist in the Output column of the custom step.
  • Values highlighted in yellow are the variable names for either an individual output or an array output. These names are available for mapping in transformations of the subsequent steps.
This image describes two mappings. The first mapping indicates that for every value you expect to get from the inputMap in the code, a matching entry must exist in the Input column of the custom step. The first mapping is from: - String StringVal = (String)inputmap.get("inputStringVal"); in the code to inputStringVal in the Input column. - BigDecimal NumVal= new BigDecimal((string)inputMap.get("inputNumVal")); in the code to inputNumVal in the Input column. - Data dateVal = format.parse((String)inputMap.get("inputDateVal")); in the code to inputDateVal in the Input column The second mapping indicates that for every value you expect to get from the returnMap in the code, a matching entry must exist in the Output column of the custom step. The second mapping is from: - def array = '[{"Column1":"val1","Column2":"val2"},{"Column1":"val3","Column2":"val4}]'; in the code to Column1 and Column2 in the Member Name column. - returnMap.put("Output Array", array); in the code to Output Array. - returnMap.put("Output String", stringVal); in the code to the Output String value in the Output column - returnMap.put("Output Date", dateval); in the code to the Output Date value in the Output column. The values OutputStrinVar and Output Date Var in the Variable Name column(next to the Output column), Col1Var and Col2Var in the Variable Name column(next to the Member Name column), and Output Array are highlighted. These are the variable names for either an individual output or an array output. These names are available for mapping in transformations of the subsequent steps.