BRE在ReceivedFileName属性上 [英] BRE on ReceivedFileName property
问题描述
我尝试根据文件名路由邮件(默认情况下,此属性在BRE中不可用)。为此,我想使用业务规则。收到的消息通过一个提升ReceivedFileName上下文属性的接收管道传递。
然后我在VS2010中创建了一个项目,其中一个名为ContextProperties的类包含一个带有getter和setter的属性(_receivedFileName)。我还创建了一个实现IFactCreator的类。我在业务规则编写器中创建了以下规则:Received
Filename等于E:\ my_path \ file.txt当我将file.txt发送到接收位置时,我在BizTalk中收到以下错误:执行接收管道失败。原因:无法从解析器字符串BRE解析传输位置:\\policy = ResolveItinerary; version = 1.0; useMsg = false; messageFile =; recognMessageFormat = false;。
我是否必须做一些特殊的事情来访问消息的上下文属性?感谢您的帮助。
Lauriane Savary
Hi, I try to route a message according to its filename (this property isn't available by default in BRE). For that I want to use a business rule. The message received pass through a receive pipeline that promotes the ReceivedFileName context property. Then I created a project in VS2010 with a class named ContextProperties containing one property (_receivedFileName) with getter and setter. I also created a class implementing IFactCreator. I created the following rule in the business rules composer: Received Filename is equal to E:\my_path\file.txt When I send the file.txt to the receive location, I get the following error in BizTalk: There was a failure executing the receive pipeline. Reason: Transport location could not be resolved from teh resolver string BRE:\\policy=ResolveItinerary;version=1.0;useMsg=false;messageFile=;recognizeMessageFormat=false;. Do I have to do something special to access the context properties of a message ? Thank you for your help.
Lauriane Savary
推荐答案
Hey Lauriane,
Hey Lauriane,
默认情况下,ESB工具包BRE不支持常规提升属性。这就是Code plex上ESB Extentions Librar项目的原因。你可以在这里得到这些位:
By default the ESB toolkit BRE does not support regular promoted properties. This is the reason for the ESB Extentions Librar project on Code plex. You can get the bits here:
http://esbextlibrary.codeplex.com/
http://esbextlibrary.codeplex.com/
和更新的ESB 2.1位:
and the updated ESB 2.1 bits here:
http://esbextlibrary.codeplex.com/discussions/232246
http://esbextlibrary.codeplex.com/discussions/232246
这篇关于BRE在ReceivedFileName属性上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!