[rules-dev] Enum in Drools 4.0.7 don't work for me

My tria enrico_zeranto at mytria.it
Fri Feb 26 04:30:01 EST 2010


Hi all,
I've a problem with the enumeration (combo-drop down box) in Drools 4.0.7
BRMS.
I've do this steps:
--> Create an enumeration type:

      'ChannelInputMessage.priority.hardcore' : ['Error=error',
'Warning=warning', 'Fatal=fatal']

--> Create the DSL and so invoce the enumeration:
     
     [condition][MailChannelConfiguration]Per ogni messaggio di errore con
canale
      mail=$mailChannelConfiguration:MailChannelConfiguration()
     [condition][ChannelInputMessage]avente: = ChannelInputMessage()
     [condition] - cliente {'customerValue'} = customer=="{'customerValue'}"
     [condition] - processo {'processValue'} = process=="{'processValue'}"
     [condition] - categoria {'categoryValue'} esempi business,it =
category=="{'categoryValue'}"
     [condition] - priorita {priorityValue:ENUM:Priority} =
priority.hardcode == "{priorityValue}"
     [consequence][MailChannelConfiguration]invia al destinatario:
{'recipient'} =  
     $mailChannelConfiguration.addRecipient("{'recipient'}");

--> The problem accours when I try to define the rule with the guided editor
--> editor
http://n3.nabble.com/file/n416930/screen-rule.png 
The editor appears without the Enumeration tab, but only write in the text
field the string "priorityValue:ENUM:Priority"

PLEASE HELP ME IT'S VERY IMPORTANT

THANKS IN ADVANCE 
-- 
View this message in context: http://n3.nabble.com/Enum-in-Drools-4-0-7-don-t-work-for-me-tp416930p416930.html
Sent from the Drools - Dev mailing list archive at Nabble.com.


More information about the rules-dev mailing list