需要一种方法或BizTalk functoid自动连接相同的标签文本

时间:2015-10-30 15:35:10

标签: biztalk biztalk-2013 biztalk-mapper

我有一个BizTalk架构,它输出一个XML文件,其中包含如下所示的标签:

<Narrative>
  <Narrative>for Peter D. Smith Travel to Hamburg</Narrative> 
</Narrative>
<Narrative>
  <Narrative>20/09/15 - 21/09/15 Client development meeting</Narrative> 
</Narrative>
<Narrative>
  <Narrative>with HLAG in Hamburg: airfare ^Approvers: Peter</Narrative> 
</Narrative>
<Narrative>
  <Narrative>D. Smith Gary M. </Narrative> 
</Narrative>

因为它是叙述因此文本行的数量不同。我是BizTalk的新手。有关如何在同一标签内自动连接这些文本的任何建议吗?

1 个答案:

答案 0 :(得分:1)

如果您想要以下输出,则根本不需要functoid,只需要在叙述记录下重复叙述字段的模式和映射叙事字段的地图。

<Narrative>
  <Narrative>for Peter D. Smith Travel to Hamburg</Narrative> 
  <Narrative>20/09/15 - 21/09/15 Client development meeting</Narrative> 
  <Narrative>with HLAG in Hamburg: airfare ^Approvers: Peter</Narrative> 
  <Narrative>D. Smith Gary M. </Narrative> 
</Narrative>

如果您需要以下内容,则需要使用Cumulative Concatenate Functoid

<Narrative>
  <Narrative>for Peter D. Smith Travel to Hamburg 20/09/15 - 21/09/15 Client development meeting with HLAG in Hamburg: airfare ^Approvers: Peter D. Smith Gary M. </Narrative> 
</Narrative>