从地图内访问促销属性
我正在尝试根据收到的文件位置名称和收到的日期的一部分来关联编排。我有一个带有分配日期的入站地图的接收端口,但我无法弄清楚如何访问接收位置的升级属性(我已升级)。
有什么方法可以访问这些信息吗? 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从字面上回答您的问题,是的,有一个 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.