<br>&nbsp;&nbsp;&nbsp; Markus,<br><br>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/5/26 Markus Helbig &lt;<a href="mailto:info@markushelbig.de">info@markushelbig.de</a>&gt;:<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 &lt;<a href="mailto:christine@christine.nl">christine@christine.nl</a>&gt; wrote:<br>
&gt; On Mon, May 26, 2008 13:33, Markus Helbig wrote:<br>
&gt;<br>
&gt;&gt; currently i always get that $item1 couldn&#39;t not be matched.<br>
&gt;<br>
&gt; I see no &quot;item1&quot; in your DSL, is that correct?<br>
&gt;<br>
&gt; Christine<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; Hi together,<br>
&gt;&gt;<br>
&gt;&gt; i&#39;d like to do the following using a DSL<br>
&gt;&gt;<br>
&gt;&gt; in consequece part of a rule<br>
&gt;&gt;<br>
&gt;&gt; then<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;Create a new Item $item1<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;Set name of $item1 to &quot;New Value&quot;<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; DSL<br>
&gt;&gt;<br>
&gt;&gt; [consequence][]Create a new Item {item}={item}=new Object();<br>
&gt;&gt; [consequence][]Set name of {item} to {value}={item}.setValue({value});<br>
&gt;&gt;<br>
&gt;&gt; currently i always get that $item1 couldn&#39;t not be matched.<br>
&gt;&gt;<br>
&gt;&gt; Any suggestions?<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance, cheers<br>
&gt;&gt;<br>
&gt;&gt; Markus<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<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>