AnsweredAssumed Answered

Not able to complete user task

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

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

But exception occurrs as follows :

org.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.