public interface ProcessManagement extends ProcessLifeCycle, VitamAutoCloseable
Modifier and Type | Method and Description |
---|---|
ItemStatus |
cancel(String operationId,
Integer tenantId)
Handle a cancel action for the corresponding process workflow
|
List<ProcessWorkflow> |
findAllProcessWorkflow(Integer tenantId)
Retrieve All the workflow process for monitoring purpose The final business scope of this feature is likely to be
redefined, to match the future need
|
ProcessWorkflow |
findOneProcessWorkflow(String operationId,
Integer tenantId)
find the workflow process according to the operation_id and the tenant_id
|
ServerConfiguration |
getConfiguration()
server configuration
|
List<ProcessDetail> |
getFilteredProcess(ProcessQuery query,
Integer tenantId)
Get filtered process workflow
|
Map<String,IEventsState> |
getProcessMonitorList()
sProcessMonitorList
|
Map<String,WorkFlow> |
getWorkflowDefinitions()
Retrieve the loaded workflow definitions
|
Map<Integer,Map<String,ProcessWorkflow>> |
getWorkFlowList() |
ProcessWorkflow |
init(WorkerParameters workerParameters,
String workflowId,
LogbookTypeProcess logbookTypeProcess,
Integer tenantId,
String contextId)
Init a new process workflow
|
ItemStatus |
next(WorkerParameters workerParameters,
Integer tenantId)
Handle a next action for the corresponding process workflow
|
ItemStatus |
pause(String operationId,
Integer tenantId)
Handle a pause action for the corresponding process workflow
|
void |
reloadWorkflowDefinitions()
Reload workflow definitions
|
ItemStatus |
replay(WorkerParameters workerParameters,
Integer tenantId)
Handle a replay action for the corresponding process workflow
|
ItemStatus |
resume(WorkerParameters workerParameters,
Integer tenantId)
Handle a resume action for the corresponding process workflow
|
startProcess, stopProcess
close
ProcessWorkflow init(WorkerParameters workerParameters, String workflowId, LogbookTypeProcess logbookTypeProcess, Integer tenantId, String contextId) throws ProcessingException
workerParameters
- parameters to be passed to ProcessEngineworkflowId
- the workflow identifierlogbookTypeProcess
- the process typetenantId
- the tenant identifiercontextId
- the context IDProcessingException
- if the process could not be initializedItemStatus next(WorkerParameters workerParameters, Integer tenantId) throws ProcessingException, StateNotAllowedException
workerParameters
- parameters to be passed to ProcessEnginetenantId
- the tenant identifierProcessingException
- if next could not be appliedStateNotAllowedException
- if the process state is incorrectItemStatus replay(WorkerParameters workerParameters, Integer tenantId) throws ProcessingException, StateNotAllowedException
workerParameters
- parameters to be passed to ProcessEnginetenantId
- the tenant identifierProcessingException
- if replay could not be appliedStateNotAllowedException
- if the process state is incorrectItemStatus resume(WorkerParameters workerParameters, Integer tenantId) throws ProcessingException, StateNotAllowedException
workerParameters
- parameters to be passed to ProcessEnginetenantId
- the tenant identifierProcessingException
- if resume could not be appliedStateNotAllowedException
- if the process state is incorrectItemStatus pause(String operationId, Integer tenantId) throws ProcessingException, StateNotAllowedException
operationId
- the operation identifiertenantId
- the tenant identifierProcessingException
- if pause could not be appliedStateNotAllowedException
- if the process state is incorrectItemStatus cancel(String operationId, Integer tenantId) throws ProcessingException, StateNotAllowedException
operationId
- the operation identifiertenantId
- the tenant identifierProcessingException
- if cancel could not be appliedStateNotAllowedException
- if the process state is incorrectList<ProcessWorkflow> findAllProcessWorkflow(Integer tenantId)
tenantId
- the tenant identifierProcessWorkflow findOneProcessWorkflow(String operationId, Integer tenantId)
operationId
- the operation identifiertenantId
- the tenant identifierMap<String,WorkFlow> getWorkflowDefinitions()
void reloadWorkflowDefinitions()
List<ProcessDetail> getFilteredProcess(ProcessQuery query, Integer tenantId)
query
- to filtertenantId
- the tenandIdMap<Integer,Map<String,ProcessWorkflow>> getWorkFlowList()
Map<String,IEventsState> getProcessMonitorList()
ServerConfiguration getConfiguration()
Copyright © 2018 Vitam. All rights reserved.