Class WorkflowRestResource
java.lang.Object
org.tasktide.api.resources.services.rest.WorkflowRestResource
REST resource for interacting with
WorkflowService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseaddStep(String workflowId, String stepId, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) jakarta.ws.rs.core.ResponsecreateWorkflow(String workflowName, String stepId, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) Endpoint to create a new emptyWorkflow, returning created resource to the clientjakarta.ws.rs.core.ResponsecreateWorkflow(Workflow workflow, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) Endpoint to create providedWorkflow, returning whether the resource was created to the clientjakarta.ws.rs.core.ResponsecreateWorkflows(List<Workflow> workflows, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) Endpoint to import providedWorkflowcollection, returning whether the resource was created to the clientjakarta.ws.rs.core.ResponsedropWorkflow(String id, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) Endpoint for droppingWorkflowby Idjakarta.ws.rs.core.ResponsereadWorkflow(String id, String field, String value, String grouping, String groupingVal, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) Endpoint for fetchingWorkflowby Id, field having value, or field having value for a group having a valuejakarta.ws.rs.core.ResponseupdateWorkflow(Workflow workflow, jakarta.ws.rs.core.HttpHeaders reqHeader, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.SecurityContext securityContext) Endpoint for updatingWorkflowproviding new resource
-
Constructor Details
-
WorkflowRestResource
public WorkflowRestResource()Construct withWorkflowTaskTideService
-
-
Method Details
-
createWorkflow
@POST @Path("/add") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response createWorkflow(Workflow workflow, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) Endpoint to create providedWorkflow, returning whether the resource was created to the client- Parameters:
workflow-reqHeader-uriInfo-securityContext-- Returns:
Response
-
createWorkflows
@POST @Path("/import") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response createWorkflows(List<Workflow> workflows, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) Endpoint to import providedWorkflowcollection, returning whether the resource was created to the client- Parameters:
workflows-reqHeader-uriInfo-securityContext-- Returns:
Response
-
createWorkflow
@POST @Path("/create") @Produces("application/json") public jakarta.ws.rs.core.Response createWorkflow(@QueryParam("workflowName") String workflowName, @QueryParam("stepId") String stepId, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) Endpoint to create a new emptyWorkflow, returning created resource to the client- Parameters:
workflowName-stepId-reqHeader-uriInfo-securityContext-- Returns:
Response
-
readWorkflow
@GET @Path("/get") @Produces("application/json") public jakarta.ws.rs.core.Response readWorkflow(@QueryParam("id") String id, @QueryParam("field") String field, @QueryParam("value") String value, @QueryParam("grouping") String grouping, @QueryParam("groupingValue") String groupingVal, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) Endpoint for fetchingWorkflowby Id, field having value, or field having value for a group having a value- Parameters:
id-field-value-grouping-groupingVal-reqHeader-uriInfo-securityContext-- Returns:
Response
-
addStep
@PUT @Path("/add-step") @Produces("application/json") public jakarta.ws.rs.core.Response addStep(@QueryParam("workflowId") String workflowId, @QueryParam("stepId") String stepId, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) - Parameters:
workflowId-stepId-reqHeader-uriInfo-securityContext-- Returns:
Response
-
dropWorkflow
@DELETE @Path("/drop/{id}") @Produces("application/json") public jakarta.ws.rs.core.Response dropWorkflow(@PathParam("id") String id, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) Endpoint for droppingWorkflowby Id- Parameters:
id-reqHeader-uriInfo-securityContext-- Returns:
Response
-
updateWorkflow
@PUT @Path("/update") @Consumes("application/json") @Produces("application/json") public jakarta.ws.rs.core.Response updateWorkflow(Workflow workflow, @Context jakarta.ws.rs.core.HttpHeaders reqHeader, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Context jakarta.ws.rs.core.SecurityContext securityContext) Endpoint for updatingWorkflowproviding new resource- Parameters:
workflow-reqHeader-uriInfo-securityContext-- Returns:
Response
-