cancel
Showing results for 
Search instead for 
Did you mean: 

activiti-cdi StartTask() don't work

idireneyoucef
Confirmed Champ
Confirmed Champ

Hi, businessProcess.StratTask(taskId, true) dont work

i try to debug it and i found

"Task currentTask = associationManager.getTask();" on the function StartTask / BusinessProcess class is null

error on the log

Avertissement: #{businessProcess.completeTask(true)}: org.activiti.cdi.ActivitiCdiException: No task associated. Call businessProcess.startTask() first. 

help please

thanx.

1 ACCEPTED ANSWER

thanx for  this link but it was me,

so to configure i used this two  dependencies 

activiti-engine

and activiti-cdi

i followd the steps of the activiti users guide, on this link you will find the configuration that i used

 http://www.bpm-guide.de/2011/09/17/build-your-own-activiti-task-explorer-with-cdi-and-jsf-2/

my problem, after starting the process and  accesing to the first user task and trying to complet the task this error appears( org.activiti.cdi.ActivitiCdiException: No task associated. Call businessProcess.startTask() first. )

i debugged it and found the id of the current task  was NULL  

thanx

View answer in original post

3 REPLIES 3

ryandawson
Elite Collaborator
Elite Collaborator

Perhaps you could have a look at this forum question if you haven't already - No task associated. Call businessProcess.startTask() ? Could you provide code snippets like the snippets on that question? A bit more background on your setup would also help.

thanx for  this link but it was me,

so to configure i used this two  dependencies 

activiti-engine

and activiti-cdi

i followd the steps of the activiti users guide, on this link you will find the configuration that i used

 http://www.bpm-guide.de/2011/09/17/build-your-own-activiti-task-explorer-with-cdi-and-jsf-2/

my problem, after starting the process and  accesing to the first user task and trying to complet the task this error appears( org.activiti.cdi.ActivitiCdiException: No task associated. Call businessProcess.startTask() first. )

i debugged it and found the id of the current task  was NULL  

thanx

hello Ryan,

it was me, and it's the same error if  you can help me i thnik the listener when i m putting businessProcess.StratTask(taskId, true) don't work 

thanx