从地图内访问促销属性

发布于 2024-10-11 04:18:52 字数 135 浏览 4 评论 0原文

我正在尝试根据收到的文件位置名称和收到的日期的一部分来关联编排。我有一个带有分配日期的入站地图的接收端口,但我无法弄清楚如何访问接收位置的升级属性(我已升级)。

有什么方法可以访问这些信息吗? X路径? C# 函数?

谢谢!

I am trying to correlate an orchestration based on part of a received file location name and the date received. I have the receive port with an inbound map that assigns the date, but I cannot figure out out to access the promoted property for the receive location (which I have promoted).

Is there any way to access this info? Xpath? C# functoid?

Thanks!

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

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

发布评论

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

评论(1

清旖 2024-10-18 04:18:52

从字面上回答您的问题,是的,有一个 C# functoid 允许从地图内访问上下文属性。

但是,如果我正确理解您的问题,那么您有一个发送请求消息并异步等待相关响应的编排。我还了解到,您希望在特定日期从特定接收位置收到的所有消息都路由回适当的编排。

为此,您不需要从地图内访问升级的属性。您所要做的就是在发送消息时初始化适当的关联,并在传入的接收管道提升的关联集中中指定属性。

为了使这一点有意义,显然,您需要将日期限制在可接受的范围内,精确到一天、一小时范围甚至一分钟范围。低于此值的任何内容都将面临无法将响应与适当时间关联起来的风险。

如果您对生成响应的特定系统有一定程度的控制,那么使用相关属性的 GUID 可能是最简单的方法。

Literally answering your question, yes, there is a C# functoid that allows access to the context properties from within a map.

However, if I understand your question correctly, you have an orchestration that sends a request message and is asynchronously waiting for a correlated response. I also understand that you would like all messages received from a specific Receive Location at a certain date to be routed back to the appropriate orchestration.

For this, you do not need to access promoted properties from within a map. All you have to do is initialize an appropriate Correlation when sending the message and have the properties specified in the Correlation Set promoted by the incoming Receive Pipeline.

For this to make sense, obviously, you would need to restrict the date to an acceptable range, with precision to a day, a hour-range or even a minute-range. Anything below that would run the risk of not being able to correlate the response to the appropriate time.

If you have some degree of control on the particular system that produces the response, using a GUID for the correlated property is probably the simplest approach.

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