Deployment
- Spring Boot Official documentation
- Maven Configuration
<dependency> <groupId>org.activiti</groupId> <artifactId> Activiti-spring-boot-starter-basic</artifactid> <version>6.0.0</version> </dependency> Applications
- Consider excluding the Securityautoconfiguration class when an exception occurs when starting a project: @SpringBootApplication (exclude = Securityautoconfiguration.class)
- All of the default src/main/resources/processes. BPMN. Bpmn20.xml will be automatically deployed and can be disabled at the configuration file
- Processengineconfiguration (auto-injected as Springprocessengineconfiguration) is the Activiti control center that manages the Activiti execution engine
Activiti API
URL here
Process Engine
belongs to the BPMN execution engine?
The Activiti engine, which can be considered a activiti unit, manages a range of service to control its life cycle
Services
Service is basically auto-injected
- Repositoryservice: Provides methods related to the process definition, query model, process definition, and process deployment (deployment).
- Runtimeservice: Provides process execution-related methods that can query process instances (process insatnce), execution instances (execution), and open process instances.
- Taskservice: Provides task-related methods for querying, assigning, completing tasks, and so on.
- Historiyservice: Provides a history-related approach to querying historical tasks (historic task Istance), historical process instances (historic process instance), and so on.
- Formservice: Provides a form-related method, a user task can correspond to a formkey, can be formkey to find a form, provide a way to obtain the form.
- Identityservice: Provide user rights authentication related methods, can query users, groups and other information, can set the current user.
- Managementservice: Related to the engine configuration, the engine database information can be obtained, and the custom command is executed.
- Dynamicbpmnservice: Provides a way to dynamically acquire and dynamically modify the process definition.
Activiti Spring Boot Integration Experience