[rules-users] variable binding without condition in Decision table

kfs2 at chryslerfinancial.com kfs2 at chryslerfinancial.com
Thu Jul 30 14:18:05 EDT 2009


I tried that but it doesn't work.  Just results in an empty when 
condition.

Thanks

Kent Symanzik




Jaroslaw Kijanowski <kijanowski at gmail.com> 
Sent by: rules-users-bounces at lists.jboss.org
07/14/2009 01:34 PM
Please respond to
Rules Users List <rules-users at lists.jboss.org>


To
Rules Users List <rules-users at lists.jboss.org>
cc

Subject
Re: [rules-users] variable binding without condition in Decision table






It should work without creating a dummy constraint, try this:

CONDITION
<leave this row blank>
$serviceContract:CreditServiceContract()

Cheers,
  Jarek

Hehl, Thomas wrote:
> Nope, that?s how it works. I wrote it up as a defect and it got closed 
> because no one seemed to think it was an issue. So, since I don?t have 
> the time available to be a contributor, I decided not to complain.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> *From:* rules-users-bounces at lists.jboss.org 
> [mailto:rules-users-bounces at lists.jboss.org] *On Behalf Of 
> *kfs2 at chryslerfinancial.com
> *Sent:* Thursday, May 21, 2009 9:05 AM
> *To:* Rules Users List
> *Subject:* [rules-users] variable binding without condition in Decision 
> table
> 
> 
> 
> 
> I have a decision table where I need to bind a variable to use in the 
> action.  The problem is that the binding does not happen unless I apply 
> a condition.  What I want in the resulting rule is this:
> 
> $serviceContract: CreditServiceContract ( )
> 
> This is what I want but does not work.  The binding does not happen so 
> the rule does not compile.
> 
> This works but I hate to add an arbitrary condition just to accomplish a 

> binding.
> 
> 
> 
> I'm sure I am just missing something.  Can someone point that out?
> 
> Thanks
> 
> 
> 
> Kent Symanzik
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
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/20090730/5a33d9c4/attachment.html 


More information about the rules-users mailing list