From: <cl...@br...> - 2008-02-15 11:08:29
|
Dear colleagues, porting a Drools semantic (rules definition language) into a Jython code. The code throws a syntax error at the following line: TRUE = 1 FALSE = 0 .. self.salience = 30 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"> Any idea how to fix the syntax error? Regards, Claude Claude Falbriard Developer AMS Hortolândia / SP - Brazil phone: +55 13 8126 7787 cell: +55 13 8117 3316 e-mail: cl...@br... |