Class WorkflowScriptScope

java.lang.Object
com.axelor.workflow.expression.WorkflowScriptScope

public final class WorkflowScriptScope extends Object
The run-independent helper bindings shared by every workflow script. Node-specific bindings (self, vars, save(), event, old, parent) stay with their call sites in WorkflowRunContext. Helpers use bare, unlikely-to-collide names, since they shadow a model field of the same name.
  • Method Details

    • addHelpers

      public static void addHelpers(ScriptBindings bindings)
      Adds the helpers available to every workflow script:
      • log: log.debug/info/warn/error(...) to the workflow script logger.
      • _t: _t(key) translates; _t(key, a, b, ...) also formats with MessageFormat placeholders.