[rules-users] RE: Is the future avail in 4.0

Sikkandar Nawabjan Sikkandar.Nawabjan at ustri.com
Sat Oct 6 00:33:53 EDT 2007


Hi,
I have couple of questions
 
1) I want to validate a Object and based upon certain condition set the flag and that flag available in my working memory context so that all the rules will execute based on the value of this flag. Is there any way to set the Global variable in working memory environment and use it in predicate logic.
I beleive passing Global variable using setGLobal() is possible but we can't use it in predicate logic.
 
2) my second quetion is i have 2 classes say
 
Public class B extends Class A{
 
private boolean  flag;
 
 
}
 
 
am validating my rule using of type B.
 But i want to assert object of class A. in normal java we do downcasting  B b = (B)obj;
if i don't do that will downcast will happen at the working memory side automatically??????????
 
 
Basha
 
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4447 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20071006/5e8889b9/attachment.bin 


More information about the rules-users mailing list