Package org.sterl.pmw
Interface WorkflowService<RegistryType>
- All Known Implementing Classes:
AbstractWorkflowService,PersistentWorkflowService
public interface WorkflowService<RegistryType>
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(WorkflowId runningWorkflowId) voidClear all running and registered workflows, mainly used in testsexecute(String workflowName, Serializable state) execute(String workflowName, Serializable state, Duration delay) <T extends Serializable>
WorkflowId<T extends Serializable>
WorkflowId<T extends Serializable>
WorkflowId<T extends Serializable>
RegistryTypeShould register a new workflow or throw an exception if the workflow is already known.org.sterl.spring.persistent_tasks.api.TriggerStatusstatus(WorkflowId runningWorkflowId) intCount of known workflows
-
Method Details
-
listWorkflows
Collection<String> listWorkflows() -
execute
-
execute
-
execute
-
execute
-
execute
-
execute
-
status
-
cancel
-
clearAllWorkflows
void clearAllWorkflows()Clear all running and registered workflows, mainly used in tests -
register
Should register a new workflow or throw an exception if the workflow is already known.- Throws:
IllegalStateException- if the workflow is already known
-
workflowCount
int workflowCount()Count of known workflows
-