From: Alan K. <jyt...@xh...> - 2008-02-15 12:08:07
|
[Claude] > self.no-loop = TRUE > > Error: Syntax error can´t assign to operator. > > Looks like the Jython acts like a Python interpreter, rejecting the right > side of the assignment statement, thinking "self.no-loop" is an expression. > Indeed inside Java DRL, the "no-rule" is an attribute, like this <rule > name="rule1" salience="30" no-rule="true"> "no-rule" is not a valid python identifier; it contains the "-" operator, and so is interpreted as an expression, like so self.no - loop = TRUE Use "_" instead; you should have no problem with the following self.no_loop = TRUE HTH, Alan. |