AnsweredAssumed Answered

Not able to complete User task

Question asked by kasit on Apr 25, 2013
Latest reply on Apr 29, 2013 by trademak
I am trying to complete a user task for which fozzie is the assignee.
The code is :

TaskService taskService = processEngine.getTaskService();
List<Task> tasks = taskService.createTaskQuery().taskAssignee(user?.username)?.list();

But exception occurrs as follows :

rg.activiti.engine.ActivitiException: Provided id is null

   at org.activiti.engine.impl.UserQueryImpl.userId(


   at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(

   at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(

   at javax.script.AbstractScriptEngine.eval(

I tried
IdentityService identityService = processEngine.getIdentityService();
But it does not work.
I guess i am unable to create a session with user as fozzie.

Can you please help in this regard.