public class ProcessingManagementClientMock extends AbstractMockClient implements ProcessingManagementClient
AbstractMockClient.FakeInboundResponse
INTERNAL_SERVER_ERROR
Modifier and Type | Method and Description |
---|---|
RequestResponse<ItemStatus> |
cancelOperationProcessExecution(String id)
cancelOperationProcessExecution : cancel processing operation
|
RequestResponse<ItemStatus> |
executeCheckTraceabilityWorkFlow(String checkOperationId,
com.fasterxml.jackson.databind.JsonNode query,
String workflowId,
String actionId)
Other than INIT process, only operation id and action id are required
|
RequestResponse<ItemStatus> |
executeOperationProcess(String operationId,
String workflow,
String actionId)
ExecuteOperationProcess : execute an operation processing
Other than INIT process, only operation id and action id are required
|
RequestResponse<ProcessPause> |
forcePause(ProcessPause info)
Add a forced pause on the tenant and/or the type of process
|
RequestResponse<ItemStatus> |
getOperationProcessExecutionDetails(String id)
getOperationProcessExecutionDetails : get operation processing execution details
|
ItemStatus |
getOperationProcessStatus(String id)
getOperationProcessStatus:
get operation process status**
|
RequestResponse<WorkFlow> |
getWorkflowDefinitions()
Retrieve all the workflow definitions.
|
Optional<WorkFlow> |
getWorkflowDetails(String WorkflowIdentifier) |
void |
initVitamProcess(ProcessingEntry entry)
initVitamProcess woth processing entry
|
void |
initVitamProcess(String container,
String workflowId)
initVitamProcess
|
boolean |
isNotRunning(String operationId)
Check if process workflow is completed of not
|
boolean |
isNotRunning(String operationId,
ProcessState expectedProcessState) |
RequestResponse<ProcessDetail> |
listOperationsDetails(ProcessQuery query)
Retrieve all the workflow operations
|
void |
registerWorker(String familyId,
String workerId,
WorkerBean workerDescription)
Register a new worker knowing its family and with a WorkerBean.
|
RequestResponse<ProcessPause> |
removeForcePause(ProcessPause info)
Removed the forced pause on the tenant and/or the type of process
|
void |
unregisterWorker(String familyId,
String workerId)
Unregister a worker knowing its family and its workerId.
|
RequestResponse<ItemStatus> |
updateOperationActionProcess(String actionId,
String operationId)
updateOperationActionProcess : update operation processing status
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
public ItemStatus getOperationProcessStatus(String id)
ProcessingManagementClient
getOperationProcessStatus
in interface ProcessingManagementClient
id
- : operation identifier*public RequestResponse<ItemStatus> getOperationProcessExecutionDetails(String id)
ProcessingManagementClient
getOperationProcessExecutionDetails
in interface ProcessingManagementClient
id
- : operation identifierpublic RequestResponse<ItemStatus> cancelOperationProcessExecution(String id)
ProcessingManagementClient
cancelOperationProcessExecution
in interface ProcessingManagementClient
id
- : operation identifierpublic RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId)
ProcessingManagementClient
updateOperationActionProcess
in interface ProcessingManagementClient
actionId
- : identify the action to be executed by the workflow(next , pause,resume)operationId
- : operation identifierpublic RequestResponse<ItemStatus> executeOperationProcess(String operationId, String workflow, String actionId)
ProcessingManagementClient
executeOperationProcess
in interface ProcessingManagementClient
operationId
- id of the operation (required)workflow
- id of the workflow (optional)actionId
- identify the action to be executed by the workflow(next , pause,resume) (required)public boolean isNotRunning(String operationId)
ProcessingManagementClient
isNotRunning
in interface ProcessingManagementClient
public boolean isNotRunning(String operationId, ProcessState expectedProcessState)
isNotRunning
in interface ProcessingManagementClient
public void registerWorker(String familyId, String workerId, WorkerBean workerDescription)
ProcessingManagementClient
registerWorker
in interface ProcessingManagementClient
familyId
- the id of the family to which the worker has to be registeredworkerId
- the id of the worker to be registeredworkerDescription
- the description of the worker as a workerBeanpublic void unregisterWorker(String familyId, String workerId)
ProcessingManagementClient
unregisterWorker
in interface ProcessingManagementClient
familyId
- the id of the family to which the worker has to be registeredworkerId
- the id of the worker to be registeredpublic void initVitamProcess(String container, String workflowId)
ProcessingManagementClient
initVitamProcess
in interface ProcessingManagementClient
public RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query)
ProcessingManagementClient
listOperationsDetails
in interface ProcessingManagementClient
query
- Query modelpublic RequestResponse<ItemStatus> executeCheckTraceabilityWorkFlow(String checkOperationId, com.fasterxml.jackson.databind.JsonNode query, String workflowId, String actionId) throws WorkflowNotFoundException
ProcessingManagementClient
executeCheckTraceabilityWorkFlow
in interface ProcessingManagementClient
workflowId
- not requiredWorkflowNotFoundException
public RequestResponse<WorkFlow> getWorkflowDefinitions()
ProcessingManagementClient
getWorkflowDefinitions
in interface ProcessingManagementClient
public Optional<WorkFlow> getWorkflowDetails(String WorkflowIdentifier)
getWorkflowDetails
in interface ProcessingManagementClient
public void initVitamProcess(ProcessingEntry entry)
ProcessingManagementClient
initVitamProcess
in interface ProcessingManagementClient
public RequestResponse<ProcessPause> forcePause(ProcessPause info)
ProcessingManagementClient
forcePause
in interface ProcessingManagementClient
public RequestResponse<ProcessPause> removeForcePause(ProcessPause info)
ProcessingManagementClient
removeForcePause
in interface ProcessingManagementClient
Copyright © 2019 Vitam. All rights reserved.