You can do this by setting the global from a high salience rule from within
your DRL. Leave the conition empty - such a rule only fires once.
-W

2011/10/20 Martin A <[email protected]>

> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to