<div>Hi,</div><div><br></div><div>just starting using drools and need to use templates but having error messages (described in comments in the code below). </div><div>I checked the meaning of the error messages but still can&#39;t figure it out.</div>
<div>I modified an simple rule according to the template section of the drools manual: btw I use the eclipse with the drools-core plugin.</div><div><br></div><div>Thanks for your help. Stefan</div><div><br></div>
<div><div>template header</div><div>symbol</div><div><br></div><div>package com.test.processor; # [ERR 102] Line 4:26 mismatched input &#39;;&#39; expecting &#39;identifier&#39; in template header</div><div>template &quot;test&quot;</div>
<div>rule &quot;A stand alone rule @{symbol}&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>dialect &quot;mvel&quot;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>when</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>eval(@{symbol} == &quot;AAA&quot;)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>System.out.println(&quot;this symbol is&quot; + @{symbol})<span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div>end</div><div>end template # Multiple markers at this line</div><div># - [ERR 103] Line 13:0 rule &#39;rule_key&#39; failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule</div><div># - [ERR 101] Line 13:4 no viable alternative at input &#39;template&#39; in rule end</div>
<div><br></div></div>