[rules-users] Access to variables form sub-flows

pvm pvmellor at hotmail.com
Fri May 14 09:31:49 EDT 2010


hi,
i've create a working set of rules via the Eclipse IDE.
I've now factored my rule set into a sub flow that i want to call twice -
each time with differrent parameters.
i've created the sub-flow .rf file, and added a sub-flow call to it in my
main flow.
I've defined variables for the sub flow by clicking on the background and
using properties.

BUT...

I can't access the variable in the sub flow rule groups! e.g. i define
"isManager" as a variable, and then i write:

if
    Agent() // there are plenty of these objects in my knowledge base...
then
    system.out.println("found an agent, and the local variable is " +
isManager);

i get an error "isManager cannot be resolved"

? How am i supposed to access a variable in the sub flow?

thanks all...
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Access-to-variables-form-sub-flows-tp817279p817279.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list