Write JSON map inputs

You can map data from variables in the orchestration to the InputJSON parameter defined by the XML schema specified in the Configure task or use sample JSON/REST XML and the Configure panel to generate the input structure.

About this task

The Encoding input parameter is optional and you are not required to map it. If the Encoding input parameter is not listed in the To Activity pane of the Map Inputs pane, select Map > Show Optional Parameters from the toolbar menu or right-click in the To Activity pane and select the Show Optional Parameters option. If the Map > Show Optional Parameters option is not selectable in the toolbar menu, click on a node in the Map Inputs pane to make this option active. The Encoding input parameter specifies how outgoing data should be encoded for this procedure.

Procedure

  1. If no decoding is required, specify the string: text.
  2. If encoding is required, specify the encoding type to be used to encode the outgoing data, for example: UTF-8, US-ASCII, ISO-8859-1, EBCDIC-XML-US, or SHIFT_JIS.

Example

Optionally, you can override the Encoding setting you specified in the Configure task of the Checklist dynamically during run time using the Encoding input parameter. For example, if you set the Encoding to UTF-8 in the Configure task but during run time you passed in the Encoding setting of Shift_JIS. The Encoding setting specified dynamically during run time overrides the original setting specified in the Configure pane. In this example, the Encoding is set to Shift_JIS. There is one exception to the dynamic overriding behavior: if the Data is text-Needs no decoding or encoding option is selected in the Configure task, the Encoding that is dynamically set during run time is ignored. See Creating an orchestration for more information.



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


https://www.ibm.com/support/knowledgecenter/en/SS3LC4_7.5.3/com.ibm.wci.doc/Write_json_Map_Inputs.html