@Path(value="/processing/v1") @ApplicationPath(value="webresources") public class ProcessManagementResource extends ApplicationStatusResource
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
ProcessManagementResource(ServerConfiguration configuration,
ProcessDistributor processDistributor)
ProcessManagementResource : initiate the ProcessManagementResource resources
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
executeWorkFlow(javax.ws.rs.core.HttpHeaders headers,
String id,
ProcessingEntry process)
Execute the process of an operation related to the id.
|
javax.ws.rs.core.Response |
findProcessWorkflows(ProcessQuery query)
get the process workflow
|
javax.ws.rs.core.Response |
forcePause(ProcessPause info)
Pause the processes specified by ProcessPause info
|
javax.ws.rs.core.Response |
getOperationProcessExecutionDetails(String id)
get the workflow status
|
ProcessLifeCycle |
getProcessLifeCycle() |
javax.ws.rs.core.Response |
getWorkflowDefinitions() |
javax.ws.rs.core.Response |
getWorkFlowState(String id)
get the operation status
|
javax.ws.rs.core.Response |
interruptWorkFlowExecution(String id)
Interrupt the process of an operation identified by Id.
|
javax.ws.rs.core.Response |
removeForcePause(ProcessPause info)
Remove the pause for the processes specified by ProcessPause info
|
javax.ws.rs.core.Response |
updateWorkFlowStatus(javax.ws.rs.core.HttpHeaders headers,
String id)
Update the status of an operation.
|
getServerTenants, status
public ProcessManagementResource(ServerConfiguration configuration, ProcessDistributor processDistributor) throws ProcessingStorageWorkspaceException
configuration
- the server configuration to be appliedProcessingStorageWorkspaceException
public ProcessLifeCycle getProcessLifeCycle()
@Path(value="workflows") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getWorkflowDefinitions()
@Path(value="operations/{id}") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response executeWorkFlow(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id") String id, ProcessingEntry process)
headers
- contain X-Action and X-Context-IDprocess
- as Json of type ProcessingEntry, indicate the container and workflowIdid
- operation identifierProcessingException
- if error in start a workflow@Path(value="operations/{id}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getOperationProcessExecutionDetails(@PathParam(value="id") String id)
id
- operation identifier@Path(value="operations/{id}") @PUT @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateWorkFlowStatus(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id") String id) throws InvalidGuidOperationException
headers
- contain X-Action and X-Context-IDid
- operation identifierInvalidGuidOperationException
@Path(value="operations/{id}") @DELETE @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response interruptWorkFlowExecution(@PathParam(value="id") String id)
id
- operation identifier@Path(value="operations/{id}") @HEAD @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getWorkFlowState(@PathParam(value="id") String id)
id
- operation identifier@GET @Path(value="/operations") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findProcessWorkflows(ProcessQuery query)
query
- the filter query@Path(value="/forcepause") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response forcePause(ProcessPause info)
info
- a ProcessPause object indicating the tenant and/or the type of process to pause@Path(value="/removeforcepause") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response removeForcePause(ProcessPause info)
info
- a ProcessPause object indicating the tenant and/or the type of process to pauseCopyright © 2018 Vitam. All rights reserved.