Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flowable.ui.common.service.idm.RemoteIdmService]: Factory method 'remoteIdmService' threw exception; nested exception is java.lang.IllegalArgumentException: `flowable.common.app.idm-url` must be set at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ... 25 common frames omitted Caused by: java.lang.IllegalArgumentException: `flowable.common.app.idm-url` must be set at org.springframework.util.Assert.hasText(Assert.java:289) at org.flowable.ui.common.properties.FlowableCommonAppProperties.determineIdmAppUrl(FlowableCommonAppProperties.java:150) at org.flowable.ui.common.service.idm.RemoteIdmServiceImpl.<init>(RemoteIdmServiceImpl.java:60) at org.flowable.ui.common.security.FlowableUiSecurityAutoConfiguration$RemoteIdmConfiguration.remoteIdmService(FlowableUiSecurityAutoConfiguration.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 26 common frames omitted
報錯提示:`flowable.common.app.idm-url` must be set
@Autowired protected ObjectMapper objectMapper; protected String url; protected String adminUser; protected String adminPassword; public RemoteIdmServiceImpl(FlowableCommonAppProperties properties) { url = properties.determineIdmAppUrl(); adminUser = properties.getIdmAdmin().getUser(); Assert.hasText(adminUser, "Admin user must not be empty"); adminPassword = properties.getIdmAdmin().getPassword(); Assert.hasText(adminPassword, "Admin user password should not be empty"); }
這個是由於flowable調用自己的用戶權限導致的,如果把flowable集成自己的框架里面,就不需要用它自帶的用戶體現和權限了
出現這個問題,需要重寫調用這個權限的最開始的那個類:FlowableUiSecurityAutoConfiguration
在自己項目,相同包名路徑下,建個相同的類
package org.flowable.ui.common.security; import org.flowable.spring.boot.FlowableSecurityAutoConfiguration; import org.flowable.spring.boot.idm.IdmEngineServicesAutoConfiguration; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration; import org.springframework.context.annotation.Configuration; /** * 說明:重構FlowableUiSecurity自動配置 * From:www.fhadmin.org */ @Configuration(proxyBeanMethods = false) @AutoConfigureAfter({ IdmEngineServicesAutoConfiguration.class, }) @AutoConfigureBefore({ FlowableSecurityAutoConfiguration.class, OAuth2ClientAutoConfiguration.class, }) public class FlowableUiSecurityAutoConfiguration {}
工作流模塊-------------------------------
1.模型管理 :web在線流程設計器、導入導出xml、復制流程、部署流程
2.流程管理 :導入導出流程資源文件、查看流程圖、根據流程實例反射出流程模型、激活掛起
3.運行中流程:查看流程信息、當前任務節點、當前流程圖、作廢暫停流程、指派待辦人、自由跳轉
4.歷史的流程:查看流程信息、流程用時、流程狀態、查看任務發起人信息
5.待辦任務 :查看本人個人任務以及本角色下的任務、辦理、駁回、作廢、指派一下代理人
6.已辦任務 :查看自己辦理過的任務以及流程信息、流程圖、流程狀態(作廢 駁回 正常完成)
辦理任務時候可以選擇用戶進行抄送,就是給被抄送人發送站內信通知當前審批意見以及備注信息
注:當辦理完當前任務時,下一任務待辦人會即時通訊收到新任務消息提醒,當作廢和完結任務時,
任務發起人會收到站內信消息通知