[rules-users] Explicit cast in the conditions part of a JBoss rule.
Edson Tirelli
tirelli at post.com
Tue Jan 23 13:22:44 EST 2007
Oana,
Can you show an example of what you want to do?
It is not possible to explicit make casts in the conditions (unless
it is inside of a predicate, for example, that is a java code block),
but a rule will match any level of the class hirarchy.
For instance, if you hava a parent class A and a subclass B, you
instantiate and assert objects of B. Your B objects will match both
rules requiring A and rules requiring B, as B is instanceof A too. No
casts needed for this use case.
[]s
Edson
nicolae oana wrote:
> Hi all,
>
> I want to rectify my question: it is possible to do an explicit cast
> on java beans in the conditions part of a JBoss rule?
>
> Oana
>
> ------------------------------------------------------------------------
> TV dinner still cooling?
> Check out "Tonight's Picks"
> <http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/> on Yahoo! TV.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>rules-users mailing list
>rules-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @ www.jboss.com
More information about the rules-users
mailing list