[rules-users] BRMS - how to use variables on Action part?

Felipe Piccolini felipe.piccolini at bluesoft.cl
Wed Oct 3 14:03:24 EDT 2007


Ok, so to fit on the "not ignored emails" from the list Mark posted,  
I changed the title. However I following in the list
anyways beacuse Im resending this email in less than 3 days.

Note: Im not desperate, nor this is for today. This just came out  
today yesterday and well... its important to me, but I
think I can get a work around for now.

So here is the real on-topic question.
-----------------
Anyone knows how to use variables (from fields) setted on LHS, to  
modify a field on the RHS using the GUI editor
from BRMS?

What I need is to write this rule on BRMS.

rule "Set approvedMount for a women"
	no-loop true
	when
		$p: Person($sex: sex == "F", $income: incomeMount)
	then
		$p.setApprovedMount($income * 1.2);
		update($p);
end

I know I can use formulas, but I only know how to set those on LHS, I  
dont know how to put a formula on RHS (setter of the field to modify).

Thanks.


Felipe Piccolini M.
felipe.piccolini at bluesoft.cl




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071003/107fa9d7/attachment.html 


More information about the rules-users mailing list