activiti6中表达式中使用的未知方法

t30tvxxf  于 2021-07-16  发布在  Java
关注(0)|答案(1)|浏览(516)

从activiti 5迁移到6后,初始化应用程序时出现以下错误:

Caused by: org.activiti5.engine.ActivitiException: Unknown method used in expression: #{elCorService.makePlat(corWorkflowService.buildContext(execution))}
    at org.activiti5.engine.impl.el.JuelExpression.getValue(JuelExpression.java:56)
    at org.activiti5.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior.execute(ServiceTaskExpressionActivityBehavior.java:71)
    ... 199 more

... Caused by: javax.el.MethodNotFoundException: Method not found: class com.sun.proxy.$Proxy360.buildContext(org.activiti.engine.impl.persistence.entity.ExecutionEntityImpl)
dnph8jn4

dnph8jn41#

有没有可能您的自定义代码引用的是“org.activiti.engine.impl.persistence.entity.executionentity”而不是“org.activiti.engine.impl.persistence.entity.executionentityimpl”?特别是“corworkflowservice.buildcontext()”。
这是5和6之间的记录变化:https://www.activiti.org/migration

5.7. EntityManagers

In Activiti version 5, all EntityManager (responsible for persistence but also certain 
logic) classes did not have an interface. In version 6, all EntityManager classes have 
been renamed to have Impl as suffix and an interface without the suffix. This 
effectively means that the version 5 EntityManager class name is now the name of the 
corresponding interface.

All EntityManager interfaces extend the generic 
org.activiti.engine.impl.persistence.entity.EntityManager interface. All 
implementation classes extend a generic AbstractEntityManager interface.

Also, for consistency: * The UserIdentityManager interface has been renamed to 
UserEntityManager * The GroupIdentityManager interface has been renamed to 
GroupEntityManager

相关问题