Hi there,
Many thanks for your reply. i've done as you suggest, but the problem i have is
perhaps a simpler one... i don't know how to access the variable in the rules in my
sub-flow. My variable is called "isManager" and i can now pass it in ok, but not
use it. E.g. if i write a rule as follows:
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? (this is probably a dumb
quesitons, but i just cant find out how to do it!).
Thanks,
Paul.
Date: Fri, 14 May 2010 12:18:22 -0700
From: ml-node+818122-550015209-265178(a)n3.nabble.com
To: pvmellor(a)hotmail.com
Subject: Re: Access to variables form sub-flows
Hi PVM,
You have to declare the variable in both flows, the parent flow as well as the sub flow.
Then you also have to map it to the sub flow node. To do that, in the parent flow click
the sub flow node and in the properties map the variable in "Parameter In
Mapping".
I hope it helps :)
View message @
http://drools-java-rules-engine.46999.n3.nabble.com/Access-to-variables-f...
To unsubscribe from Access to variables form sub-flows, click here.
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Access-to-variables-f...
Sent from the Drools - User mailing list archive at
Nabble.com.