<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Have you thought of inserting your data, rather than setting it as a
global? It looks like statoNodo should be inserted and not a global.<br>
<br>
Also each rule will still use the same instance, if you need another
instance why not clone the object in the first line of the consequence?<br>
<br>
Mark<br>
Raffaele Viola wrote:
<blockquote
 cite="mid:f16aa4040709211234o131a4b60r34b246001331e1d3@mail.gmail.com"
 type="cite">when a condition match call statoNodo.variabiliInOR(....)
that add in to the list the first arg<br>
  <br>
the action function add the list in the azioe with the method
azione.setAzione("pio",lista);<br>
  <br>
My list result is :
  <br>
  <span style="color: rgb(255, 0, 0);">Pisa</span><br
 style="color: rgb(255, 0, 0);">
  <span style="color: rgb(255, 0, 0);">Cagliari</span><br
 style="color: rgb(255, 0, 0);">
  <span style="color: rgb(255, 0, 0);">Pisa</span>
  <br style="color: rgb(255, 0, 0);">
  <span style="color: rgb(255, 0, 0);">Cagliari</span><br>
  <br>
p<span style="color: rgb(0, 0, 102);">ackage
org.drools.examples.decisiontable;</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">#generated from Decision Table</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">import
com.RuleEngine.ControlloreNodo.*;</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">import
com.RuleEngine.ControlloreNodo.OggettiControllo.Azione;</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">import
com.RuleEngine.ControlloreNodo.OggettiStato.StatoNodo;</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">import java.util.ArrayList;</span><br
 style="color: rgb(0, 0, 102);">
  <br style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">global StatoNodo statoNodo;</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">global Azione azione;</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">global ArrayList lista;</span><br
 style="color: rgb(0, 0, 102);">
  <br style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">#From row number: 13</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">rule "Pricing bracket_13"</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; </span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; salience 1</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; when</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
eval(statoNodo.variabiliInOR("Pisa",lista,1))</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; then</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
azione.setAzione("ciao",lista);</span><br style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">end</span><br
 style="color: rgb(0, 0, 102);">
  <br style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">#From row number: 14</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">rule "Pricing bracket_14"</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; </span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; salience 3</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; when</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
eval(statoNodo.variabiliInOR("Cagliari,Pisa",lista,1))</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; then</span><br
 style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
azione.setAzione("pio",lista);</span><br style="color: rgb(0, 0, 102);">
  <span style="color: rgb(0, 0, 102);">end</span><br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>