AnsweredAssumed Answered

Activity on spring, in table ACT_RU_JOB,  EXCEPTION_MSG_ couldn't instantiate class ...

Question asked by francescoaliberti on Sep 19, 2016
Latest reply on Sep 19, 2016 by francescoaliberti
I use activity in a spring project by including dependencies in pom.xml.
It works perfectly with all tags b ut I have a problem with the boundaryEvent.

I have this situation:

<receiveTask id="timer" name="timer"></receiveTask>
<boundaryEvent id="inizioSessioneTestTimer" attachedToRef="timer" cancelActivity="true">
<serviceTask id="timer2Class" name="attendi" activiti:class="com.prova.activititest.activiti.AttendiClassDelegate"></serviceTask>


<sequenceFlow id="flow14" sourceRef="inizioSessioneTestTimer" targetRef="timer2Class"></sequenceFlow>
<sequenceFlow id="flow15" sourceRef="timer2Class" targetRef="timer2"></sequenceFlow>

I set correctly the ${testStartDate} variable but when the task "timer2Class" is ready to start (flow15) i read in table ACT_RU_JOB in column  EXCEPTION_MSG_ this message: "couldn't instantiate class com.prova.activititest.activiti.AttendiClassDelegate".
The strange thing is that sometimes it works.
Can someone help me?

Thank you!

dr. Francesco Oreste Aliberti