<font size="1"><font size="2">Hi all,<br><br>I generate this drl from using these lines of code.<br><br></font></font><div style="margin-left: 160px;"><font style="color: rgb(255, 0, 0);" size="1"><font size="2">String drl =
compiler.compile(getSpreadsheetStream(), InputType.XLS);</font></font><br style="color: rgb(255, 0, 0);"><font style="color: rgb(255, 0, 0);" size="1"><font size="2">builder.addPackageFromDrl(new StringReader(drl));</font>
</font><br style="color: rgb(255, 0, 0);"><font style="color: rgb(255, 0, 0);" size="1"><font size="2">Package pkg = builder.getPackage(); </font></font><br style="color: rgb(255, 0, 0);"><font style="color: rgb(255, 0, 0);" size="1">
<font size="2">RuleBase ruleBase = RuleBaseFactory.newRuleBase();</font></font><br></div><font size="1"><font size="2"><br></font></font><font size="1"><font size="2"> when I try to execute </font></font><font style="color: rgb(255, 0, 0);" size="1">
<font size="2">ruleBase.addPackage(pkg);</font></font><span style="color: rgb(255, 0, 0);"> <span style="color: rgb(0, 0, 0);">I get this error:<br></span></span><font size="1"><span style="color: rgb(0, 0, 153);">[9,50]: unknown:9:50 mismatched token
'[@93,392:392='.',<8>,9:50]' expecting set null[9,51]:
unknown:9:51 mismatched token '[@94,393:393='.',<8>,9:51]'
expecting set null[9,57]: unknown:9:57 mismatched token
'[@97,399:399=')',<12>,9:57]' expecting set null[32,16]:
unknown:32:16 mismatched token: [@207,787:787='2',<25>,32:16];
expecting type RIGHT_PAREN[42,16]: unknown:42:16 mismatched token:
[@274,1043:1043='1',<25>,42:16]; expecting type
RIGHT_PAREN[52,16]: unknown:52:16 mismatched token:
[@341,1308:1308='1',<25>,52:16]; expecting type
RIGHT_PAREN[53,16]: unknown:53:16 mismatched token:
[@378,1443:1443='1',<25>,53:16]; expecting type
RIGHT_PAREN[63,16]: unknown:63:16 mismatched token:
[@453,1682:1682='1',<25>,63:16]; expecting type
RIGHT_PAREN[64,16]: unknown:64:16 mismatched token:
[@490,1825:1825='1',<25>,64:16]; expecting type
RIGHT_PAREN[74,16]: unknown:74:16 mismatched token:
[@565,2066:2066='1',<25>,74:16]; expecting type
RIGHT_PAREN[75,16]: unknown:75:16 mismatched token:
[@602,2201:2201='1',<25>,75:16]; expecting type
RIGHT_PAREN[76,16]: unknown:76:16 mismatched token:
[@627,2278:2278='1',<25>,76:16]; expecting type
RIGHT_PAREN[86,16]: unknown:86:16 mismatched token:
[@702,2517:2517='1',<25>,86:16]; expecting type
RIGHT_PAREN[87,16]: unknown:87:16 mismatched token:
[@739,2660:2660='1',<25>,87:16]; expecting type
RIGHT_PAREN[88,16]: unknown:88:16 mismatched token:
[@760,2740:2740='1',<25>,88:16]; expecting type RIGHT_PAREN</span><br><br><font size="2">What is my fault???<br><br>Thanks<br>Raffo</font></font><br><font size="1"><br><span style="color: rgb(0, 0, 153);">package
com.RuleEngine.ControlloreNodo;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">#generated from Decision Table</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">import
com.RuleEngine.ControlloreNodo.OggettiControllo.Azione;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">import com.RuleEngine.ControlloreNodo.OggettiStato.StatoNodo;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">import java.util.*;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">import java.lang.Integer;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
global Azione azione;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">global StatoNodo stato;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> function boolean variabiliInOR (String a,String ... args)
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> {</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> boolean risultato=false;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> int sev=Integer.parseInt(a);</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> for(String indName : args)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
{</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> if(sev==stato.getSeverityIndicatore(indName))</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> {</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> azione.setIndicatore(indName);</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> risultato=true;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
}</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> }</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> return risultato;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> }</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> function void setAzione(String a)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
{</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> azione.setNomeAzione(a);</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> }</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">#From row number: 13</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule "Controllo Stato_13"</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> salience 9</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> when</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> variabiliInOR(2,Throughput ass INVITE Pisa,Throughput der INVITE Pisa,Throughput ass INVITE Cagliari,Throughput der INVITE Cagliari)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> setAzione(taglio INVITE da lista di SD)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">end</span>
<br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">#From row number: 14</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule "Controllo Stato_14"
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> salience 10</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
when</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,Throughput ass REGISTER Pisa,Throughput der REGISTER Pisa,Throughput ass REGISTER Cagliari,Throughput der REGISTER Cagliari)
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> setAzione(taglio REGISTER da lista di SD)</span>
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">end</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">#From row number: 15</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">rule "Controllo Stato_15"</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
salience 5</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> when</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,Throughput ass INVITE Pisa,Throughput der INVITE Pisa,Throughput ass INVITE Cagliari,Throughput der INVITE Cagliari)
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> setAzione(taglio INVITE da lista di SD)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
end</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">#From row number: 16</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule "Controllo Stato_16"
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> salience 6</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
when</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,Throughput ass REGISTER Pisa,Throughput der REGISTER Pisa,Throughput ass REGISTER Cagliari,Throughput der REGISTER Cagliari)
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> setAzione(taglio REGISTER da lista di SD)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
end</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">#From row number: 17</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule "Controllo Stato_17"
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> salience 7</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
when</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,Throughput ass INVITE Pisa,Throughput der INVITE Pisa,Throughput ass INVITE Cagliari,Throughput der INVITE Cagliari)
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,Tempi Risp ass INVITE Pisa,Tempi Risp ass INVITE Cagliari)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> then</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> setAzione(taglio INVITE da lista di SD)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">end</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">#From row number: 18</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">rule "Controllo Stato_18"</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> salience 8</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> when</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> variabiliInOR(1,Throughput ass REGISTER Pisa,Throughput der REGISTER Pisa,Throughput ass REGISTER Cagliari,Throughput der REGISTER Cagliari)</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"> variabiliInOR(1,THRIn-THROut REGISTER Pisa,THRIn-THROut REGISTER Cagliari)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)
</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> then</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"> setAzione(taglio REGISTER da lista di SD)</span>
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">end</span><br></font>