Cause
This error occurs if there is an attempt to use a JADE language feature that is not allowed in condition methods. Condition methods must have the following syntax.
condition-name(optional-parameters): Boolean condition; [constants constant-declarations] begin condition-instructions; end;
The condition-instructions can specify only the
In addition, a condition method cannot perform the following.
Call (non-condition) methods
Call condition methods on object references (except
Reference properties using a path (for example, myCompany.name)
Reference mapped properties
Reference system variables (apart from self)
Reference system properties (for example, the text property for the Customer class)
Call itself (directly or indirectly)
Reference an element in an array (for example, results[4] or equivalently results.
Reference an object in a dictionary using its key value (for example, customers["Jones"] or the equivalent customers.
This error can also occur for a method with the
Action
Change the condition method to conform to the above rules. If you do not intend the method to be a condition method, remove the