AnsweredAssumed Answered

Unable to retrieve tasks using Rest api

Question asked by ganeshr on Jan 9, 2013
Latest reply on Jan 9, 2013 by trademak
I have been trying to retrieve tasks using rest api, using uri - http://localhost:9090/activiti-rest/service/tasks?[assignee={userid}|candidate={userid}|candidate-group={groupid}]"
  For that candidate group tasks are available but still it is giving empty data. When checked in tomcat cosole it has the folowing errors,

Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'taskPayloadData'
        at org.activiti.engine.impl.juel.AstIdentifier.eval(
        at org.activiti.engine.impl.juel.AstProperty.eval(
        at org.activiti.engine.impl.juel.AstProperty.eval(
        at org.activiti.engine.impl.juel.AstEval.eval(
        at org.activiti.engine.impl.juel.AstNode.getValue(
        at org.activiti.engine.impl.juel.TreeValueExpression.getValue(
        at org.activiti.engine.impl.delegate.ExpressionGetInvocation.invoke(
        at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(
        at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(
        at org.activiti.engine.impl.el.JuelExpression.getValue(

I have assigned task fields in this way.
    <userTask id="gnHumanTask" name="Erm HumanTask" activiti:candidateGroups="BRMManager">
        <activiti:formProperty id="Id" name=" Id" type="string" expression="#{}" writable="true"></activiti:formProperty>

Using client program I have created a process and  process is created with user task.
  Here is sample program for invoking process
   PayloadRequest processPaylaod = new PayloadRequest ();
  Map<String, Object> payloadRequest = new HashMap<String, Object>();
         payloadRequest.put("taskPayloadData", processPaylaod);
         ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(

  Using the above java code, able to invoke instance and task is getting created and able to see the tasks in explorer.

But when trying to retrieve tasks using rest api getting the above exception. how to resolve the above issue?