@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 |
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 |
updateWorkFlowStatus(javax.ws.rs.core.HttpHeaders headers,
String id)
Update the status of an operation.
|
getServerTenants, statuspublic ProcessManagementResource(ServerConfiguration configuration, ProcessDistributor processDistributor) throws ProcessingStorageWorkspaceException
configuration - the server configuration to be appliedProcessingStorageWorkspaceExceptionpublic 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)
headers - contain X-Action and X-Context-IDid - operation identifier@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 queryCopyright © 2018 Vitam. All rights reserved.