https://grokonez.com/java-integration/activiti-rest-api-spring-boot-example
How to implement Activiti REST API with Spring Boot Example
In this tutorial, we’re gonna look at an example that uses Activiti REST API with Spring Boot.
Related Articles:
By default the Activiti Engine will connect to an in-memory H2 database, so with Spring Boot, we just need to add dependency as below to make it run:
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring-boot-starter-basic</artifactId>
<version>5.22.0</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>spring-boot-starter-rest-api</artifactId>
<version>5.17.0</version>
</dependency>
Activiti REST API supports:
<li><strong>Process Definition</strong>: get one or list of Process Definitions, get resource content or BPMN model of a Process Definition, activate/suspend, get/add/delete candidate starters.</li>
<li><strong>Model</strong>: get/update/create/delete Models, get/set editor source for a Model.</li>
<li><strong>Process Instance</strong>: get/delete/activate/suspend Process Instances, add/remove Users, get/create/update Variables.</li>
<li><strong>Execution</strong>: get Executions, execute an action or get active activities, query, get/create/update Variables.</li>
<li><strong>Task</strong>: get/update/delete Tasks, query for Tasks, get/create/update Variables, get/create/delete identity links, get Events, get/create/delete Attachments.</li>
<li><strong>History</strong>: get/delete/query for Historic Process Instances, Task Instances, Activities Instances, Variables Intances.</li>
<li><strong>User</strong> & <strong>Group</strong>: get/create/update/delete information.</li>
<li><strong>Database Table</strong>, <strong>Engine</strong>, <strong>Runtime</strong>, <strong>Job</strong>...</li>
For more details, please visit: Activiti User Guide - REST API
In the example, we will test some of them to see how it works.
https://grokonez.com/java-integration/activiti-rest-api-spring-boot-example
How to implement Activiti REST API with Spring Boot Example
#restapi #springboot #activiti