<!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>


Hi there,<br>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:<br><span class="ul-threaded" style="margin: 0.5em 0pt 0pt -20px;"><span class="text-cell"><br>if
<br>&nbsp; &nbsp; Agent() // there are plenty of these objects in my knowledge 
base...
<br>then
<br>&nbsp; &nbsp; system.out.println("found an agent, and the local variable is " +
 isManager);
<br><br>i get an error "isManager cannot be resolved"
<br><br>? 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!).<br><br>Thanks,<br>Paul.<br><br></span></span><br><hr id="stopSpelling">Date: Fri, 14 May 2010 12:18:22 -0700<br>From: <a href="/user/SendEmail.jtp?type=node&node=823092&i=0" target="_top" rel="nofollow">[hidden email]</a><br>To: <a href="/user/SendEmail.jtp?type=node&node=823092&i=1" target="_top" rel="nofollow">[hidden email]</a><br>Subject: Re: Access to variables form sub-flows<br><br>

Hi PVM,
<br><br>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".
<br><br>I hope it helps :)
<br>
<br><br>
<hr color="#cccccc" size="1">
<div style="color: rgb(102, 102, 102); font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
View message @ <a target="_top" rel="nofollow" link="external">http://drools-java-rules-engine.46999.n3.nabble.com/Access-to-variables-form-sub-flows-tp817279p818122.html</a>

<br>To unsubscribe from Access to variables form sub-flows, <a target="_top" rel="nofollow" link="external">click here</a>.
</div>
<br>                                               <br /><hr />Get a free e-mail account with Hotmail. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new' rel="nofollow" link="external">Sign-up now.</a>

<br><hr align="left" width="300">
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Access-to-variables-form-sub-flows-tp817279p823092.html">RE: Access to variables form sub-flows</a><br>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools - User mailing list archive</a> at Nabble.com.<br>