Package org.imixs.melman
Class ModelClient
- java.lang.Object
-
- org.imixs.melman.AbstractClient
-
- org.imixs.melman.ModelClient
-
public class ModelClient extends AbstractClient
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 Constructor Description ModelClient(String base_uri)Initialize the client by a BASE_URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteModel(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 Detail
-
ModelClient
public ModelClient(String base_uri)
Initialize the client by a BASE_URL.- Parameters:
base_uri-
-
-
Method Detail
-
postModel
public void postModel(org.imixs.workflow.bpmn.BPMNModel model) throws RestAPIExceptionPosts a byte array of a BPMN Model to the Model service.- Parameters:
data- - byte array of a bpmn model file- Throws:
RestAPIException
-
deleteModel
public void deleteModel(String version) throws RestAPIException
Deletes a model by its version- Parameters:
userid-- Throws:
RestAPIException
-
-