Package org.imixs.workflow.jaxrs
Klasse ModelRestService
java.lang.Object
org.imixs.workflow.jaxrs.ModelRestService
@Path("/model")
@Produces({"text/html","application/xhtml+xml","application/xml","application/json","text/xml"})
public class ModelRestService
extends Object
The WorkflowService Handler supports methods to process different kind of
request URIs
- Autor:
- rsoika
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddeleteModel(String version) jakarta.ws.rs.core.ResponsefindAllEventsByTask(String version, int taskID, String items, String format) jakarta.ws.rs.core.ResponsefindAllTasks(String version, String items, String format) jakarta.ws.rs.core.ResponsefindEndTasksByGroup(String version, String group, String items, String format) Returns a list of end Tasks of a given Process Groupjakarta.ws.rs.core.ResponsefindStartTasksByGroup(String version, String group, String items, String format) Returns a list of start Tasks of a given Process Groupjakarta.ws.rs.core.ResponsefindTasksByGroup(String version, String group, String items, String format) Returns a list of all Tasks of a specific workflow group.jakarta.ws.rs.core.ResponsegetDefiniton(String version, String items, String format) Returns the model definition containing general model information (e.g.jakarta.ws.rs.core.ResponseReturns the Task BPMN element by its ID and VersionID.jakarta.ws.rs.core.ResponseReturns a list of all Workflow Groups of the given modeljakarta.ws.rs.core.ResponsegetModelFile(String version, jakarta.ws.rs.core.UriInfo uriInfo) Returns the XML representation of a BPMN modeljakarta.ws.rs.core.StreamingOutputjakarta.ws.rs.core.ResponseReturns the Task BPMN element by its ID and VersionID.jakarta.ws.rs.core.ResponsepostBPMNModel(InputStream inputStream) jakarta.ws.rs.core.ResponsepostBPMNModel(String filename, InputStream inputStream) jakarta.ws.rs.core.ResponseputBPMNModel(InputStream inputStream) jakarta.ws.rs.core.ResponseputBPMNModel(String filename, InputStream inputStream) This method consumes a Imixs BPMN model file and updates the corresponding model information.
-
Konstruktordetails
-
ModelRestService
public ModelRestService()
-
-
Methodendetails
-
getModelOverview
@GET @Produces("text/html") public jakarta.ws.rs.core.StreamingOutput getModelOverview() -
getModelXML
-
findAllTasks
-
getModelFile
@GET @Path("/{version}/bpmn") public jakarta.ws.rs.core.Response getModelFile(@PathParam("version") String version, @Context jakarta.ws.rs.core.UriInfo uriInfo) Returns the XML representation of a BPMN model- Parameter:
version-uriInfo-- Gibt zurück:
-
getDefiniton
@GET @Path("/{version}/definition") public jakarta.ws.rs.core.Response getDefiniton(@PathParam("version") String version, @QueryParam("items") String items, @QueryParam("format") String format) Returns the model definition containing general model information (e.g. $ModelVersion). -
getTask
@GET @Path("/{version}/tasks/{taskid}") public jakarta.ws.rs.core.Response getTask(@PathParam("version") String version, @PathParam("taskid") int taskID, @QueryParam("items") String items, @QueryParam("format") String format) Returns the Task BPMN element by its ID and VersionID.- Parameter:
version-taskID-items-format-- Gibt zurück:
-
getEvent
@GET @Path("/{version}/tasks/{taskid}/events/{eventid}") public jakarta.ws.rs.core.Response getEvent(@PathParam("version") String version, @PathParam("taskid") int taskID, @PathParam("eventid") int eventID, @QueryParam("items") String items, @QueryParam("format") String format) Returns the Task BPMN element by its ID and VersionID.- Parameter:
version-taskID-items-format-- Gibt zurück:
-
findAllEventsByTask
-
getGroups
@GET @Path("/{version}/groups") public jakarta.ws.rs.core.Response getGroups(@PathParam("version") String version, @QueryParam("items") String items, @QueryParam("format") String format) Returns a list of all Workflow Groups of the given model- Parameter:
version-- Gibt zurück:
-
findTasksByGroup
@GET @Path("/{version}/groups/{group}") public jakarta.ws.rs.core.Response findTasksByGroup(@PathParam("version") String version, @PathParam("group") String group, @QueryParam("items") String items, @QueryParam("format") String format) Returns a list of all Tasks of a specific workflow group.- Parameter:
version-- Gibt zurück:
-
findStartTasksByGroup
@GET @Path("/{version}/groups/{group}/start") @Produces("application/json") public jakarta.ws.rs.core.Response findStartTasksByGroup(@PathParam("version") String version, @PathParam("group") String group, @QueryParam("items") String items, @QueryParam("format") String format) Returns a list of start Tasks of a given Process GroupIn case of a collaboration diagram only Pool names are compared. The default process (Public Process) will be ignored.
- Parameter:
version-- Gibt zurück:
-
findEndTasksByGroup
@GET @Path("/{version}/groups/{group}/end") @Produces("application/json") public jakarta.ws.rs.core.Response findEndTasksByGroup(@PathParam("version") String version, @PathParam("group") String group, @QueryParam("items") String items, @QueryParam("format") String format) Returns a list of end Tasks of a given Process GroupIn case of a collaboration diagram only Pool names are compared. The default process (Public Process) will be ignored.
- Parameter:
version-- Gibt zurück:
-
deleteModel
-
putBPMNModel
@PUT @Path("/bpmn/{filename}") @Consumes("application/octet-stream") public jakarta.ws.rs.core.Response putBPMNModel(@PathParam("filename") String filename, InputStream inputStream) This method consumes a Imixs BPMN model file and updates the corresponding model information.- Parameter:
bpmnModel-- Gibt zurück:
-
postBPMNModel
@POST @Path("/bpmn/{filename}") @Consumes("application/octet-stream") public jakarta.ws.rs.core.Response postBPMNModel(@PathParam("filename") String filename, InputStream inputStream) -
putBPMNModel
@PUT @Path("/bpmn") @Consumes("application/octet-stream") public jakarta.ws.rs.core.Response putBPMNModel(InputStream inputStream) -
postBPMNModel
@POST @Path("/bpmn") @Consumes("application/octet-stream") public jakarta.ws.rs.core.Response postBPMNModel(InputStream inputStream)
-