如何在 Biztalk 2010 中查找端口 ID?

发布于 2024-12-03 03:31:58 字数 306 浏览 0 评论 0原文

我配置了一个名为“SalesOrder”的接收端口,它包含文件类型的接收位置。

现在,当我在发送端口中使用此接收端口时,我定义了一个如下的过滤器:

BTS.ReceivePortName==SalesOrder

我启动端口,它工作得很好。

现在的问题是我是否想要这样的过滤器:

BTS.ReceivePortID=="Where do i get the Port ID"

如何在 Biztalk 2010 中找到 PortID。

I have configured a receiving port named it "SalesOrder" It contains a receiving location of File Type.

Now when i use this receiving port in a Send port i define a filter like this :

BTS.ReceivePortName==SalesOrder

I start the ports and it works just fine.

Now question is if i want to us the filter like this :

BTS.ReceivePortID=="Where do i get the Port ID"

How can i find the PortID in Biztalk 2010.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱*していゐ 2024-12-10 03:31:58

没有一种简单的方法可以获取 ReceivePortID。当创建、删除、设置新端口时,当然,当您在环境之间移动配置时,ID 也会发生变化。更常见的做法是根据 ReceivePortName 设置此类过滤器,因为这(希望)不会发生太大变化。

然而,我认为最佳实践是不要使用与配置相关的此类过滤器,而是根据消息类型设置过滤器并订购其他升级的属性。使用提升的属性而不是配置还将创建更灵活、更松散耦合的解决方案。

There isn't an easy way of getting to the ReceivePortID. The id will also change when creating, deleting, setting up new port and of course as you move you configuration between environments. It's much more common practice to set up these kind of filter based on ReceivePortName instead as this (hopefully) doesn't change as much.

Best practice in my opinion is however to not use these kind of filters that are tied to the configuration but to rather set up filters based on message types and order other promoted properties. Using promoted properties over configuration will also create a more flexible and more loosely coupled solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文