MQ Header Setter mediation primitive properties
You can specify values for mediation primitive properties either by using the property fields in the IBM® Integration Designer user interface or by using an XML format. The property field names displayed in IBM Integration Designer are generally different from the property names used when building a mediation flow using XML code. In the following information, icons are used to identify each property name used in IBM Integration Designer and the corresponding XML name. (Where applicable, XML names that are required, but not shown in IBM Integration Designer, are also described.)
MQ Header Elements headerElements
A table of actions that you want to perform on MQ header elements, in the SMO. You can add to this table by clicking Add (follow any instructions to add a dependency, from the module to the MQ schemas). Then follow the instructions of the wizard.
Field detail | Value and notes |
---|---|
|
Validate input validateInput
If true, causes the input message to be validated before the mediation is performed.
Field detail | Value and notes |
---|---|
Required | Yes |
Valid values | Boolean Note:
|
Default | false |
Considerations
- If the Header Action is Find and Set and a header cannot be found, a new header is created.
- If you attempt to set a header field to a value of incompatible type, a runtime exception occurs.
- If the Target Destination resolves to more than one element in the SMO, a runtime exception occurs.
- If the Validate input property is true and the input message is invalid, a runtime exception occurs.
Sample XML code
<node name="MQHeaderSetter1" type="MQHeaderSetter">
<table name="headerElements">
<row>
<property name="mode" value="Create"/>
<property name="values" value="MQRFH2_TYPE/@xsi:type="MQRFH2_TYPE"
MQRFH2_TYPE/Flags="1" MQRFH2_TYPE/NameValueCCSID="2""/>
<property name="targetDestination" value=""/>
<property name="type" value="MQRFH2"/>
<property name="values.reconstruction" value="<?xml version="
1.0" encoding="UTF-8"?>
<com.ibm.ccl.soa.test.common.
models.parm:ParameterList xmi:version="2.0" xmlns:xmi="
http://www.omg.org/XMI" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:com.ibm.ccl.soa.
test.common.models.parm="http:///com/ibm/ccl/soa/test/common/models/parm.
ecore" xmlns:com.ibm.ccl.soa.test.common.models.value="
http:///com/ibm/ccl/soa/test/common/models/value.ecore"
id="1290898834640_2">
 <parameters xsi:type="
com.ibm.ccl.soa.test.common.models.value:ValueStructure"
name="MQRFH2_TYPE" id="1290898835281_3" value=""
defaultValue="" typeURI="xsd:/#MQRFH2_TYPE"
baseTypeURI="xsd:/#MQRFH2_TYPE" hasChildren="
true">
 <context>

<properties name="project_context" value="
TestMod"/>
 </context>

<elements xsi:type="com.ibm.ccl.soa.test.common.models.value:ValueField"
name="Flags" id="1290898835312_4"
value="&quot;1&quot;" defaultValue="
0" typeURI="xsd:/http://www.w3.org/2001/XMLSchema#int"
baseTypeURI="xsd:/http://www.w3.org/2001/XMLSchema#int"
required="true"/>

<elements xsi:type="com.ibm.ccl.soa.test.common.models.
value:ValueField" name="NameValueCCSID" id="
1290898835640_8" value="&quot;2&quot;" defaultValue="
0" typeURI="xsd:/http://www.w3.org/2001/XMLSchema#int"
baseTypeURI="xsd:/http://www.w3.org/2001/XMLSchema#int"
required="true"/>

<elements xsi:type="com.ibm.ccl.soa.test.common.models.
value:ValueArray" name="folder" id="1290898835656_11"
writeable="false" value="" defaultValue=""
typeURI="xsd:/#MQRFH2Group[]" baseTypeURI="xsd:/
#MQRFH2Group[]" elementTypeURI="xsd:/#MQRFH2Group"
elementBaseTypeURI="xsd:/#MQRFH2Group"/>

</parameters>
</com.ibm.ccl.soa.test.common.
models.parm:ParameterList>
"/>
</row>
</table>
<inputTerminal/>
<outputTerminal>
<wire targetNode="XSLTransformation1"/>
</outputTerminal>
<failTerminal/>
</node>