[rules-users] Setting value in LHS for access in RHS

Stephen Masters stephen.masters at me.com
Fri Nov 30 10:08:09 EST 2012


Apologies for the overly brief explanation ... am at a bank where only internet access is on my phone. Additional apologies if I suffer from auto-correct errors. :)

[condition][] validate "{exposureType:ENUM:exposure types}" = AccountExposure($exp : {exposure type});

[consequence][] Create limit check = insert(new LimitCheck($exp);

Now, dependent on what exposure type I select, I need to use a different value to perform conversions between amounts and percentages. So it would keep things clean if I could pass the property name selected in the LHS to the object inserted on the RHS.

I could do it by having different DSL phrases for consequences, but my audience is very non technical so I'm trying to keep the language as minimal as possible.

Hope that explains it!

Steve


Mauricio Salatino <salaboy at gmail.com> wrote:

>_______________________________________________
>rules-users mailing list
>rules-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121130/87199628/attachment.html 


More information about the rules-users mailing list