解决工作流:org.activiti.engine.ActivitiException: Unknown property used in expression: ${AAAAA}

匿名 (未验证) 提交于 2019-12-02 22:56:40
版权声明:所有原创,转载请在开头注明出处 https://blog.csdn.net/SELECT_BIN/article/details/82843333

工作流流向有一个以上的流的方向的时候,必须指定流向,默认时用EL表达式表示,比如一个节点既可以流到A5也可以流到A6,当业务需要流向A5 的时候须指定流转条件${A5}

一条流程有多个流转条件的时候,可以写简单的逻辑:

${A30012==true || A40014==true || A50017==true}

当然在逻辑代码里要指定流向的那个节点为true,其他为false,而且这个前面的节点是要切实存在的

 java.lang.RuntimeException: org.activiti.engine.ActivitiException: Unknown property used in expression: ${AAAAA} org.activiti.engine.ActivitiException: Unknown property used in expression: ${AAAAA} 	at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:53) 	at org.activiti.engine.impl.el.UelExpressionCondition.evaluate(UelExpressionCondition.java:53) 	at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:128) 	at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66) 	at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44) 	at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47) 	at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:225) 	at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:411) 	at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203) 	at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52) 	at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24) 	at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59) 	at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24) 	at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57) 	at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47) 	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) 	at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45) 	at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31) 	at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40) 	at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35) 	at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:182) 	at com.ai.rai.group.activiti.service.ActivitiHelper.commitProcess(ActivitiHelper.java:131) 	at com.ai.rai.group.activiti.api.impl.ActivitiApi.commitProcess(ActivitiApi.java:60) 	at com.alibaba.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) 	at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:45) 	at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:71) 	at com.alibaba.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:48) 	at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:52) 	at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:61) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:74) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:41) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:77) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:71) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:37) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:37) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:102) 	at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) 	at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168) 	at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50) 	at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 	at java.lang.Thread.run(Thread.java:748) Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'AAAAA' 	at org.activiti.engine.impl.juel.AstIdentifier.eval(AstIdentifier.java:83) 	at org.activiti.engine.impl.juel.AstEval.eval(AstEval.java:50) 	at org.activiti.engine.impl.juel.AstNode.getValue(AstNode.java:26) 	at org.activiti.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114) 	at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33) 	at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37) 	at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25) 	at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:50) 	... 51 more  	at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:105) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:74) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:41) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:77) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:71) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:37) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:37) 	at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) 	at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:102) 	at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) 	at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168) 	at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50) 	at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 	at java.lang.Thread.run(Thread.java:748)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!