Mehak,

You can use rules to activate your ruleflow, where you can use the drools variable in the rule consequence. For example, this rule would activate a sample ruleflow automatically at the start of the session:

rule "Test" salience 10
 when
 then
   drools.getWorkingMemory().startProcess("com.sample.MyProcess");
end

Similar rules could be created to start ruleflows under different circumstances. Note that salience is used here to make sure that a ruleflow is activated before (or after) other rules.

Kris

----- Original Message ----- From: "Mehak" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, March 11, 2008 8:30 AM
Subject: Re: [rules-users] How do you use Ruleflows with StatelessSession's?



Hi
I am using StatelessSession code in Java file and my rules are in drl file.
Which drools variable are you talking about? How can I use it in java file
to set focus?

Mark Proctor wrote:


The drools variable is available and you can get the working memory from
that.
Do we have a similar method in stateless session as well?


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users



--
View this message in context: http://www.nabble.com/How-do-you-use-Ruleflows-with-StatelessSession%27s--tp12099312p15975663.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to