宸ヤ綔娴佸紩鎿嶢ctiviti涓嶴pringBoot2鏁村悎--寮€婧愯蒋浠惰癁鐢?7

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了宸ヤ綔娴佸紩鎿嶢ctiviti涓嶴pringBoot2鏁村悎--寮€婧愯蒋浠惰癁鐢?7相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/exe' title='exe'>exe   attr   enc   bpm   base   绾у埆   鏍囪瘑   epo   link   

寮€婧怑RP鎶€鏈暣鍚堢郴鍒?-绗?7绡?/strong>

鐢ㄦ棩蹇楄褰曗€滃紑婧愯蒋浠垛€濈殑璇炵敓

銆愮偣浜槦鏍囥€?---绁堢浖鐫€涓€涓紦鍔?/p>

鍗氫富寮€婧愬湴鍧€锛?/p>

鐮佷簯锛?a href="https://gitee.com/redragon/redragon-erp" rel="nofollow">https://gitee.com/redragon/redragon-erp

GitHub锛?a href="https://github.com/redragon1985/redragon-erp" rel="nofollow">https://github.com/redragon1985/redragon-erp

鎶€鏈浘鐗? src=

涓轰粈涔堥€夋嫨Activiti

鏈€甯哥敤鐨勫伐浣滄祦寮曟搸Activiti鍜孞BPM锛屾垜褰撳垵鏄浣曢€夋嫨鐨勫憿锛熻鑰冭檻瀛︿範鎴愭湰銆佺幇鏈夊姛鑳姐€佸吋瀹规€с€佺増鏈ǔ瀹氭€с€佸彲鎵╁睍鎬х瓑绛夈€?/p>

锛?锛堿ctiviti鐨勫垱濮嬩汉Tom Baeyens鏄疛BPM涔嬪墠鐗堟湰鐨勬牳蹇冧汉鐗╋紝浠庤繖涓眰闈㈠嚭鍙慉ctiviti宸ヤ綔娴佸紩鎿庣殑鏄珯鍦ㄥ法浜虹殑鑲╄唨涓婃墦閫犵殑锛岃偗瀹氫細绉疮寰堝涔嬪墠鐨勭粡楠岋紝骞惰В鍐冲緢澶氫箣鍓嶉亣鍒扮殑闂銆?/p>

锛?锛堿ctiviti浣跨敤浜嗘垜浠洿甯哥敤鐨勬妧鏈紝渚嬪IOC銆丄OP銆丮yBatis銆乄ebService銆丷estful锛屾牳蹇冨紩鎿庡垯鏄熀浜庝箣鍓嶇増鏈殑PVM锛屾帴鍙h璁′紭闆咃紱鑰孞BPM瀹屽叏鑸嶅純浜嗕箣鍓嶇殑寮曟搸锛屽熀浜嶫Boss鐨凞rools Flow瀹炵幇锛屾帴鍙e眰闈㈢殑璁捐鍗佸垎娣蜂贡銆?/p>

锛?锛堿ctiviti鍋氫簡鏇村鐨勬墿灞曞姛鑳斤紝姣斿鐩稿瀹屾暣鐨勮〃鍗曡璁★紝娴佺▼鐨勭儹閮ㄧ讲銆佹洿鍔犱赴瀵岀殑IDE鎻掍欢銆?/p>

Acitviti妗嗘灦

涓嬮潰鏉ヨ璇碅ctiviti妗嗘灦鐨勬牳蹇冨姛鑳?/p>

1銆?涓帴鍙o細宸ヤ綔娴佸紩鎿庡彲浠ユ兂璞℃垚涓€涓湇鍔$锛岄儴缃插ソ浠ュ悗锛屾槸闇€瑕佸鎴风鐨勮皟鐢ㄦ墠鑳藉疄鐜板宸ヤ綔娴佺▼鐨勬搷浣溿€?/p>

鎶€鏈浘鐗? src=

 

  • RepositoryService锛氭彁渚涗竴绯诲垪绠$悊娴佺▼閮ㄧ讲鍜屾祦绋嬪畾涔夌殑API銆?/li>
  • RuntimeService锛氬湪娴佺▼杩愯鏃跺娴佺▼瀹炰緥杩涜绠$悊涓庢帶鍒躲€?/li>
  • TaskService锛氬娴佺▼浠诲姟杩涜绠$悊锛屼緥濡備换鍔℃彁閱掋€佷换鍔″畬鎴愬拰鍒涘缓浠诲姟绛夈€?/li>
  • IdentityService锛氭彁渚涘娴佺▼瑙掕壊鏁版嵁杩涜绠$悊鐨凙PI锛岃繖浜涜鑹叉暟鎹寘鎷敤鎴风粍銆佺敤鎴风瓑銆?/li>
  • ManagementService锛氭彁渚涘娴佺▼寮曟搸杩涜绠$悊鍜岀淮鎶ょ殑鏈嶅姟銆?/li>
  • HistoryService锛氬娴佺▼鐨勫巻鍙叉暟鎹繘琛屾搷浣滐紝鍖呮嫭鏌ヨ銆佸垹闄よ繖浜涘巻鍙叉暟鎹€?/li>
  • FormService锛氳〃鍗曟湇鍔°€?/li>

2銆?8寮犺〃锛氳〃璁板綍浜嗙敤鎴蜂俊鎭€佹祦绋嬩俊鎭€佸巻鍙蹭俊鎭瓑鍚勭鏁版嵁

鎶€鏈浘鐗? src=
璧勬簮搴撴祦绋嬭鍒欒〃 
act_re_deployment 閮ㄧ讲淇℃伅琛?
act_re_model 娴佺▼璁捐妯″瀷閮ㄧ讲琛?
act_re_procdef 娴佺▼瀹氫箟鏁版嵁琛?
杩愯鏃舵暟鎹簱琛?
act_ru_execution 杩愯鏃舵祦绋嬫墽琛屽疄渚嬭〃 
act_ru_identitylink 杩愯鏃舵祦绋嬩汉鍛樿〃锛屼富瑕佸瓨鍌ㄤ换鍔¤妭鐐逛笌鍙備笌鑰呯殑鐩稿叧淇℃伅 
act_ru_task 杩愯鏃朵换鍔¤妭鐐硅〃 
act_ru_variable 杩愯鏃舵祦绋嬪彉閲忔暟鎹〃 
鍘嗗彶鏁版嵁搴撹〃 
act_hi_actinst 鍘嗗彶鑺傜偣琛?
act_hi_attachment 鍘嗗彶闄勪欢琛?
act_ih_comment 鍘嗗彶鎰忚琛?
act_hi_identitylink 鍘嗗彶娴佺▼浜哄憳琛?
act_hi_detail 鍘嗗彶璇︽儏琛紝鎻愪緵鍘嗗彶鍙橀噺鐨勬煡璇?
act_hi_procinst 鍘嗗彶娴佺▼瀹炰緥琛?
act_hi_taskinst 鍘嗗彶浠诲姟瀹炰緥琛?
act_hi_varinst 鍘嗗彶鍙橀噺琛?
缁勭粐鏈烘瀯琛?
act_id_group 鐢ㄦ埛缁勪俊鎭〃 
act_id_info 鐢ㄦ埛鎵╁睍淇℃伅琛?
act_id_membership 鐢ㄦ埛涓庣敤鎴风粍瀵瑰簲淇℃伅琛?
act_id_user 鐢ㄦ埛淇℃伅琛?
閫氱敤鏁版嵁琛?
act_ge_bytearray 浜岃繘鍒舵暟鎹〃 
act_ge_property 灞炴€ф暟鎹〃瀛樺偍鏁翠釜娴佺▼寮曟搸绾у埆鐨勬暟鎹?/span>

3銆丅PMN涓氬姟娴佺▼妯″瀷锛氬彲浠ラ€氳繃娴佺▼鍥剧殑鏂瑰紡閰嶇疆涓氬姟娴佺▼銆佸垎鏀€佹潯浠剁瓑锛屾渶缁堢敓鎴愬紩鎿庡彲璇嗗埆鐨剎ml鏂囦欢

鎶€鏈浘鐗? src=

 

BPMN2.0鏄竴濂楀缓绔嬪伐浣滄祦绋嬫ā鍨嬬殑鏍囧噯銆備笅闈㈣鍑犱釜閲嶇偣鐨勫厓绱犲拰绗﹀彿銆?/p>

锛?锛変簨浠讹細甯哥敤鐨勬槸寮€濮嬩簨浠躲€佺粨鏉熶簨浠讹紝鐢ㄤ簬鏍囪瘑娴佺▼鐨勫紑濮嬪拰缁撴潫

锛?锛夋椿鍔細甯哥敤鐨勬槸浠诲姟锛岀敤浜庢弿杩版祦绋嬭妭鐐逛腑鐨勪竴椤瑰伐浣?/p>

锛?锛夌綉鍏筹細甯哥敤鍖呮嫭骞惰缃戝叧銆佹帓浠栫綉鍏筹紝骞惰鍗冲悓鏃舵祦杞涓垎鏀紝鎺掍粬鍗冲彧娴佽浆鍏朵腑涓€涓垎鏀?/p>

涓嶴pringBoot鏁村悎

锛?锛変慨鏀筆OM娣诲姞渚濊禆

<dependency>
    <groupId>org.activiti</groupId>
    <artifactId>activiti-spring-boot-starter-basic</artifactId>
    <version>6.0.0</version>
</dependency>

锛?锛夊皢BPMN2.0瑙勮寖鐨刋ML鏂囦欢鎷疯礉鍒伴」鐩洰褰曚笅锛?resources/processes

锛?锛夋瀯寤鸿〃缁撴瀯锛屼慨鏀箂pringBoot涓婚厤缃枃浠禷pplication.properties

spring.activiti.database-schema-update=true

璁剧疆鎴恡rue浠ュ悗锛屼細鍦ㄩ」鐩惎鍔ㄧ殑鏃跺€欒嚜鍔ㄥ垱寤篈ctiviti琛ㄧ粨鏋勶紝棣栨鏁版嵁琛ㄥ缓濂藉悗寤鸿鏀规垚false

锛?锛堿ctiviti鐩稿叧閰嶇疆锛屼慨鏀箂pringBoot涓婚厤缃枃浠禷pplication.properties

#淇濆瓨鍘嗗彶鏁版嵁寰楃骇鍒紝鍒嗕负none銆乤ctivity銆乤udit锛堥粯璁わ級銆乫ull
spring.activiti.history-level=full
#鏄惁鏍¢獙娴佺▼鏂囦欢锛岄粯璁ゆ牎楠宺esources涓嬬殑processes鏂囦欢澶归噷鐨勬祦绋嬫枃浠?spring.activiti.check-process-definitions=false
#淇敼榛樿鐨勬祦绋嬫枃浠跺瓨鍌ㄤ綅缃?spring.activiti.process-definition-location-prefix=classpath:/processes/

锛?锛夐€氳繃娉ㄨВ鏂瑰紡璁块棶甯哥敤鎺ュ彛

@Autowired
private RuntimeService runtimeService;
 @Autowired
private TaskService taskService;
 @Autowired
private IdentityService identityService;
 @Autowired
private RepositoryService repositoryService;
 @Autowired
private ProcessEngine processEngine;
 @Autowired
private HistoryService historyService;

鍚庤

濡傛灉鎮ㄥ鎴戜滑姝e湪鍋氱殑寮€婧愯蒋浠舵劅鍏磋叮锛屾杩庡悇绉嶅舰寮忕殑鍚堜綔锛屼綔涓鸿础鐚€呮垨鐩存帴鍔犲叆鎴戜滑锛佽鎴戜滑涓€璧锋墦閫犱竴濂楀紑婧愮殑浼佷笟绾т俊鎭寲瑙e喅鏂规銆?/p>

 

銆愮爜浜戙€戞垨銆怗itHub銆戞悳绱⑩€滆丹榫橢RP鈥濈偣鍑绘槦鏍囷紝浜﹀彲鍔犲叆鎴戜滑锛?nbsp;璁╂垜浠粠灏忓紑濮嬪仛鐐逛紵澶х殑浜嬶紒涓庡紑鍙戣€呬氦娴?kzca2000

以上是关于宸ヤ綔娴佸紩鎿嶢ctiviti涓嶴pringBoot2鏁村悎--寮€婧愯蒋浠惰癁鐢?7的主要内容,如果未能解决你的问题,请参考以下文章

楂橀闈㈣瘯棰?--鎸佺画鏇存柊

java 浼佷笟闂ㄦ埛缃戠珯 婧愮爜 鑷€傚簲鍝嶅簲寮?freemarker 闈欐€佸紩鎿?html5 SSM

閫昏緫鎬濈淮椹卞姩 (娴嬭瘯) 宸ヤ綔绠$悊

linux甯哥敤鍛戒护--宸ヤ綔璁板綍20201126