Common Dependency errors and possible solutions
From Business Process Management, BPM and Workflow Automation Wiki | BizAgi BPMS
<keywords content="keywords"> rules errors, error, syntax error </keywords>
Common dependency errors and proposed solutions
Common errors in Rules
Syntax error found in BIZRULE with id 'X', Error Message: XPath expression syntax error on line 'Y', expected.
Cause: The XPath expression contains a syntax error that prevents it from being analyzed.
Solution:
- Check the syntax of the specified expression and make the necessary corrections so that it is free from errors.
Attribute not recognized in business rule with id X in the expression 'Y'. The 'Y' attribute does not belong to the 'Z' entity or does not exist.
Cause: An attribute within the XPath expression could not be recognized in the data model, that is, an equivalent attribute or relationship could not be found in the respective entity.
Solution:
- Check that an attribute or relationship with the same name exists in the respective entity. If the attribute or relationship does not exist then specify a valid name or otherwise create the attribute or relationship requested.
- Check that the context entity of the business rule agrees with the beginning of the expression. If not, change the context entity or write a valid expression for the specified context.
The 'X' expression could not be determined because the business rule with id 'Y' does not contain a context entity 'Z'.
'Cause: The XPath expression could not be determined because the specified rule does not have an associated context entity.
Solution:
- Associate a context entity to the rule to agree with the defined XPath expression.
''''The Business Rule with id 10024 does not contain a context entity. This is required for the use of the methods of the 'Me.Context' class.
Cause: The XPath expression cannot be determined because the methods of the Me.Context class require a context entity.
Solution:
- Associate a context entity to the rule to agree with the XPath expression defined in the method used in the Me.Context class.
Business Rule Id: W. The 'X' entity used in 'CMailer.sendEmail(...)' is not the context entity for the message with the id: Y(Z).
Cause: The XPath expression used in the CMailer.sendEmail method cannot be determined because the context entity of the message does not coincide with the context used in the method.
Solution:
- Write an expression whose context is valid for the message in such a way that the message shares the same context entity.
- Change the context entity of the message so that it agrees with the context of the expression used in the CMailer.sendEmail method.
The 'X' expression cannot be determined in the context of the entity with id 'Y' or the context of the application with id 'Z'.
Cause: The specified XPath expression cannot be recognized using the context of the rule specified in the data model or from a scope attribute of the process.
Solution:
- Check for the existence of a scope attribute in a process of the application that uses the rule. If the attribute exists, check that it is being used effectively by a process of the application.
- Evaluate the validity of the expression in the data model in accordance with the context to establish if an attribute or relationship exists for the defined entity.
Invalid use of the rule in the Business Rule with id 'X', the syntax for the rule of 'Y' library is invalid, the expected syntax is 'Z'.
Cause: The rule is invoking a library rule for which the syntax of its parameters has changed.
Solution:
- Check the parameters sent in the library rule so that they coincide with the number of parameters defined for the rule.
<comments />