Biztalk 规则引擎:如何使用 .net 类来验证传入消息
我想做的是:
我收到一个传入的 xml。它具有“id”元素。现在,在 .net 类库中,我想检查我的数据库中是否已存在具有此 id 的实体。如果已经存在,则调用无效。
如何使用 Biztalk 规则引擎实现此目的?
What I want to do is this :
I am getting an xml as incoming. That has as "id" element. Now in a .net
class library , I want to check that an entity with this id already exists in my db or not. If it already exists, the call is invalid.
How can I achieve this usin Biztalk Rule engine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BizTalk 规则引擎用于根据规则集评估消息。规则集存在于称为策略的静态结构中,并且无法通过调用 .NET 组件来“丰富”策略。也不应该有。
如果您需要通过数据库调用使基于某些内容的消息无效,请在调用规则引擎之前(或之后)在编排中执行此操作。
规则引擎用于根据基于静态数据或基于消息中其他内容的数据的规则来评估消息内容。
The BizTalk rules engine is used to evaluate messages against rule sets. A rule set exists in a static stucture called a Policy, and there is no way to "enrich" the policy with calls to .NET components. Nor should there be.
If you need to invalidate a message based on some content via a database call do this in an orchestration before (or after) you call into the rules engine.
The rules engine is used for evaluating message content against rules based on static data or data based on other content in the message.