[rules-users] Define global variables at the top of a rules file

Michael Anstis michael.anstis at gmail.com
Thu Oct 20 11:24:14 EDT 2011


Not as far as I know, but it has been asked before.

Interestingly, you can initialize the value of declared facts' fields... and
this doesn't appear a million miles away.

Scotty? Mark? JIRA?

2011/10/20 Martin A <wmlsub at gmail.com>

> Hello,
>
> I'd like to set global rules variables at the top of a rules file, like so:
>
> global int WELCOME_SCREEN = 1;
>
> so that I may easily refer to them from inside the rules, instead of
> hardcoding them somewhere in code. Is this possible?
>
> Best regards,
> Martin
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111020/6567cf36/attachment.html 


More information about the rules-users mailing list