[rules-users] decision tables and default rules for case when part of LHS failes for other rules

Michael Anstis michael.anstis at gmail.com
Wed Jul 13 07:49:21 EDT 2011


hehe, I didn't want to fall for the "getting salience values round the wrong
way" trap like I normally do.

Thanks Wolfgang :)

2011/7/13 Wolfgang Laun <wolfgang.laun at gmail.com>

> Ahem,...
>
>
> 2011/7/13 Michael Anstis <michael.anstis at gmail.com>
>
>> If you want to use a single XLS decision table then the answer is still,
>> "no it's not possible".
>>
>> If however you willing\able to use DRL then a world of opportunities is
>> opened to you.
>>
>> I believe something like this will work - but wait to be corrected -
>> laune? ;)
>>
>> rule "specific 1"
>>   when
>>     SomeObject( someSpecificCriteria )
>>   then
>>     insert(new Result() );
>> end
>>
>> rule "generic"
>
>
> ## ensure this fires only in the absence of any speficic-N rule
> salience -100
>
> -W
>
>
>>
>>   when
>>     not Result( )
>>   then
>>     insert(new Result() );
>> end
>>
>> You could (possibly) use two XLS decision tables where the two rules above
>> are effectively defined in each.
>>
>> With kind regards,
>>
>> Mike
>>
>>
>> On 13 July 2011 09:09, Syargey <Syargey at tut.by> wrote:
>>
>>> First I wanted to add parameters from "condition 1" column to a session
>>> and
>>> to add condition which makes default rule true if no parameter in session
>>> is
>>> equal to an entry argument.
>>>
>>> But I couldn't find a way to add a parameter from a condition expression
>>> to
>>> a session.
>>>
>>> Is it possible?
>>>
>>> --
>>> View this message in context:
>>> http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-case-when-part-of-LHS-failes-for-other-rules-tp3162872p3165180.html
>>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110713/fece45a2/attachment.html 


More information about the rules-users mailing list