Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
177 views
in Technique[技术] by (71.8m points)

message - BizTalk 2010 Output File Routing Based on Element Value

I have an XML to XML map which output beautifully. The issue is we want to route the output based on this one element/field coming into the map (there are 2 different values which can populate the same field).

The problem is the field repeats in the output so the field can't be promoted in the outbound map. We can only seem to get it to output in both locations if we apply a filter to the Send Ports.

I have tried defining a variable based on the field after making the field in the source file both Distinguished and Promoted. I have tried custom receive pipelines as well as send pipelines: currently the closest I come is outputting to both locations.

I know this is child's play for most of you but am stymied myself. Any assistance is appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Have a canonical schema that is used internally that has the element used for routing as a promoted property.

Map the incoming message to the canonical schema.

Have your send ports subscribing to the promoted property on the canonical schema.

Have a map on each of your send ports that maps from the canonical schema to the desired outgoing schema.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...