日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

camunda「建议收藏」

發布時間:2023/12/19 综合教程 28 生活家
生活随笔 收集整理的這篇文章主要介紹了 camunda「建议收藏」 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Camunda BPM

用途: 流程管理、流程解決方案

支持語言: java ,nodejs

入門指導:1.https://docs.camunda.org/get-started/quick-start/ 看官網可以快速構建一個可用的工程;

     2.https://docs.camunda.org/manual/7.11/

     3.https://github.com/camunda/

     4.前端流程圖https://github.com/bpmn-io

1、Spring boot 快速構建一個 web工程,https://start.spring.io/

2、把生成的工程導入到idea 或者eclipse里面;

2.1 修改pom.xml文件的依賴如下:

<dependencies>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>


其中org.camunda.bpm.springboot這個依賴繼承了 camunda bpm和 spring boot starter
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>3.2.0</version>
</dependency>

2.2 修改spring boot 主入口程序,加入注解@EnableProcessApplication;
@SpringBootApplication
@EnableProcessApplication
public class CamundabpmApplication {
public static void main(String[] args) {
SpringApplication.run(CamundabpmApplication.class, args);
}

}
2.3 啟動程序;瀏覽器訪問localhost:8080
頁面如下:


3、官網下載
camunda bpm 畫流程圖的工具:Camunda Modeler
下載鏈接:https://camunda.com/download/modeler/?__hstc=12929896.ac03a515a45a7a10726115b3f850d7c2.1551935385801.1551935385801.1551935385801.1&__hssc=12929896.2.1551955519686&__hsfp=100025305

解壓后,直接打開exe文件,可以打開工作界面;

4、畫圖如下,注意第二個方框上有一個人

畫好后,點擊右側,查看id;這個id是流程圖的唯一標志id;

保存文件為taskflow.bpmn

5、在 main/resources下面加入 META-INF 文件,在META-INF 下加入processes.xml文件,內容為空;

6、在main/resources下面加入application.yaml; 內容如下:

camunda.bpm:
admin-user:
id: kermit
password: superSecret
firstName: Kermit
filter:
create: All tasks


說明:不加這個文件也可以啟動,但是訪問頁面時沒有登錄


7、啟動spring boot ;訪問localhost:8080
可以看到登錄界面,登錄
賬號
Kermit
密碼:
superSecret
可以進入系統
8、把文件 taskflow.bpmn 復制到項目中,放在 main/resources下面;
修改主程序入口:
由于taskflow.bpmn 的流程id為Process_1,所以這里填寫Process_1


9、重啟spring boot;
訪問 localhost:8080
登錄后可以查看到新增了一個task

總結

以上是生活随笔為你收集整理的camunda「建议收藏」的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。