@Path(value="/workflowtools") public class WorkflowToolsResource extends Object
Constructor and Description |
---|
WorkflowToolsResource() |
Modifier and Type | Method and Description |
---|---|
String[] |
createTool(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
Create workflow via workflow JSON.
|
void |
deleteTool(String toolId)
Delete the tool given the specific id.
|
WorkflowTool |
getWorkflowTool(String toolId)
Get a workflow tool by Id
|
List<WorkflowTool> |
getWorkflowTools(int size,
int page,
boolean showdeleted,
String email)
Get all workflow tools
|
javax.ws.rs.core.Response |
getWorkflowToolZip(String toolId)
Export a workflow tool by id
|
@GET @Produces(value="application/json") public List<WorkflowTool> getWorkflowTools(@QueryParam(value="size")@DefaultValue(value="-1") int size, @QueryParam(value="page")@DefaultValue(value="0") int page, @QueryParam(value="showdeleted")@DefaultValue(value="false") boolean showdeleted, @QueryParam(value="email")@DefaultValue(value="") String email)
size
- number of workflow tools per pagepage
- page number starting at 0@POST @Consumes(value="multipart/form-data") @Produces(value="application/json") public String[] createTool(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
input
- a form posted@GET @Path(value="{tool-id}") @Produces(value="application/json") public WorkflowTool getWorkflowTool(@PathParam(value="tool-id") String toolId)
toolId
- workflow tool Id@DELETE @Path(value="{tool-id}") public void deleteTool(@PathParam(value="tool-id") String toolId) throws Exception
toolId
- the tool to be deletedException
@GET @Path(value="{tool-id}/zip") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getWorkflowToolZip(@PathParam(value="tool-id") String toolId) throws javax.ws.rs.BadRequestException, javax.ws.rs.InternalServerErrorException
toolId
- id of tool to exportjavax.ws.rs.BadRequestException
javax.ws.rs.InternalServerErrorException
Copyright © 2017. All rights reserved.