<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>How? When I try something like this:</div><div><br></div><div>rule "AttributeChange EAttribute id"</div><div>&nbsp; &nbsp; when</div><div>&nbsp; &nbsp; &nbsp; &nbsp; diff: IDiff( operationType == OperationType.ADD, differenceType == DiffType.ATTRIBUTE, parameter=="id", !oldValue.equals(newValue) )</div><div>end</div><div><br></div><div>I get the following error:</div><div><br></div><div>Error: [12,0]: [ERR 102] Line 12:0 mismatched input 'end' in rule "AttributeChange EAttribute id"</div><div>Error: [0,0]: Parser returned a null Package</div><div><br></div><div><br></div><div>Also I get an error when I try to use something like this:</div><div><br></div><div>rule "AttributeChange EAttribute id"</div><div>&nbsp; &nbsp; when</div><div>&nbsp; &nbsp; &nbsp; &nbsp; diff: IDiff( operationType == OperationType.ADD, differenceType == DiffType.ATTRIBUTE, parameter=="id", !oldValue.equals(newValue) )</div><div>&nbsp; &nbsp; then</div><div>end</div><div><br></div><div><br></div><div>Error: Rule Compilation error : [Rule name='ReferenceChange EClass add Attribute/Reference']</div><div><br></div><div><br></div><div>Can you give me an example?</div><div><div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(255, 31, 23); "><br></div><div><div><div>On May 21, 2013, at 7:07 PM, Wolfgang Laun wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 21/05/2013, Aleksandar Toshovski &lt;<a href="mailto:balex4o@gmail.com">balex4o@gmail.com</a>&gt; wrote:<br><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have many rules, which have exactly the same "then" block. Is it possible<br></blockquote><blockquote type="cite">to leave the then cause empty?<br></blockquote><br>Yes.<br>-W<br><br><blockquote type="cite">I only need to know is if a rule was<br></blockquote><blockquote type="cite">activated or not and for this reason I'm using<br></blockquote><blockquote type="cite">WorkingMemoryConsoleLogger.activationCreated().<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best Regards,<br></blockquote><blockquote type="cite">Aleksandar Toshovski<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div></blockquote></div><br></div></div></div></div></body></html>