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

Thanks

Kent Symanzik



Jaroslaw Kijanowski <kijanowski@gmail.com>
Sent by: rules-users-bounces@lists.jboss.org

07/14/2009 01:34 PM
Please respond to
Rules Users List <rules-users@lists.jboss.org>

To
Rules Users List <rules-users@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@lists.jboss.org
> [mailto:rules-users-bounces@lists.jboss.org] *On Behalf Of
> *kfs2@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@lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users