我尝试ilog jrules已经有一段时间了,我对规则覆盖功能特别感兴趣,尽管有一种纯粹的IRL方法可以通过编程创建继承人和覆盖规则。我想使用rule studio来覆盖规则,而不是用IRL编写它。
在rule studio的规则属性窗口中,有一个选项可以指定要覆盖的规则,但我找不到任何地方来给出用于对规则进行覆盖决策的条件。
有没有人能解释一下这个?我应该在哪里添加用于覆盖规则的条件?或者我必须以IRL编程的方式来完成呢?
发布于 2012-03-09 21:21:22
如果在运行时在同一规则任务中选择了一个或多个其他规则,则规则可以覆盖这些规则。
假设你有两个规则A和B。A是一个规则,如果你在忠诚度计划中达到了金牌地位,就会给你一个一般的折扣:
规则A:
if
the status of 'the customer' is gold
then
add a 4% discount, reason: "Gold membership"规则B应以5%的折扣覆盖德国市场的此规则:
规则B:
if
the status of 'the customer' is gold
and the home country of 'the customer' is Germany
then
add a 5% discount, reason: "German loyalty program: gold status"规则B的属性必须指定应覆盖规则A(在属性:覆盖的规则:规则A中)。在两个规则都可以执行的情况下,由于"overridden“属性,只选择规则B。规则A将被覆盖,这意味着在运行时在同一规则任务中选择这两个规则。
有关更多信息,请查看the documentation
https://stackoverflow.com/questions/9602572
复制相似问题