Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to integrate camunda with springboot

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to integrate springboot camunda, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

1. Description

Camunda uses the workflow engine opened by Java. Springboot 2.2.6.release + camunda 3.4.2 is used here

2. Configure the actual combat

Using the camunda process engine, web interface, and Rest service interface, the corresponding dependencies are as follows:

Process engine: camunda-bpm-spring-boot-starter

Rest service interface: camunda-bpm-spring-boot-starter-rest

Web interface module: camunda-bpm-spring-boot-starter-webapp

If you are just using a process engine, you only need to introduce camunda-bpm-spring-boot-starter.

(1) pom.xml file configuration

3.4.2 org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-webapp ${camunda.version} org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-rest ${camunda.version} org.camunda.bpm.springboot camunda-bpm-spring-boot-starter ${camunda.version}

(2) yml file configuration

Camunda: bpm: # configure account password to access Camunda's built-in management interface admin-user: id: admin password: admin first-name: admin filter: create: All tasks # specify database type # database: # type: mysql # prohibit automatic deployment of bpmn files under resources auto-deployment-enabled: false # prohibit index from jumping to Camunda's own management interface Default true# webapp:# index-redirect-enabled: false

(3) start the project

Browser input: http://localhost:8050/family-admin (the tomcat-context path of the project) can view the relevant tasklist in the current workflow, etc.

The first time you start, the Mysql database automatically generates Camunda-related database tables

3. Generate database table description

ACT_RE_*:RE stands for saving repository. Tables with prefixes contain "static" information, such as process definitions and process resources (images, rules, and so on).

ACT_RU_*:RU stands for runtime. These are runtime tables that contain run-time data for process instances, user tasks, variables, jobs, and so on. The engine stores runtime data only during the execution of the process instance and deletes the record at the end of the process instance. This makes the runtime table small and fast.

ACT_ID_*:ID stands for identity. These tables contain identity information, such as users, groups, and so on.

ACT_HI_*:HI stands for history. These are tables that contain historical data, such as past process instances, variables, tasks, and so on.

ACT_GE_*:GE represents general general data and is used in various use cases

Thank you for reading this article carefully. I hope the article "how to integrate springboot into camunda" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report