Class DefaultWorkflowLauncher
java.lang.Object
com.broadleafcommerce.workflow.service.DefaultWorkflowLauncher
- All Implemented Interfaces:
WorkflowLauncher,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
See
WorkflowLauncher-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkflowLauncher(ExecutionProperties executionProperties, WorkflowRunner runner, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, WorkflowRepository<com.broadleafcommerce.data.tracking.core.Trackable> workflowRepository, com.broadleafcommerce.data.tracking.core.BasicAuditUtility auditUtility, WorkflowService<Workflow> workflowService, com.broadleafcommerce.orchestration.spring.SimpleWorkflowFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanspawn(Informational workFlow) Launch a new workflow into an async thread pool for executionvoidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isPauseable, stop
-
Constructor Details
-
DefaultWorkflowLauncher
public DefaultWorkflowLauncher(ExecutionProperties executionProperties, WorkflowRunner runner, org.springframework.context.ApplicationEventPublisher applicationEventPublisher, WorkflowRepository<com.broadleafcommerce.data.tracking.core.Trackable> workflowRepository, com.broadleafcommerce.data.tracking.core.BasicAuditUtility auditUtility, WorkflowService<Workflow> workflowService, com.broadleafcommerce.orchestration.spring.SimpleWorkflowFactory factory)
-
-
Method Details
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
spawn
Description copied from interface:WorkflowLauncherLaunch a new workflow into an async thread pool for execution- Specified by:
spawnin interfaceWorkflowLauncher- Parameters:
workFlow- Information about the workflow to execute- Returns:
- Whether a thread was able to handle the request before a timeout occurred
-