flowable6.4.1实现REST任务

根据官网报错:

org.flowable.common.engine.api.FlowableException: Could not find org.flowable.http.HttpActivityBehavior: 
	at org.flowable.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory.createHttpActivityBehavior
Caused by: java.lang.ClassNotFoundException: org.flowable.http.bpmn.impl.HttpActivityBehaviorImpl
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

解决:

调用REST报错:

org.flowable.common.engine.api.FlowableException: Unknown property used in expression: ${requestTimeout}
	at org.flowable.common.engine.impl.el.JuelExpression.getValue(JuelExpression.java:50)
Caused by: org.flowable.common.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'requestTimeout'
	at org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstIdentifier.eval(AstIdentifier.java:97)

解决:

  • requestTimeout需作为入参传入。
Caused by: org.apache.http.impl.execchain.RequestAbortedException: Request aborted
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:180)

解决:

  • requestTimeout设置了1,1毫秒太短,requestTimeout改为1000.

http://flowable.org改为http://localhost:8830/cbss报错:

org.springframework.web.HttpMediaTypeNotAcceptableException: Could not parse 'Accept' header [text/html Cache-Control:  no-cache]: Invalid mime type "text/html Cache-Control:  no-cache": Invalid token character ' ' in token "html Cache-Control:  no-cache"
	at org.springframework.web.accept.HeaderContentNegotiationStrategy.resolveMediaTypes(HeaderContentNegotiationStrategy.java:59)
  • Accept: text/html Cache-Control: no-cache
  • Accept: application/json Cache-Control: no-cache text/html改application/json还是错
org.springframework.web.HttpMediaTypeNotAcceptableException: Could not parse 'Accept' header [application/json Cache-Control:  no-cache]: 
Invalid mime type "application/json Cache-Control:  no-cache": Invalid token character ' ' in token "json Cache-Control:  no-cache"

解决:

  • Cache-Control: no-cache删掉。

转载于:https://my.oschina.net/u/2464371/blog/3031153

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值