商业规则不会解雇 [英] Business Rule Won't Fire

查看:92
本文介绍了商业规则不会解雇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个简单架构的简单编排。在模式内部是字段"IsGood",其默认为"True"。在业务流程中,针对消息运行规则集以检查几个字段,如果有任何错误,则改变"IsGood"。字段为false。然后,取决于"IsGood"的值。业务流程将其路由到具有文件发送管道的适当目录。

问题是,即使规则集在业务规则编辑器策略测试中使用测试消息运行得很好,但规则似乎使用相同的测试消息通过业务流程访问时不执行任何操作。我已经开启了对策略的跟踪,但我找不到跟踪事件的存储位置。我查看了组概述,并查询了跟踪的消息事件,但是我没有看到任何与规则相关的内容,并且所有显示的事件都没有告诉我有关规则引擎的任何信息。

那么哪里可以从业务流程运行时,我发现了规则集的跟踪?

So I have a simple orchestration with a simple schema.  Inside the schema is a field, "IsGood", which defaults to "True".  In the orchestration, a rule set is run against the message to check a few fields, and if any are in error, it changes the "IsGood" field to false.  Then, depending on the value of "IsGood" the orchestration routes it to an appropriate directory with a file send pipeline.

The problem is that, even though the rule set runs perfectly fine using the test message in the business rule editor policy test, the rule seems to do nothing when accessed via the orchestration using the same test message.  I've turned on tracking for the policy, but I can't find where the tracked events are being stored.  I look in the group overview, and query for tracked message events, but I see nothing related to a rule, and none of the events that do show tell me anything about the rule engine.

So where can I find the trace of the rule set when it has been run from an orchestration?

推荐答案

您的问题可能是,来自XML的输入字段的类型需要完全合格。见图:

http://www.eliasen.dk/biztalk/vocabulary1.jpg - 这是错的。 "文档类型:"字段应该与 http://www.eliasen.dk/biztalk/vocabulary2.jpg 中一样 - 就我而言。您需要单击解决方案资源管理器中的架构,然后在属性中将架构的完全符号名称复制到"文档类型:";业务规则中使用的xml定义字段。
Probably, your issue is, that the type of the input fields from the XML need to be fully qualified. See this picture:

http://www.eliasen.dk/biztalk/vocabulary1.jpg - this is wrong. The "document type:" field should be as in http://www.eliasen.dk/biztalk/vocabulary2.jpg - in my case. You need to click on the schema in solution explorer and in the properties, copy the fully qulified name of the schema to the "document type:" field of the xml definitions used in your business rule.


这篇关于商业规则不会解雇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆