[rules-users] globals in rule flow's Split

Manukyan, Sergey SManukyan at lear.com
Wed Sep 19 09:00:33 EDT 2007


Folks,

 

When using globals in rule flow's Split I ran into problem that changes
to the global cannot be recognized by the split and it continues to
route the same destination.

 

F.e. I have a Split with constrains. And a global TestValid object that
has one boolean attribute - hasErrors

 

global testValid

 

Split : 

-          eval(!testValid.isHasErrors())      // to No Errors action

-          eval(testValid.isHasErrors())       // to END

 

 

 

So it ends up with always looping to the No Errors Action, even though
Make Errors sets global :  testValid.setHasErrors(true)

 

In my previous example the problem was that I was not using Shadow
Proxy. But now I am and would like to use global in the split condition,

 

Please advice if it is an expected behavior and I shouldn't be using
global in split conditions...

 

Thanks,

 

-Sergey



**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070919/18a4ab3f/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 13945 bytes
Desc: image001.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20070919/18a4ab3f/attachment.jpe 


More information about the rules-users mailing list