BOM elements available in Visual Studio/Rule Studio cannot be used in Rule Team Server (RTS).
- Some rules are in error in RTS while the same compile fine in Visual Studio:
The word '...' is expected in place of '...'.
Variable '...' is not declared
The word '...' is not required.
RTS has no access to the XOM (eXecution Object Model) and can only rely on the BOM (Business Object Model), so types not defined in the BOM cannot be used in rules.
Resolving the problem
Import in the BOM all types used in the BOM as return value and parameter, and republish the project to RTS.
For example, when verbalizing a BOM element such as:
public returnType ClassName.methodName( paramType param);