biztalk:使用第一个节点xml文件来决定要使用的地图 [英] biztalk: using first node xml file to decide what map to use

查看:76
本文介绍了biztalk:使用第一个节点xml文件来决定要使用的地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有一个问题,我必须创建业务流程并以xml文件的第一个节点为基础,我必须决定要使用的地图.知道怎么做吗? 我尝试使用决策形状,并在决策形状中使用xslt查询来查找等于特定节点的第一个节点,决策形状会将其发送到特定地图. 这是一个好方法吗?

I have a problem in my project i have to create orchestration and base o first node of xml file i have to decide what map will be use. Any idea how to do it? I try to use decide shape and in decide shape use xslt query to find first node equal particular node decide shape will send it to particular map. is that a good approach?

推荐答案

为每种类型的消息使用接收位置的另一个选项是在业务流程中使用侦听"形状.侦听的每个分支都将期待一个不同的消息类型(或您所称的根节点),并且可以应用适当的映射.然后,假设您要映射到规范架构,则业务流程的其余部分将相同,而与输入消息的类型无关.

Another option that would use a receive location for each type of message would be to use a Listen shape in the orchestration. Each branch of the listen would be expecting a different message type (or root node as you put it) and you could apply the appropriate map. Then, assuming you are mapping to a canonical schema, the rest of the orchestration would be the same regardless of input message type.

在图像中,业务流程正在使用侦听形状来侦听3种类型的消息.主要是为了重播性,因为业务流程在不同阶段失败时,我可以在修复后将其重新注入流程中.

In the image the orchestration is using a listen shape to listen for 3 types of message. It's mostly for replay-ability for when the orchestration fails at different stages, I can inject it back into the flow after a fix is made.

这篇关于biztalk:使用第一个节点xml文件来决定要使用的地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆