RabbitMQ Connector Guide > RabbitMQ Processes > Message Payload
  

Message Payload

The event used in the process contains an process object with a payload that represents the RabbitMQ message. You can process the RabbitMQ messages in one of the following format:
When the RabbitMQ message is in JSON or XML format, the message payload for RabbitMQ is made accessible to the process as a process object of type $po:$any.
For example, the following RabbitMQ message is represented in JSON format:
[
{"firstName":"cindy", "lastName": "louis", "department": "qa", "id":1},
{"firstName":"billy", "lastName": "joe", "department": "dev", "id":12}
]
If you select JSON as the content format for the event, the Process Designer receives the JSON message payload as a process object list:

<message>
<headers>
<name>rabbitmq.ROUTINGKEY</name>
<value>defaultQueue</value>
</headers>
<body>
<employee>
<firstName>cindy</firstName>
<lastName>louis</lastName>
<department>qa</department>
<id>1</id>
</employee>
<employee>
<firstName>billy</firstName>
<lastName>joe</lastName>
<department>dev</department>
<id>12</id>
</employee>
<body>
</message>
Note: If the payload is JSON, the array does not have a field name as defined in the RabbitMQ message. You can specify an in the Object List Field Name property and set the implicit object field name. In the above example, employee is specified as the object field name for the event source in the Object List Field Name property.