每次从映射节点中的目标消息插入一个选择选项内的元素到他的 'father'

Insert an element inside a choice option to his 'father' everytime from a target mssage in mapping node

我在 IBM esb/wmb 的消息流中使用映射节点,并且有一部分我需要将目标消息中的特定元素插入目标消息中的 "father",此元素位于 'choice' 选项内。

例如:

<xs:element name="JOB">
     <xs:complexType>
        <xs:choice>
           <xs:element name="YES"/>
           <xs:element name="NO"/>
        </xs:choice>
      </xs:complexType>
  </xs:element>

我希望目标消息中的 'JOB' 元素始终获得 'YES' 元素。

有没有办法用 wmb 中映射节点中的一些构建函数来做到这一点?

您可以通过赋值函数设置静态值。只需右键单击目标元素并 select 创建分配。