[rules-users] Declaring Variables in Condition

Christine christine at christine.nl
Mon May 26 08:07:30 EDT 2008


On Mon, May 26, 2008 13:33, Markus Helbig wrote:

> currently i always get that $item1 couldn't not be matched.

I see no "item1" in your DSL, is that correct?

Christine



> Hi together,
>
> i'd like to do the following using a DSL
>
> in consequece part of a rule
>
> then
>      Create a new Item $item1
>      Set name of $item1 to "New Value"
> end
>
> DSL
>
> [consequence][]Create a new Item {item}={item}=new Object();
> [consequence][]Set name of {item} to {value}={item}.setValue({value});
>
> currently i always get that $item1 couldn't not be matched.
>
> Any suggestions?
>
> Thanks in advance, cheers
>
> Markus
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>





More information about the rules-users mailing list