context
A special variable, context, is always available in any MQL expression.
It is an instance of the com.sodius.mdw.core.eval.EvaluationContext interface.
It provides services that helps to build model transformators/generators.
This context variable is specially useful
if you intend to write Java code that interfaces with MDWorkbench.
It enables to call text templates and rules from Java code.
// Evaluates a text template
context.generate("com.mycompany.example.GenerateJava", [arg1, arg2])
// Cancels the evaluation process
context.cancelEvaluation()
// Logs a warnings
context.logger.warning("A warning");
// Creates an empty UML 2.1 model
context.createModel("uml21")