[rules-users] Use of a static variable on rules
Francisco Brum
francisco.brum at link.pt
Fri Feb 16 09:51:32 EST 2007
Hello everybody!
I'm using a global class in my rules, and tried to compare a fact field with a static variable.
This is the rule
Rule "A"
When
Service(state == ((plannerAux).SCHEDULE))
Then
Dosomething()
End
This is the declaration of the static variable from plannerAux.
public static String SCHEDULE = "SCHEDULE";
But I'm having this error:
Rule Compilation error Expression "(plannerAux)" is not a type Exception:1 errors while compiling unit Rule_A.java"
M'I doing something wrong or this is not possible to do?
__________________________________
Francisco Brum - francisco.brum at link.pt
Link Consulting - http://www.link.pt/
Tel.: 213 100 031
Av. Duque D'Ávila, 23 4º Esq.
1000-138 Lisboa
More information about the rules-users
mailing list