Class WorkflowEngine

java.lang.Object
com.axelor.workflow.WorkflowEngine

public class WorkflowEngine extends Object
The way into the engine from application code: run a workflow from an action, a service or a REST call, on the caller's thread, and return what happened. run(java.lang.String, java.lang.String, java.lang.Long) forces the run; runIfMatched(java.lang.String, java.lang.String, java.lang.Long) requires the workflow's when. Both spend a once budget.
  • Constructor Details

    • WorkflowEngine

      public WorkflowEngine()
  • Method Details

    • run

      public WorkflowResult run(String name, String model, Long recordId)
      Run regardless of when and repeat; a once workflow still spends its budget.
    • runIfMatched

      public WorkflowResult runIfMatched(String name, String model, Long recordId)
      Run only if the workflow's when holds for the current record.