Activiti 6中表达式中使用的未知方法

Unknown method used in expression in activiti 6

从 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)

您是否有自定义代码引用“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