Simple jBPM Rest API client java library based on Retrofit. This library provides simple interface for jBPM Execution Server REST API.
- JDK 8
- Maven 3.1 or newer
mvn clean install
<dependency>
<groupId>de.pawlidi</groupId>
<artifactId>jBPMRest</artifactId>
<version>1.0.4</version>
</dependency>
dependencies {
compile group: 'de.pawlidi', name: 'jBPMRest', version: '1.0.4'
}
<dependency org="de.pawlidi" name="jBPMRest" rev="1.0.4"/>
Add jBPMRest jar file to your application classpath. The following example shows the basic usage of this library.
final String URL = "http://localhost:8181";
final String USER = "wbadmin";
final String PASSWORD = "wbadmin";
JbpmRestClient client = new JbpmRestClient(URL, USER, PASSWORD);
// read all containers from jbpm server
Optional<Containers> containers = client.getContainers();
containerId = ..
// read process instaces from container
Optional<ProcessInstances> instances = client.getProcessInstances(containerId, 0, 999, null, null, ProcessInstanceStatus.Active);