<br> Markus,<br><br> It may be a problem with the $ symbol that has special meaning in regexps. Although, if that is the case, it is a bug in the DSL mapping engine.<br> Can you confirm that not using it resolves your problem? What shows up in the DRL viewer when you open a DSLR file using your grammar?<br>
<br> []s<br> Edson<br><br><div class="gmail_quote">2008/5/26 Markus Helbig <<a href="mailto:info@markushelbig.de">info@markushelbig.de</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, because $item1 should be a variable name, which should be bound<br>
to {item}, so it has to be possible to replace $item1 with $item2 or<br>
whatever so i can use the same consequence more than one time.<br>
<br>
The DSL Editor shows the correct things i want to have ... but<br>
compiling is not possible<br>
<br>
Cheers<br>
<font color="#888888"><br>
Markus<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Mon, May 26, 2008 at 2:07 PM, Christine <<a href="mailto:christine@christine.nl">christine@christine.nl</a>> wrote:<br>
> On Mon, May 26, 2008 13:33, Markus Helbig wrote:<br>
><br>
>> currently i always get that $item1 couldn't not be matched.<br>
><br>
> I see no "item1" in your DSL, is that correct?<br>
><br>
> Christine<br>
><br>
><br>
><br>
>> Hi together,<br>
>><br>
>> i'd like to do the following using a DSL<br>
>><br>
>> in consequece part of a rule<br>
>><br>
>> then<br>
>> Create a new Item $item1<br>
>> Set name of $item1 to "New Value"<br>
>> end<br>
>><br>
>> DSL<br>
>><br>
>> [consequence][]Create a new Item {item}={item}=new Object();<br>
>> [consequence][]Set name of {item} to {value}={item}.setValue({value});<br>
>><br>
>> currently i always get that $item1 couldn't not be matched.<br>
>><br>
>> Any suggestions?<br>
>><br>
>> Thanks in advance, cheers<br>
>><br>
>> Markus<br>
>> _______________________________________________<br>
>> rules-users mailing list<br>
>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>