[rules-users] Drools issue

djb dbrownell83 at hotmail.com
Thu Jul 8 05:48:03 EDT 2010


Hi,  you're allowed to call any java in the then clause.  The when clause,
however, is in a logic syntax.

Remember, you will have to import any classes that you use.

But usually you'll only want to access globals.  Otherwise you are modifying
or updating or inserting variables that you linked in the when section.

So, you probably want:
global com.my.Results results;

if you wanted to access your global results variable.  And of course, you'll
need to declare that global with setGlobal in the code.  There are examples
in the documentation.

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-issue-tp951185p951265.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list