Package com.axelor.workflow.exec
Class WorkflowLauncher
java.lang.Object
com.axelor.workflow.exec.WorkflowLauncher
Starts one definition on one record: the re-entrancy key, the run, and a
once workflow's
budget, spent only when the run fired. Shared by the engine and the orchestrator; the caller
opens the guard's context.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlaunch(WorkflowRegistration registration, WorkflowEvent event, boolean claimOnce) Runregistrationforevent.launch(WorkflowRegistration registration, WorkflowEvent event, boolean claimOnce, MessageDelivery delivery) The same, for a run started by a message, which the walk reads asmessage.
-
Constructor Details
-
WorkflowLauncher
public WorkflowLauncher()
-
-
Method Details
-
launch
public WorkflowResult launch(WorkflowRegistration registration, WorkflowEvent event, boolean claimOnce) Runregistrationforevent.- Parameters:
claimOnce- take a once budget before running, so concurrent callers serialize, rather than only marking it spent afterwards
-
launch
public WorkflowResult launch(WorkflowRegistration registration, WorkflowEvent event, boolean claimOnce, MessageDelivery delivery) The same, for a run started by a message, which the walk reads asmessage.
-