Hi all,

I generate this drl from using these lines of code.

String drl = compiler.compile(getSpreadsheetStream(), InputType.XLS);
builder.addPackageFromDrl(new StringReader(drl));
Package pkg = builder.getPackage();       
RuleBase ruleBase = RuleBaseFactory.newRuleBase();

when I try to execute ruleBase.addPackage(pkg); I get this error:
[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

What is my fault???

Thanks
Raffo


package com.RuleEngine.ControlloreNodo;
#generated from Decision Table
import com.RuleEngine.ControlloreNodo.OggettiControllo.Azione;
import com.RuleEngine.ControlloreNodo.OggettiStato.StatoNodo;
import java.util.*;
import java.lang.Integer;
global Azione azione;
global StatoNodo stato;
 function boolean variabiliInOR (String a,String ... args)
 {
  boolean risultato=false;
  int sev=Integer.parseInt(a);
  for(String indName : args)
  {
   if(sev==stato.getSeverityIndicatore(indName))
   {
    azione.setIndicatore(indName);
    risultato=true;
   }
  }
  return risultato;
 }
 function void setAzione(String a)
 {
  azione.setNomeAzione(a);
 }
#From row number: 13
rule "Controllo Stato_13"
    
    salience 9
    when
        variabiliInOR(2,Throughput ass INVITE Pisa,Throughput der INVITE Pisa,Throughput ass INVITE Cagliari,Throughput der INVITE Cagliari)
    then
        setAzione(taglio INVITE da lista di SD)
end

#From row number: 14
rule "Controllo Stato_14"
    
    salience 10
    when
        variabiliInOR(1,Throughput ass REGISTER Pisa,Throughput der REGISTER Pisa,Throughput ass REGISTER Cagliari,Throughput der REGISTER Cagliari)
    then
        setAzione(taglio REGISTER da lista di SD)
end

#From row number: 15
rule "Controllo Stato_15"
    
    salience 5
    when
        variabiliInOR(1,Throughput ass INVITE Pisa,Throughput der INVITE Pisa,Throughput ass INVITE Cagliari,Throughput der INVITE Cagliari)
        variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)
    then
        setAzione(taglio INVITE da lista di SD)
end

#From row number: 16
rule "Controllo Stato_16"
    
    salience 6
    when
        variabiliInOR(1,Throughput ass REGISTER Pisa,Throughput der REGISTER Pisa,Throughput ass REGISTER Cagliari,Throughput der REGISTER Cagliari)
        variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)
    then
        setAzione(taglio REGISTER da lista di SD)
end

#From row number: 17
rule "Controllo Stato_17"
    
    salience 7
    when
        variabiliInOR(1,Throughput ass INVITE Pisa,Throughput der INVITE Pisa,Throughput ass INVITE Cagliari,Throughput der INVITE Cagliari)
        variabiliInOR(1,Tempi Risp ass INVITE Pisa,Tempi Risp ass INVITE Cagliari)
        variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)
    then
        setAzione(taglio INVITE da lista di SD)
end

#From row number: 18
rule "Controllo Stato_18"
    
    salience 8
    when
        variabiliInOR(1,Throughput ass REGISTER Pisa,Throughput der REGISTER Pisa,Throughput ass REGISTER Cagliari,Throughput der REGISTER Cagliari)
        variabiliInOR(1,THRIn-THROut REGISTER   Pisa,THRIn-THROut REGISTER  Cagliari)
        variabiliInOR(1,CPU RS1,CPU RS2,CPU RS3,CPU RS4,CPU RS5,memoria RS1,memoria RS2,memoria RS3,memoria RS4,memoria RS5)
    then
        setAzione(taglio REGISTER da lista di SD)
end