[rules-users] Globals in ruleflow

Malenfant, Andre andre.malenfant at cgi.com
Wed Jun 10 11:06:37 EDT 2009


Thanks for trying this for me...

As it turns out, while I was creating a test sample for you I realized
that my ruleflow was not loading properly and I forgot to check for
errors on the builder. Now it works.

Still, the behavior is strange. If my rule doesn't load and even though
my DRL loaded, my globals were not available. Since the DRL declared the
same globals it should not have given me that error.

Thanks

-----Original Message-----
From: Kris Verlaenen [mailto:Kris.Verlaenen at cs.kuleuven.be] 
Sent: Tuesday, June 09, 2009 5:51 PM
To: Rules Users List; Malenfant, Andre
Cc: Rules Users List
Subject: Re: [rules-users] Globals in ruleflow

Andre,

There should be no problem in using the same global in both your rules
and processes.

I have tried a simple example as you described but have not been able to
reproduce the problem.  Could you send me a self-contained example that
shows the issue?

Kris

Quoting "Malenfant, Andre" <andre.malenfant at cgi.com>:

> I am experimenting with rule flows and I get the following error:
> 
> Unexpected global [myglobal]
> 
> When calling setGlobal on the session.
> 
> This code works without the workflow (globals declared in the drl)
> but
> fails when I include the rule flow. I declared the same globals in
> the
> rule flow in the header section.
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 




Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm




More information about the rules-users mailing list