[rules-users] Unable to build expression for 'consequence'

Mark Proctor mproctor at codehaus.org
Sun Sep 23 18:56:14 EDT 2007


yes sorry MVEL did not have the macro processor setup for insertLogical, 
I have since done this in trunk.

But you can get around this just doing drools.insertLogical.

Mark
kissro at lidp.com wrote:
> Using the BRMS Business Rule Asset screen, I've created a new rule:
>
> rule "Premium Rule"
>     dialect "mvel"
>     when
>         Policy( premium > "50.00"  && <= "500.00" )
>     then
>         Policy fact0 = new Policy();
>         fact0.setStatus( 13 );
>         insertLogical( fact0 );
> end
>
> When I try to validate or build a package for deployment, I get:
>
> Unable to build expression for 'consequence'
> Policy fact0 = new Policy(); fact0.setStatus( 13 ); insertLogical( fact0 )
>
> Does anyone know what's wrong with my rule or why I getting the error?
>
> Thanks,
> Rod
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>   




More information about the rules-users mailing list