public interface ProcessingManagementClient extends MockOrRestClient
| Modifier and Type | Method and Description |
|---|---|
ItemStatus |
cancelOperationProcessExecution(String id)
cancelOperationProcessExecution : cancel processing operation
|
javax.ws.rs.core.Response |
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<com.fasterxml.jackson.databind.JsonNode> |
executeOperationProcess(String operationId,
String workflowId,
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
|
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 |
isOperationCompleted(String operationId)
Check if process workflow is completed of not TODO Move this method to OperationManagementClient
|
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 |
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, getServiceUrlboolean isOperationCompleted(String operationId)
operationId - void registerWorker(String familyId, String workerId, WorkerBean workerDescription) throws ProcessingBadRequestException, WorkerAlreadyExistsException
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 workerBeanProcessingBadRequestException - if a bad request has been sentWorkerAlreadyExistsException - if the worker family does not existvoid unregisterWorker(String familyId, String workerId) throws ProcessingBadRequestException
familyId - the id of the family to which the worker has to be registeredworkerId - the id of the worker to be registeredProcessingBadRequestException - if the worker or the family does not existjavax.ws.rs.core.Response executeCheckTraceabilityWorkFlow(String checkOperationId, com.fasterxml.jackson.databind.JsonNode query, String workflowId, String actionId) throws InternalServerException, WorkflowNotFoundException
query - workflowId - not requiredactionId - InternalServerExceptionBadRequestExceptionWorkflowNotFoundExceptionRequestResponse<WorkFlow> getWorkflowDefinitions() throws VitamClientException
VitamClientExceptionOptional<WorkFlow> getWorkflowDetails(String WorkflowIdentifier) throws VitamClientException
WorkflowIdentifier - VitamClientExceptionvoid initVitamProcess(ProcessingEntry entry) throws InternalServerException, BadRequestException
entry - InternalServerExceptionBadRequestExceptionRequestResponse removeForcePause(ProcessPause info) throws ProcessingException
info - ProcessingExceptionRequestResponse<ProcessPause> forcePause(ProcessPause info) throws ProcessingException
info - ProcessingExceptionItemStatus getOperationProcessStatus(String id) throws VitamClientException, InternalServerException, BadRequestException
id - : operation identifier*VitamClientExceptionInternalServerExceptionBadRequestExceptionItemStatus getOperationProcessExecutionDetails(String id) throws VitamClientException, InternalServerException, BadRequestException
id - : operation identifierVitamClientExceptionInternalServerExceptionBadRequestExceptionItemStatus cancelOperationProcessExecution(String id) throws InternalServerException, VitamClientException
id - : operation identifierVitamClientExceptionInternalServerExceptionBadRequestExceptionRequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) throws InternalServerException, VitamClientException
actionId - : identify the action to be executed by the workflow(next , pause,resume)operationId - : operation identifierInternalServerExceptionBadRequestExceptionVitamClientExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> executeOperationProcess(String operationId, String workflowId, String actionId) throws InternalServerException, VitamClientException, WorkflowNotFoundException
operationId - id of the operation (required)workflowId - id of the workflow (optional)actionId - identify the action to be executed by the workflow(next , pause,resume) (required)InternalServerExceptionBadRequestExceptionVitamClientExceptionWorkflowNotFoundExceptionvoid initVitamProcess(String container, String workflowId) throws BadRequestException, InternalServerException
container - workflowId - InternalServerExceptionVitamClientExceptionBadRequestExceptionRequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query) throws VitamClientException
query - Query modelVitamClientExceptionCopyright © 2020 Vitam. All rights reserved.