Package com.axelor.workflow
Class WorkflowEngine
java.lang.Object
com.axelor.workflow.WorkflowEngine
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRun regardless ofwhenand repeat; a once workflow still spends its budget.runIfMatched(String name, String model, Long recordId) Run only if the workflow'swhenholds for the current record.
-
Constructor Details
-
WorkflowEngine
public WorkflowEngine()
-
-
Method Details
-
run
Run regardless ofwhenand repeat; a once workflow still spends its budget. -
runIfMatched
Run only if the workflow'swhenholds for the current record.
-