如何在BRE中以编程方式(c#)声明多个事实, [英] how to assert multiple facts programatically (c#) in the BRE,

查看:182
本文介绍了如何在BRE中以编程方式(c#)声明多个事实,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在BRE中以编程方式断言多个事实(C#),以便即使其中一个规则使用了撤回"操作,BRE也应获取另一个事实.

我的完整情况如下:

我制定了一个包含四个规则的策略,第一个规则验证记录,第二个规则撤回第一个规则使用的事实,第三个规则将新事实断言到BRE中,而我的最后一个规则将使用BRE断言的事实.第三条规则并更新记录. 我要插入的事实是同一XML模式的多个实例.
执行策略后得到的结果是,我的前两个规则被解雇了,但是第三个和第四个规则却没有被解雇,因为它们没有得到新的事实.

伙计们,请为我提供帮助或任何可以解决我问题的建议,因为自从过去3-4天以来,我一直在挠头:(

How do I assert multiple facts programatically (C#) in the BRE, so that even if ''Retract'' action has been used by one of the rules, the BRE should get another fact.

My complete scenario goes like this:

I made a policy having four rules, the first rule validates records, the second rule is retracting the fact used by the first rule, my third rule will assert the new facts into the BRE, and my last rule will use the fact asserted by the third rule and update the record. The facts I want to insert is the multiple instances of the same XML schema.
The result I''m getting after executing the policy is, my first two rules are fired but the third and fourth one were not because they are not getting the new fact.

So guys, please provide me help or any sort of suggestion that will solve my problem, as i''m scratching my head since the past 3-4 days :(

推荐答案

不确定,但是您需要更新第二条规则中的事实.
not sure, but u need to update the fact in 2nd rule.


这篇关于如何在BRE中以编程方式(c#)声明多个事实,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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