[rules-users] How do I access objects in a top level or condition?
Mauricio Salatino
salaboy at gmail.com
Wed May 28 10:45:19 EDT 2014
Hi, you can't because you don't know which is true.
You can create two rules one for each condition
and then you can access by binding the Conditaional Element to a variable:
Like for example:
when
$c: Customer( age == 50 )
then
$c.setAge( "40" );
On Wed, May 28, 2014 at 3:39 PM, Chidambaran Subramanian
<chiddu at gmail.com>wrote:
> rule "Test"
> dialect "mvel"
> when
> ( Customer( age == 50 ) or Deal( amount == 30 ) )
> then
> Customer.setAge( "40" );
> update( Customer );
> Customer.setPlace( "Test" );
> update( Customer );
> end
>
>
>
> Appreciate any help in this regard.
>
> Regards
> Chiddu
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
- MyJourney @ http://salaboy.com <http://salaboy.wordpress.com>
- Co-Founder @ http://www.jugargentina.org
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140528/3df7953a/attachment.html
More information about the rules-users
mailing list