Interface ProcessManagement
- All Superinterfaces:
AutoCloseable
,ProcessLifeCycle
,VitamAutoCloseable
- All Known Implementing Classes:
ProcessManagementImpl
ProcessManagement interface
This service will be invoked by Ingest Module
-
Method Summary
Modifier and TypeMethodDescriptionHandle a cancel action for the corresponding process workflowfindAllProcessWorkflow
(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 needfindOneProcessWorkflow
(String operationId, Integer tenantId) find the workflow process according to the operation_id and the tenant_idvoid
forcePause
(ProcessPause pause) Add a forced pause on the tenant and/or the type of processserver configurationgetFilteredProcess
(ProcessQuery query, Integer tenantId) Get filtered process workflowsProcessMonitorListRetrieve the loaded workflow definitionsinit
(WorkerParameters workerParameters, String workflowId) Init a new process workflownext
(WorkerParameters workerParameters, Integer tenantId) Handle a next action for the corresponding process workflowHandle a pause action for the corresponding process workflowvoid
Reload workflow definitionsvoid
removeForcePause
(ProcessPause pause) Removed the forced pause on the tenant and/or the type of processreplay
(WorkerParameters workerParameters, Integer tenantId) Handle a replay action for the corresponding process workflowresume
(WorkerParameters workerParameters, Integer tenantId, boolean useForcedPause) Handle a resume action for the corresponding process workflowMethods inherited from interface fr.gouv.vitam.common.lifecycle.ProcessLifeCycle
startProcess, stopProcess
Methods inherited from interface fr.gouv.vitam.common.model.VitamAutoCloseable
close
-
Method Details
-
init
ProcessWorkflow init(WorkerParameters workerParameters, String workflowId) throws ProcessingException Init a new process workflow- Parameters:
workerParameters
- parameters to be passed to ProcessEngineworkflowId
- the workflow identifier- Returns:
- ProcessWorkflow
- Throws:
ProcessingException
- if the process could not be initialized
-
next
ItemStatus next(WorkerParameters workerParameters, Integer tenantId) throws ProcessingException, StateNotAllowedException Handle a next action for the corresponding process workflow- Parameters:
workerParameters
- parameters to be passed to ProcessEnginetenantId
- the tenant identifier- Returns:
- the status
- Throws:
ProcessingException
- if next could not be appliedStateNotAllowedException
- if the process state is incorrect
-
replay
ItemStatus replay(WorkerParameters workerParameters, Integer tenantId) throws ProcessingException, StateNotAllowedException Handle a replay action for the corresponding process workflow- Parameters:
workerParameters
- parameters to be passed to ProcessEnginetenantId
- the tenant identifier- Returns:
- the status
- Throws:
ProcessingException
- if replay could not be appliedStateNotAllowedException
- if the process state is incorrect
-
resume
ItemStatus resume(WorkerParameters workerParameters, Integer tenantId, boolean useForcedPause) throws ProcessingException, StateNotAllowedException Handle a resume action for the corresponding process workflow- Parameters:
workerParameters
- parameters to be passed to ProcessEnginetenantId
- the tenant identifieruseForcedPause
- if the forced pause must be applied- Returns:
- the status
- Throws:
ProcessingException
- if resume could not be appliedStateNotAllowedException
- if the process state is incorrect
-
pause
ItemStatus pause(String operationId, Integer tenantId) throws ProcessingException, StateNotAllowedException Handle a pause action for the corresponding process workflow- Parameters:
operationId
- the operation identifiertenantId
- the tenant identifier- Returns:
- the status
- Throws:
ProcessingException
- if pause could not be appliedStateNotAllowedException
- if the process state is incorrect
-
cancel
ItemStatus cancel(String operationId, Integer tenantId) throws ProcessingException, StateNotAllowedException Handle a cancel action for the corresponding process workflow- Parameters:
operationId
- the operation identifiertenantId
- the tenant identifier- Returns:
- the status
- Throws:
ProcessingException
- if cancel could not be appliedStateNotAllowedException
- if the process state is incorrect
-
findAllProcessWorkflow
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- Parameters:
tenantId
- the tenant identifier- Returns:
- All the workflow process details
-
findOneProcessWorkflow
find the workflow process according to the operation_id and the tenant_id- Parameters:
operationId
- the operation identifiertenantId
- the tenant identifier- Returns:
- the workFlow process
-
getWorkflowDefinitions
Retrieve the loaded workflow definitions- Returns:
- the workflow definitions by ID
-
reloadWorkflowDefinitions
void reloadWorkflowDefinitions()Reload workflow definitions -
getFilteredProcess
Get filtered process workflow- Parameters:
query
- to filtertenantId
- the tenandId- Returns:
- filtered process list
-
getWorkFlowList
Map<Integer,Map<String, getWorkFlowList()ProcessWorkflow>> - Returns:
- WorkFlow List
-
getProcessMonitorList
Map<String,IEventsState> getProcessMonitorList()sProcessMonitorList- Returns:
-
getConfiguration
ServerConfiguration getConfiguration()server configuration- Returns:
-
removeForcePause
Removed the forced pause on the tenant and/or the type of process- Parameters:
pause
-- Throws:
ProcessingException
-
forcePause
Add a forced pause on the tenant and/or the type of process- Parameters:
pause
-- Throws:
ProcessingException
-