首页 文章
  • 0 votes
     answers
     views

    当规则组未激活时评估子句的规则

    我们刚刚意识到drools会评估规则的条款何时不在“活动”规则流组中 . 实际上,在第一个活动规则流组期间正在评估流的when子句末尾附近的规则组 . 有没有办法改变这种行为?我们希望避免在后面的规则组中执行的工作,在这些子句中,流程可能永远不会到达这些组(某些证据会触发数据库读取) .
  • 0 votes
     answers
     views

    如何应对Drools比赛

    我问过一个类似的问题,但问题没有得到妥善解决 . 我会再次尝试解释它 . 以下是我的用例以非常抽象的方式 . (i). If there is at least one objA of type A, create another obj2A of type A. (ii) If there are two or more object of type A, create an object ob...
  • 0 votes
     answers
     views

    如何从Drools 4.x中的决策表中检索事实对象

    我们的团队正在使用Drools规则流进行评估 . 现在我们计划迁移到决策表 . 在Drools规则流版本中,我们曾经使用具有查询组件的DRL文件来从工作内存中提取在DRL文件的上下文中创建的对象 . 我坚持在决策表中做同样的事情?我们使用StatefulSession来触发规则 . 而且,这些事实被插入规则的RHS中;我们在解雇它们时没有FactHandles . 用于引导Drools规则引擎的代...
  • 1 votes
     answers
     views

    Drools决策表规则未使用更新的值

    我使用Drools Rules Server作为服务 . 我们正在使用决策表 Pre Rules Movie Object: actor: "unknown" movie: "Ghostbusters" rating: 9 我在Drools Decision表中有2条简单的规则 . 第一个规则检查值( movie=="Ghostbus...
  • 0 votes
     answers
     views

    在Drools中激活规则流组

    当.drl文件中的规则被分组为“ruleflow-group”时,需要在外部激活它以触发这些规则 . 但是如何在知识会话中激活它呢? 我尝试使用以下内容: ksession.getAgenda().getAgendaGroup("ruleflow-group name").setFocus(); // start the process - ruleflow is .rf f...

热门问题