[rules-users] Problem with BRMS (null and modify with variable)

Felipe Piccolini felipe.piccolini at bluesoft.cl
Thu Aug 23 14:43:51 EDT 2007


Hi,

    When I try to compare an attribute against a null I got a "null"  
instead... the field is an Object. (Date).

   When I try to modify an attribute using the last value captured on  
LHS, I cant use the variable name in the textfield.
   The field type is numeric, but I need to use a formula ($var + 1)  
to modify the value in the BRMS.

rule "Age uninformed"
	no-loop true
	ruleflow-group "age"
	when
		$p: Person(birthDate == null, $score: score)
	then
		$p.setScore($score + 5);
		update($p);
end

Do I have to open a Jira for this?

Also: I didnt see a Jira, but Is it possible in the business rules  
editor to add new multiple comparators in new lines???

Like this:

$p: Person(codProfession == 103 ||
					== 201 ||
					== 203 ||
					== 204 ||
					== 211 ||
					== 218 ||
					== 220 ||
					== 403 )

Because actually this is aranged in the right side making it dificult  
to manage when you have several comparatos...


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/20070823/b1ad80cc/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: application/applefile
Size: 73 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20070823/b1ad80cc/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 10567 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20070823/b1ad80cc/attachment.png 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070823/b1ad80cc/attachment-0001.html 


More information about the rules-users mailing list