[rules-users] Assigning variables in decision tables

Hehl, Thomas Thomas.Hehl at acs-inc.com
Mon Sep 17 07:56:02 EDT 2007


Mark, You made a comment on my JIRA that I thought I'd post here for
discussion:

 

Mark Proctor commented on JBRULES-1155:

---------------------------------------

 

anAnwer is a method/function that returns a boolean? Must admit I don't
understand what you are trying to do there. Anyway if all you are trying to
do is assign the results of a function/method call then why not just use an
= assignment?

BooleanAnswer = anAnswer(anAnswer.setAnswer(true)); 

 

Any valid java can used.

 

What I'm really trying to do is simply return a boolean from a set of really
complicated rules in my decision table. I run through the rules and if it
passes, I return true.

 

The reason I didn't do what you suggested above is b/c there is no
documentation to suggest this is valid syntax and, after several postings to
this list, no one responded to my requests on how to do this assignment.

 

So, how do I do an assignment in a decision table to simply return a
boolean? Otherwise, can you explain the syntax you posted to me. This
doesn't look like any Java I've seen and I can't make heads or tails of how
it should work.

 

Thanks.

 

 

Thom Hehl
Sr. eJuror Architect

* Office (859) 277-8800 x 144

* Thomas.Hehl at acs-inc.com <mailto:Thomas.Hehl at acs-inc.com>  
ACS, Inc.

Government Solutions

1733 Harrodsburg Road
Lexington, KY 40504-3617

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message and notify
sender via e-mail at Thomas.Hehl at acs-inc.com
<mailto:Thomas.Hehl at acs-inc.com>  or by telephone at 859-277-8800 ext. 144.
Thank you.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070917/758e3736/attachment.html 


More information about the rules-users mailing list