<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'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 ';' expecting 'identifier' in template header</div><div>template "test"</div>
<div>rule "A stand alone rule @{symbol}"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>dialect "mvel"</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} == "AAA")</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("this symbol is" + @{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 'rule_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule</div><div># - [ERR 101] Line 13:4 no viable alternative at input 'template' in rule end</div>
<div><br></div></div>