Defining JSON Messages for RA JMS Agent Sender Jobs

When setting definitions for RA JMS Agent Sender Jobs, if you select JSON from the Message Type field, you can define the message from a JSON file or by inputting JSON code.

Browsing to a File

To select a file, select File and click its browse icon to browse to a message file or enter a directory and file name in.

The File field can include object variables in the format &<variable name>. The values of these object variables will be replaced at runtime.

Inputting Data

To enter text, select Direct Input and enter text in the text box.

  • The JSON code is displayed with colored syntax highlighting.
  • Line numbers are displayed on the left side of the Direct Input text box and code blocks are collapsible/expandable.

You can have the RA JMS Agent auto-format your text to add logical line breaks and indentations for better readability by clicking Pretty Print.

This text box can include object variables in the format &<variable name>. The values of these object variables will be replaced at runtime.

Validating the JSON Code

You can validate the JSON code in the text by clicking the Validate icon.

To validate the payload when the Job runs, check the Validate Payload at Runtime box. If the validation does not pass, the task will fail.