Re: [rules-users] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-25 Thread Saurabh Pandey
@Nguy I tried salience but it just orders the execution of "when" part, but
still all when execute before the "then" parts

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-all-lhs-execute-before-all-the-rhs-i-want-to-run-sequentially-tp3368215p3368415.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] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-25 Thread Saurabh Pandey
Thanks for ur suggestion! I just wanted to keep the business logic in
separate drools layer.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-all-lhs-execute-before-all-the-rhs-i-want-to-run-sequentially-tp3368215p3368412.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] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-25 Thread Wolfgang Laun
It seems to me that you should write this as a plain old if/then/else/if...
in Java (or any other language). Or is there something else in the way
Drools evaluates rules over facts in working memory that makes it highly
desirable to use rules?

This has been asked before, and more often than not there was a way to avoid
a way of establishing the sequence of RHS execution by salience or whatever.


So, if you do need rules, you can assign decreasing salience values to all
your rules. To terminate, either call the engine's halt() method, or retract
the fact(s) triggering the rules. But note that all conditions will be
evaluated before the first RHS is executed. To aoid this: see the 1st
sentence.

-W


On 26 September 2011 06:54, Saurabh Pandey wrote:

> In drools rules, all the LHS ie when conditions are executed at the start,
> then all there subsequent rhs ie then part executes, In my project i want
> to
> run it as a  simple if-else i.e
> When ... Then do.
> When ... Then do..
> if this "when" is false then only go to the next when, and if its true then
> execute its "then" and then move ahead to the other "when".
> i tried agenda-group, activation-group but these are not working for me.
> Can some one plz help me!
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-all-lhs-execute-before-all-the-rhs-i-want-to-run-sequentially-tp3368215p3368215.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] Drools all lhs execute before all the rhs, i want to run sequentially

2011-09-25 Thread Saurabh Pandey
In drools rules, all the LHS ie when conditions are executed at the start,
then all there subsequent rhs ie then part executes, In my project i want to
run it as a  simple if-else i.e
When ... Then do.
When ... Then do..
if this "when" is false then only go to the next when, and if its true then
execute its "then" and then move ahead to the other "when".
i tried agenda-group, activation-group but these are not working for me.
Can some one plz help me!

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-all-lhs-execute-before-all-the-rhs-i-want-to-run-sequentially-tp3368215p3368215.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] drools-server empty response body

2011-09-25 Thread lhorton
In my test, I posted the set-global command along with the rule execution
commands, like this (snippet):

List commands = new ArrayList();
commands.add(CommandFactory.newSetGlobal("logger", logger));
commands.add(CommandFactory.newInsert(fact, "outId"));  
commands.add(CommandFactory.newFireAllRules());
BatchExecutionCommand batchCommand =
CommandFactory.newBatchExecution(commands, "ksession"); 
.etc.

(I had configured the ksession as stateless)

--
View this message in context: 
http://drools.46999.n3.nabble.com/drools-server-empty-response-body-tp3192475p3367046.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] Drools 5.3.0.CR1 released

2011-09-25 Thread Geoffrey De Smet

Drools 5.3.0.CR1 released (Expert, Fusion, Planner, Guvnor)
New and Noteworthy: 
http://docs.jboss.org/drools/release/5.3.0.CR1/droolsjbpm-introduction-docs/html_single/index.html#d0e47 

Download and info: 
http://blog.athico.com/2011/09/drools-530cr1-released-including-expert.html 
 



--
With kind regards,
Geoffrey De Smet

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users