You are here: Reference > Rule types > Connect MQs > Connect MQ form - Completing the Response tab

Connect MQ form
Completing the Response tab

  1. About 
  2. New 
  3. Service 
  4. Request 
  5. Response 
  6. History 
  7. More... 

Complete the optional Response tab to specify the data read at runtime from the incoming response message. Define how Pega 7 Platform maps the data from fields in the message header or parameter values in the message body to the clipboard.

When using a dynamic queue, this tab is required.

Response Headers

Field

Description

Field

add row Select a MQ message header field from the selection list:

  • Char Set — Character set identifier of message data.
  • Correl ID — Correlation ID
  • Encoding — Numeric encoding of message data
  • Expiry — Message lifetime
  • Feedback
  • Format — Eight-byte format
  • Msg ID
  • Msg Type — Message type
  • Persistence — Message persistence
  • Priority — Message priority
  • User ID — User identifier
Description

Enter a text description.

Map To

Select Clipboard to indicate that the system maps the data value from the scalar property specified in the Map To Key to the clipboard.

Map To Key

Enter the property name to which the data is mapped.

Response Data

If the response is a Datagram (Msg Type is 8), no response data is received. Leave this array blank.

Field

Description

Data Type

add rowSelect the external data type of the response parameter: String, Integer, Bytes, All Chars, All Bytes, Double, or Boolean.

To read the entire message buffer as one variable-length text or binary data, specify All Chars or All Bytes in the first row of this array, and leave the Length field blank. Leave other rows blank. In this case, the system does not read the length from the message buffer.

Offset

Optional. Enter a number of bytes. At runtime, the system advances the cursor within the message buffer to this index position before it reads the data.

Length

Optional. Used only for text (String) and binary (Bytes) data types. Enter a fixed length for the data being read.

  • If the Data Type is String, this is the character-length of the text value.
  • If the Data Type is Bytes, this is the length of the byte-array.

If you do not specify a data length for a text or binary value, the system reads an integer representing the true string length from the data buffer immediately before it reads the value.

Description

Enter a text description of this data mapping.

Map To

Select how the system processes response values. The choice you make for this field depends on what you select for Data Type:

  • Clipboard — The system maps the data value to the property specified by the Map To Key.
  • XML ParseRule — Indicates that the incoming data value from the sending application is an XML document to be parsed using the data mappings specified in a Parse XML rule.
  • HTML PostData — Indicates that the incoming data value from the sending application is a stream of data posted from an HTML form that contains property key/value pairs.

If more choices appear, they each identify a custom function rule in a MapTo library. Review the function rule to determine what it does.

Map To Key

Identify a destination for the Map To operation:

  • If you selected Clipboard, enter the property to which data is mapped.
  • If the Map To value is XML Parse Rule, enter the Namespace name (second key part) and the Element Name name — third key part — of the appropriate Parse XML rule. Separate the Namespace from the Element Name with a space. That is, use the syntax "NamespaceName ElementName" and not "NamespaceName.ElementName." The system uses the Applies to class of this connector rule as the first key part of the parse rule.
  • Note: To maintain backward compatibility for connector rules created in releases before PRPC Version 5.2, you can specify a data mapping with only a Namespace value. In that case, the system at run time determines the Element Name key from the root element of the incoming XML document. However, this mapping works only if the Parser Type of the Parse XML rule is set to DOM and validation is not enabled. As a best practice, specify both the Namespace Name and the Element Name of the rule.

  • If the Map To value is HTML PostData, leave this field blank. The name/value pairs in the string will be mapped to the parameter page of the service activity rather than the primary page.
  • If the Map To value is a Rule-Utility-Function from a MapTo library, either select a property to hold the results of the function or leave this field blank, as appropriate for the function.