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

2011-07-12 Thread Syargey
| ... | 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

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

2011-07-12 Thread Syargey
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-

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

2011-07-12 Thread Syargey
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. __

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

2011-07-13 Thread Syargey
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

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

2011-07-13 Thread Syargey
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 a

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

2011-07-13 Thread Syargey
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 archi

[rules-users] facts custom sort

2011-11-26 Thread Syargey
Hello all, I experienced a problem I can't solve. After rules firing I got a number of facts of certain type. I would like to get a collection of facts sorted by custom field with a query. Drools guide proposes to sort facts by a rule like: rule "Rule 03" when $number : Number( )

Re: [rules-users] facts custom sort

2011-11-28 Thread Syargey
I don't want to sort facts outside of drools rules. The sorting is part of business requirements. My opinion is that is not a good thing to keep parts of business logic in different places. I spent some time to figure out how it is possible to sort a collection of facts and here is my solution: --

[rules-users] Call query from other query

2011-11-28 Thread Syargey
I read in Drools guide, that queries can now call other queries. But the guide doesn't give much details, mostly paying attention to a rather specific case. I have two queries having common parts and try to figure out how to get rid of duplicate code. Here is the simplified form of queries I'd

Re: [rules-users] facts custom sort

2011-12-01 Thread Syargey
You are right. Your query is better -- View this message in context: http://drools.46999.n3.nabble.com/facts-custom-sort-tp3538410p3551056.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-user

Re: [rules-users] facts custom sort

2011-12-01 Thread Syargey
But I didn't check when I answered: [ERR 101] Line 34:31 no viable alternative at input ')' in query sortFactsQuery1 in pattern TreeMap I tried: query sortFactsQuery1 $tm: TreeMap() from accumulate( $f: Fact(), init( TreeMap map = new TreeMap(); ),

Re: [rules-users] facts custom sort

2011-12-01 Thread Syargey
Sorry, I didn't want to blame you. I have to agree. Your query works, I have just run it. But eclipse shows the error given above. Probably, I have some problems with environment. -- View this message in context: http://drools.46999.n3.nabble.com/facts-custom-sort-tp3538410p3552224.html Sent fr

Re: [rules-users] facts custom sort

2011-12-02 Thread Syargey
I updated Drools plug-in and currently the error is not shown. -- View this message in context: http://drools.46999.n3.nabble.com/facts-custom-sort-tp3538410p3554176.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-use

Re: [rules-users] facts custom sort

2011-12-02 Thread Syargey
I am still wondering why the following query doesn't work: query sortFactsQuery1 $tm: TreeMap() from accumulate( $f: Fact(), init( TreeMap map = new TreeMap(); ), action( map.put(factKey($f), $f); ), reverse( map.re

Re: [rules-users] facts custom sort

2011-12-02 Thread Syargey
Thank you! Quite clear -- View this message in context: http://drools.46999.n3.nabble.com/facts-custom-sort-tp3538410p3555087.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.

[rules-users] Bad Gateway at http://www.jboss.org/drools

2013-02-27 Thread Syargey
I can't access http://www.jboss.org/drools for two days :-( The error message is sjown: Bad Gateway We're experiencing a problem with one of the servers behind our gateway. Please try again in a while. -- View this message in context: http://drools.46999.

Re: [rules-users] Bad Gateway at http://www.jboss.org/drools

2013-03-01 Thread Syargey
Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Bad-Gateway-at-http-www-jboss-org-drools-tp4022614p4022650.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@li