本文介绍了如何根据Promoted Properies将消息路由到Orchestrations?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望得到一些建议。目前,我们有一个BizTalk应用程序,它通过AS2接收XML消息,它们根据消息模式路由到2个Orchestration之一。我要求具有某个提升属性
值的消息采用不同的路由,即直接转到发送端口并完全跳过业务流程。

I was hoping for a bit of advice. Currently we have a BizTalk application which receives XML messages, via AS2, which are routed to 1 of 2 Orchestrations based on the message schema. I've got a requirement that messages with a certain promoted property value take a different route, namely going straight to a Send Port and skipping an Orchestration entirely.

我相信可以直接在发送端口上设置过滤器,以便端口只订阅所需的消息。但是我如何过滤到Orchestration的内容呢?我希望如果没有过滤器,Orchestration将订阅
到要发送到发送端口的消息以及用于它的消息。由于通过发送端口与业务流程进行的消息拆分将随着时间的推移而发生变化,我宁愿通过配置来处理这个问题,而不是每次都对业务流程进行
更改并重新部署。

I believe that it's possible to set a filter directly on the Send Port so that the port only subscribes to the required messages. But how can I filter what goes to the Orchestration? I expect without a filter in place the Orchestration will be subscribed to the messages intended to go to the Send Port as well as the messages intended for it. As the split of messages going via Send Port vs the Orchestrations is going to be changing over time, I would rather handle this through configuration rather than making changes to the Orchestration and redeploying each time.

使用BizTalk 2013 R2和当前的基本设置如下。我们通过async-AS2接收消息。发送端口将AS2有效负载写入文件夹,然后由接收端口(XML管道和入站映射)接收。 Orchestration(s)
绑定到接收端口而不是直接绑定到MessageBox。  

Using BizTalk 2013 R2 and the current basic setup is as follows. We receive messages over async-AS2. A Send Port writes the AS2 payload to a Folder, which in turn gets picked up by a Receive Port (XML pipeline and inbound map). The Orchestration(s) bind to the Receive Port rather than directly to the MessageBox.  

任何建议都会得到很好的收到。

Any advice will be greatfully received.

提前致谢

推荐答案

您应该可以使用"过滤表达式"您的业​​务流程中接收形状的属性,以进一步过滤收到的消息。

You should be able to use the "Filter Expression" property on the Receive shape in your Orchestration to further filter which messages are received.

Br,

Leo

Br,
Leo


这篇关于如何根据Promoted Properies将消息路由到Orchestrations?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 11:19