I did this, some time ago to access a variable from a split node constraint (not sure if it still works):<br><br>$processInstance : ProcessInstanceImpl( )<br>VariableScopeInstance(variables[&quot;customerLoanRating&quot;] &gt;= 1000) from $processInstance.getContextInstance(VariableScope.VARIABLE_SCOPE)<br>
<br>You need to insert the process instance into the session.<br><br>You may want to look at various examples in examples.zip downloadable from <a href="http://www.jboss.org/drools/downloads.html">http://www.jboss.org/drools/downloads.html</a><br>
<br><div class="gmail_quote">On Sat, Mar 7, 2009 at 12:23 PM, Ricardo Gil Alcaņiz <span dir="ltr">&lt;<a href="mailto:rgil@okode.com">rgil@okode.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I&#39;m not a new drools user but I started to test rule flows (5.0M5) recently and I&#39;m stucked, so any clue will be welcomed :). I&#39;m testing how to share a StatefulKnowledgeSession between N rule flow instances. I&#39;m trying to parametrize each instance with process variables at start time but I don&#39;t know how to use them from rule constraints (in event waits, splits, etc.). I&#39;ve read the documentation and I&#39;ve found this text related to constraints &quot;<a>Both rule and code constraints have access to globals that are defined for
    the process and can reuse imports at the process level.&quot; I tried it assigning </a><a>(from an action)</a><a> a variable value to a global variable but it&#39;s not working for me. ŋI&#39;m missing something?<br>

<br>Thanks in advance!<br><br>Ricardo.<br></a>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>