Package org.imixs.melman
Class ModelClient
java.lang.Object
org.imixs.melman.AbstractClient
org.imixs.melman.ModelClient
This ServiceClient is a WebService REST Client which encapsulate the
communication with a REST web serice based on the Imixs Workflow REST API.
The Implementation is based on the JAXB API 2.0.
- Author:
- Ralph Soika
-
Field Summary
Fields inherited from class org.imixs.melman.AbstractClient
baseURI, requestFilterList, sslContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteModel(String version) Deletes a model by its versionvoidpostModel(org.imixs.workflow.bpmn.BPMNModel model) Posts a byte array of a BPMN Model to the Model service.Methods inherited from class org.imixs.melman.AbstractClient
getBaseURI, getCustomResource, getCustomResourceXML, getRequestFilterList, getSslContext, getWebTarget, logout, newClient, registerClientRequestFilter, setBaseURI, setSslContext
-
Constructor Details
-
ModelClient
Initialize the client by a BASE_URL.- Parameters:
base_uri-
-
-
Method Details
-
postModel
Posts a byte array of a BPMN Model to the Model service.- Parameters:
data- - byte array of a bpmn model file- Throws:
RestAPIException
-
deleteModel
Deletes a model by its version- Parameters:
userid-- Throws:
RestAPIException
-