2021年5月31日星期一

`flowable.common.app.idm-url` must be set (flowable 6.6.0)

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 omittedCaused 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在线流程设计器、导入导出

2.流程管理 :导入导出流程资源文件、查看流程图、根据流程实例反射出流程模型、激活挂起

3.运行中流程:查看流程信息、当前任务节点、当前流程图、作废暂停流程、指派待办人、自由跳转

4.历史的流程:查看流程信息、流程用时、流程状态、查看任务发起人信息

5.待办任务 :查看本人个人任务以及本角色下的任务、办理、驳回、作废、指派一下代理人

6.已办任务 :查看自己办理过的任务以及流程信息、流程图、流程状态(作废 驳回 正常完成)

办理任务时候可以选择用户进行抄送,就是给被抄送人发送站内信通知当前审批意见以及备注信息

注:当办理完当前任务时,下一任务待办人会即时通讯收到新任务消息提醒,当作废和完结任务时,

任务发起人会收到站内信消息通知









原文转载:http://www.shaoqun.com/a/773050.html

跨境电商:https://www.ikjzd.com/

洋老板:https://www.ikjzd.com/w/2779

cicpa考试:https://www.ikjzd.com/w/1375


Causedby:org.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.flowable.ui.common.service.idm.RemoteIdmService]:Factorymethod'remoteIdmService'threwexception;nestedexcep
卖家精灵:https://www.ikjzd.com/w/532
菜鸟网:https://www.ikjzd.com/w/1547
淘粉吧怎么返利:https://www.ikjzd.com/w/1725
小三被捉奸 让我老公学狗叫:http://www.30bags.com/m/a/253114.html
贝佐斯7月15日将卸任亚马逊CEO!互联网大佬为何都想"退休"?:https://www.ikjzd.com/articles/145225
亚马逊prime day来临前,卖家的日子有多难?:https://www.ikjzd.com/articles/145224
拉美跨境支付平台DLocal拟美股上市,估值达50亿美元:https://www.ikjzd.com/articles/145222
口述:孩子夭折 丈夫泡妞麻痹自己孩子丈夫情绪:http://lady.shaoqun.com/m/a/33500.html
我主动奉献处女身把男友吓晕了:http://lady.shaoqun.com/a/270754.html

没有评论:

发表评论