日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区

您的位置:首頁技術文章
文章詳情頁

springboot2.5.2與 flowable6.6.0整合流程引擎應用分析

瀏覽:13日期:2023-02-22 14:47:20

1.pom

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.5.2</version><relativePath /> <!-- lookup parent from repository --> </parent> <properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding><java.version>1.8</java.version><flowable.version>6.6.0</flowable.version> </properties> <!--flowable工作流依賴--><dependency> <groupId>org.flowable</groupId> <artifactId>flowable-spring-boot-starter</artifactId> <version>${flowable.version}</version></dependency> <!-- https://mvnrepository.com/artifact/org.flowable/flowable-json-converter --><dependency> <groupId>org.flowable</groupId> <artifactId>flowable-json-converter</artifactId> <version>${flowable.version}</version></dependency><!-- app 依賴 包含 rest,logic,conf --><dependency> <groupId>org.flowable</groupId> <artifactId>flowable-ui-modeler-rest</artifactId> <version>${flowable.version}</version></dependency><dependency> <groupId>org.flowable</groupId> <artifactId>flowable-ui-modeler-logic</artifactId> <version>${flowable.version}</version> <exclusions><exclusion> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId></exclusion> </exclusions></dependency><dependency> <groupId>org.flowable</groupId> <artifactId>flowable-ui-modeler-conf</artifactId> <version>${flowable.version}</version></dependency>

2.FlowableConfig配置類

package org.fh.config;import org.flowable.spring.SpringProcessEngineConfiguration;import org.flowable.spring.boot.EngineConfigurationConfigurer;import org.springframework.context.annotation.Configuration;import org.springframework.stereotype.Controller;/** * 說明:Flowable配置 * 作者:FH Admin * from:fhadmin.cn */@Controller@Configurationpublic class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {@Override public void configure(SpringProcessEngineConfiguration engineConfiguration) {engineConfiguration.setActivityFontName('宋體');engineConfiguration.setLabelFontName('宋體');engineConfiguration.setAnnotationFontName('宋體'); } }3.重寫 SecurityUtils 重構流程編輯器獲取用戶信息package org.flowable.ui.common.security;import org.fh.util.Jurisdiction;import org.flowable.common.engine.api.FlowableIllegalStateException;import org.flowable.idm.api.User;import org.flowable.ui.common.model.RemoteUser;import org.springframework.security.core.Authentication;import org.springframework.security.core.context.SecurityContext;import org.springframework.security.core.context.SecurityContextHolder;import java.util.ArrayList;import java.util.List;/** * 說明:重構流程編輯器獲取用戶信息 * 作者:FH Admin * from:fhadmin.cn */public class SecurityUtils { private static User assumeUser;private static SecurityScopeProvider securityScopeProvider = new FlowableSecurityScopeProvider(); private SecurityUtils() { } /** * Get the login of the current user. */ public static String getCurrentUserId() {User user = getCurrentUserObject();if (user != null) { return user.getId();}return null; } /** * @return the {@link User} object associated with the current logged in user. */ public static User getCurrentUserObject() {if (assumeUser != null) { return assumeUser;}RemoteUser user = new RemoteUser();user.setId(Jurisdiction.getUsername());user.setDisplayName(Jurisdiction.getName());user.setFirstName(Jurisdiction.getName());user.setLastName(Jurisdiction.getName());user.setEmail('admin@flowable.com');user.setPassword('123456');List<String> pris = new ArrayList<>();pris.add(DefaultPrivileges.ACCESS_MODELER);pris.add(DefaultPrivileges.ACCESS_IDM);pris.add(DefaultPrivileges.ACCESS_ADMIN);pris.add(DefaultPrivileges.ACCESS_TASK);pris.add(DefaultPrivileges.ACCESS_REST_API);user.setPrivileges(pris);return user; }public static void setSecurityScopeProvider(SecurityScopeProvider securityScopeProvider) {SecurityUtils.securityScopeProvider = securityScopeProvider; } public static SecurityScope getCurrentSecurityScope() {SecurityContext securityContext = SecurityContextHolder.getContext();if (securityContext != null && securityContext.getAuthentication() != null) { return getSecurityScope(securityContext.getAuthentication());}return null; } public static SecurityScope getSecurityScope(Authentication authentication) {return securityScopeProvider.getSecurityScope(authentication); } public static SecurityScope getAuthenticatedSecurityScope() {SecurityScope currentSecurityScope = getCurrentSecurityScope();if (currentSecurityScope != null) { return currentSecurityScope;}throw new FlowableIllegalStateException('User is not authenticated'); } public static void assumeUser(User user) {assumeUser = user; } public static void clearAssumeUser() {assumeUser = null; }}

工作流模塊----------------www.fhadmin.cn---------------

1.模型管理:web在線流程設計器、導入導出xml、復制流程、部署流程

2.流程管理:導入導出流程資源文件、查看流程圖、根據流程實例反射出流程模型、激活掛起

3.運行中流程:查看流程信息、當前任務節點、當前流程圖、作廢暫停流程、指派待辦人、自由跳轉

4.歷史的流程:查看流程信息、流程用時、流程狀態、查看任務發起人信息

5.待辦任務:查看本人個人任務以及本角色下的任務、辦理、駁回、作廢、指派一下代理人

6.已辦任務:查看自己辦理過的任務以及流程信息、流程圖、流程狀態(作廢 駁回 正常完成)

辦理任務時候可以選擇用戶進行抄送,就是給被抄送人發送站內信通知當前審批意見以及備注信息

注:當辦理完當前任務時,下一任務待辦人會即時通訊收到新任務消息提醒,當作廢和完結任務時,任務發起人會收到站內信消息通知

到此這篇關于springboot2.5.2與 flowable6.6.0整合流程引擎應用分析的文章就介紹到這了,更多相關springboot整合 flowable內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!

標簽: Spring
相關文章:
日本不卡不码高清免费观看,久久国产精品久久w女人spa,黄色aa久久,三上悠亚国产精品一区二区三区
日韩一级不卡| 91精品尤物| 日韩精品国产欧美| 在线观看亚洲精品福利片| 日韩毛片在线| 成人在线网站| 亚洲在线久久| 国产欧美88| 久久精品一本| 久久精品免视看国产成人| 精品国产精品久久一区免费式| 欧美自拍一区| 日韩欧美二区| 黄色成人精品网站| 青青草国产成人99久久| 亚洲v天堂v手机在线| 日韩一区二区三免费高清在线观看| 日韩高清成人在线| 中文一区一区三区高中清不卡免费| 91日韩在线| 久热精品在线| 中文字幕在线看片| 亚洲大全视频| 免费av一区| 久久亚洲图片| 欧美在线不卡| 91久久在线| 六月婷婷综合| 久久国产精品久久w女人spa| 久久国产欧美日韩精品| 日韩精品一卡| 久久99久久久精品欧美| 麻豆久久久久久| 亚洲专区欧美专区| 色爱av综合网| 久久男人av| 国产免费av国片精品草莓男男 | 国产精品久久久久久久久久齐齐| 国产成年精品| 久久精品国产在热久久| 亚洲精品美女| 蜜桃av一区二区在线观看| 久久久久久久久99精品大| 亚洲精品成人一区| 蜜桃视频一区二区三区 | 蜜臀91精品国产高清在线观看| 国产精品久久久久av蜜臀| 亚洲高清影视| 亚洲免费在线| 在线观看视频免费一区二区三区| 99成人超碰| 蜜桃精品在线| 久久婷婷丁香| 日韩精品一二三| 亚洲精品少妇| 国产日韩视频在线| 天堂av一区| 久久精品国产一区二区| 国产精品成人国产| 国产一区二区久久久久| 日韩激情一区| 在线视频精品| 日韩一区精品字幕| 欧美亚洲tv| 美女高潮久久久| 日韩大片在线播放| 午夜久久黄色| 日韩激情一二三区| 麻豆国产精品一区二区三区| 亚洲播播91| 美美哒免费高清在线观看视频一区二区| 亚洲综合福利| 亚洲精品免费观看| 成人亚洲一区| 视频一区日韩| 91亚洲一区| 午夜在线视频一区二区区别 | 国产一区精品福利| 视频一区中文字幕精品| 久久精品国产福利| 亚洲免费精品| 高清久久精品| 欧美一区二区三区久久精品| 亚洲精品成人图区| 欧美一区激情| 欧美成人高清| 日韩大片在线| 精品一区不卡| 国产激情综合| 日本精品久久| 日韩一区二区三区在线免费观看| 日产欧产美韩系列久久99| 午夜国产精品视频免费体验区| 欧美日韩一区二区三区四区在线观看| 国产一区二区三区四区五区| 中文字幕免费一区二区| 欧洲毛片在线视频免费观看| 精品国产日韩欧美精品国产欧美日韩一区二区三区 | 超碰在线99| 免费在线亚洲欧美| 欧美日本二区| 日韩精彩视频在线观看| 日韩精品亚洲专区在线观看| 久久亚洲欧洲| 在线看片一区| 婷婷五月色综合香五月| 亚洲我射av| 四虎成人av| 中文字幕视频精品一区二区三区| 国产伦精品一区二区三区千人斩| 成人小电影网站| 亚洲a级精品| 精品成人免费一区二区在线播放| 免费看日韩精品| 国产资源在线观看入口av| 国产模特精品视频久久久久| 免费亚洲婷婷| 亚洲一区av| 狠狠爱www人成狠狠爱综合网| 久久国产日韩欧美精品| 日韩中文字幕亚洲一区二区va在线 | 综合激情网...| 亚洲天堂一区二区| 国产欧美日韩精品高清二区综合区| 日韩国产综合| 老牛国内精品亚洲成av人片 | a国产在线视频| 亚洲一级大片| av一区二区高清| 久久青草久久| 亚洲成人国产| 欧美男人天堂| 日韩专区精品| av中文字幕在线观看第一页| 国产精品亚洲一区二区在线观看| 国产亚洲一区在线| 色偷偷偷在线视频播放| 精品中文字幕一区二区三区| 中文字幕一区二区三区四区久久| 欧美 日韩 国产精品免费观看| 精品美女在线视频| 欧美一级全黄| 国产伦理一区| 日韩精品亚洲专区| 综合五月婷婷| 日本99精品| 国产精品羞羞答答在线观看| 日本国产一区| 国产精品一线天粉嫩av| 国产日本精品| 精品无人区麻豆乱码久久久| 老鸭窝一区二区久久精品| 国产精品第一| 日韩在线观看一区| 丝袜美腿亚洲色图| 国产精品一区免费在线| 日本精品一区二区三区在线观看视频| 免费在线观看精品| 国产精品美女午夜爽爽| 精品美女视频| 九一成人免费视频| 亚洲精品第一| 国产高潮在线| 亚洲黄色在线| 国产伦理久久久久久妇女| 麻豆视频在线观看免费网站黄| 亚洲不卡av不卡一区二区| 亚洲丝袜美腿一区| 国产精品成人a在线观看| 亚洲欧美日韩专区| 国产成人精品三级高清久久91 | 日本韩国欧美超级黄在线观看| 午夜日韩av| 日韩综合在线| 精品精品久久| 国产日韩三级| 亚洲我射av| 欧美黄色精品| 国产日产精品一区二区三区四区的观看方式| 国产精品v日韩精品v欧美精品网站 | 青草久久视频| 久久午夜影视| 国产二区精品| 色88888久久久久久影院| 国产亚洲一区| 日本欧美一区二区在线观看| 亚洲在线电影| 91精品国产成人观看| 日韩免费视频| 日韩一区欧美| 蜜桃av.网站在线观看| 国内自拍视频一区二区三区| 亚洲麻豆一区| 免费观看在线综合| 久久国产高清| 久久午夜精品一区二区| 亚洲综合精品四区| 伊人久久婷婷| 在线国产精品一区| 日本亚洲不卡|