I use Guvnor 5.4.0 with the following Assets:
Enum:
'Enums.Modules' : (new de.itm.util.DroolsEnumHelper()).loadModules()
DSL:
[when]Testmodule {module:ENUM:Enums.Modules} is just for testing={module} : Cylinder()
DroolsEnumHelper-Class:
public List<String> loadModules() {
List<String> values = new ArrayList<String>();
for (Module module : Module.values()) {
values.add(module.getModuleName() + "=" + module.getDisplayName());
}
return values;
}
When running the "Source->Validate" in the Enum-Editor, I see the method
getting called (being connected to the JBoss for Debugging). But if I use the DSL rule in
the guided editor, I can select the rule but the dropdown field stays grayed out. The
loadModules() method isn't even called, no getting stuck in my breakpoint!
Anyone an idea why and how this happens? Am I doing something totally wrong?
Thanks
Dominik
...........................................................................
mit freundlichen Grüßen / kind regards
Dominik Sandjaja
Fon: +49 (0) 203 60878 183
Mobil +49 (0) 162 2624490
Fax: +49 (0) 203 60878 22
e-mail: dominik.sandjaja(a)it-motive.de
it-motive AG
Zum Walkmüller 10-12
47269 Duisburg
info(a)it-motive.de
http://www.it-motive.de <
http://www.it-motive.de/>
..............................................................................
Vorsitzender des Aufsichtsrats: Dipl.-Ing. Klaus Straub
Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim Klose
HRB 9207, Amtsgericht Duisburg