Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
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 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 syar...@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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
Ahem,... 2011/7/13 Michael Anstis michael.ans...@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 syar...@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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
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.l...@gmail.com Ahem,... 2011/7/13 Michael Anstis michael.ans...@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 syar...@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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
In fact, I don't need to have default values if no values were found. I need default values if part of LHS is never true. If I have the rule: rule rule_11 when Object1( constraint1 ) Object2( constraint2 ) then insert(new Result()); end I'd like to have rule applying when Object1( constraint1 ) fails. In decision table. -- 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-tp3162872p3165787.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
On 13 July 2011 14:40, Syargey syar...@tut.by wrote: In fact, I don't need to have default values if no values were found. I need default values if part of LHS is never true. If I have the rule: rule rule_11 when Object1( constraint1 ) Object2( constraint2 ) then insert(new Result()); end I'd like to have rule applying when Object1( constraint1 ) fails. when not Object1( constraint1 ) then -W In decision table. -- 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-tp3162872p3165787.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
Do you know by any chance how can I drop my account from this forum? Sorry for asking such a question Thanks, Guy -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Syargey Sent: Wednesday, July 13, 2011 3:41 PM To: rules-users@lists.jboss.org Subject: Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules In fact, I don't need to have default values if no values were found. I need default values if part of LHS is never true. If I have the rule: rule rule_11 when Object1( constraint1 ) Object2( constraint2 ) then insert(new Result()); end I'd like to have rule applying when Object1( constraint1 ) fails. In decision table. -- 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-tp3162872p3165787.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
Yes. The rule is good for DRL. But I need to have it in decision table. -- 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-tp3162872p3166650.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
Should be doable just like the positive ones, just put 'not' in front of Object1 -W On 13 July 2011 18:44, Syargey syar...@tut.by wrote: Yes. The rule is good for DRL. But I need to have it in decision table. -- 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-tp3162872p3166650.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
If condition 1 column is left blank, this could be achieved. On Tue, Jul 12, 2011 at 11:56 AM, Syargey syar...@tut.by wrote: Hi all, I have been asked to add default rules to a decision table. We have a decision table with several conditions. Data from first two columns are passed to action with binded variables. The action collects data from all passed rules. - condition 1 | condition 2 | ... | action - AAA | AD| ... | X - BBB | AD| ... | X - BBB | AE| ... | X - BBB | CC| ... | X - CCC | AD| ... | X - DDD | AD| ... | X - BBB | AE| ... | X - ...| ...| ... | X - Recently business asked me if it is possible to have default rules (rows) in the table if there is not any rule passing condition 1. - DEFAULT | AD| ... | X - DEFAULT | AE| ... | X - Is it possible to have rules in decision table those can be fired only if a specific part of LHS never occurs in others rules? Thanks in advance, Syargey -- 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-tp3162872p3162872.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
It doesn't suit :( A blank column causes an action applies additionally. But I need it applies only if no other conditions from first column is true. -- 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-tp3162872p3163069.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
Is this XLS decision tables or in Guvnor? In Guvnor, if a condition uses either the == or != operator you can use the otherwise special value that achieves what you're looking for. It isn't possible with XLS at present, although there is a JIRA for the change. On 12 July 2011 17:47, Syargey syar...@tut.by wrote: It doesn't suit :( A blank column causes an action applies additionally. But I need it applies only if no other conditions from first column is true. -- 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-tp3162872p3163069.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] decision tables and default rules for case when part of LHS failes for other rules
It is in XLS decision table. -- 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-tp3162872p3163227.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users