Package org.sterl.pmw.spring
Class PersistentWorkflowService
java.lang.Object
org.sterl.pmw.AbstractWorkflowService<org.sterl.spring.persistent_tasks.api.TaskId<? extends Serializable>>
org.sterl.pmw.spring.PersistentWorkflowService
- All Implemented Interfaces:
WorkflowService<org.sterl.spring.persistent_tasks.api.TaskId<? extends Serializable>>
@Service
public class PersistentWorkflowService
extends AbstractWorkflowService<org.sterl.spring.persistent_tasks.api.TaskId<? extends Serializable>>
-
Field Summary
Fields inherited from class org.sterl.pmw.AbstractWorkflowService
workflowRepository -
Constructor Summary
ConstructorsConstructorDescriptionPersistentWorkflowService(org.sterl.spring.persistent_tasks.PersistentTaskService persistentTaskService, org.sterl.spring.persistent_tasks.trigger.TriggerService triggerService, org.sterl.spring.persistent_tasks.task.TaskService taskService, @NonNull WorkflowRepository workflowRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(WorkflowId workflowId) voidClear all running and registered workflows, mainly used in tests<T extends Serializable>
WorkflowId<T extends Serializable>
org.sterl.spring.persistent_tasks.api.TaskId<T> Should register a new workflow or throw an exception if the workflow is already known.org.sterl.spring.persistent_tasks.api.TriggerStatusstatus(WorkflowId workflowId) Methods inherited from class org.sterl.pmw.AbstractWorkflowService
execute, execute, execute, execute, execute, listWorkflows, workflowCount
-
Constructor Details
-
PersistentWorkflowService
public PersistentWorkflowService(org.sterl.spring.persistent_tasks.PersistentTaskService persistentTaskService, org.sterl.spring.persistent_tasks.trigger.TriggerService triggerService, org.sterl.spring.persistent_tasks.task.TaskService taskService, @NonNull @NonNull WorkflowRepository workflowRepository)
-
-
Method Details
-
execute
-
status
-
cancel
-
register
public <T extends Serializable> org.sterl.spring.persistent_tasks.api.TaskId<T> register(Workflow<T> workflow) throws IllegalStateException Description copied from interface:WorkflowServiceShould register a new workflow or throw an exception if the workflow is already known.- Throws:
IllegalStateException- if the workflow is already known
-
clearAllWorkflows
public void clearAllWorkflows()Description copied from interface:WorkflowServiceClear all running and registered workflows, mainly used in tests- Specified by:
clearAllWorkflowsin interfaceWorkflowService<org.sterl.spring.persistent_tasks.api.TaskId<? extends Serializable>>- Overrides:
clearAllWorkflowsin classAbstractWorkflowService<org.sterl.spring.persistent_tasks.api.TaskId<? extends Serializable>>
-