AnsweredAssumed Answered

Task listener and expression

Question asked by nik10.mah on May 8, 2014
Latest reply on May 9, 2014 by c-shark
Hi,

I am using a task listener and instead of using a class attribute i have used expression attribute. but it given me exception:

org.activiti.engine.ActivitiException:Exception while invoking TaskListener: Unknown property used in expression: ${messageProcess.chooseAction(task)}

where messageProcess is my spring bean and choose action is method in it. I have added @Component("messageProcess") spring annotation so that my listener gets loaded into spring context. But when i start the process it gave me above exception.

I have attached full stacktrace, my bpmn file and MessageProcessListener.java.

Please let me know if there are any issue in my code.

Thanks

Outcomes