AnsweredAssumed Answered

REST Task Query not working

Question asked by thysmichels on Jul 10, 2014
Latest reply on Aug 17, 2015 by alexz
I am trying to query task variables using the REST but no luck:

When I do:
http://sjcua01-dev.tlcinternal.com:8080/activiti/runtime/tasks/12700/variables

I get:

[{"name":"queueName","type":"string","value":"initialLoanReview","scope":"global"},{"name":"loanId","type":"string","value":"3333333333","scope":"global"}]


I now want to query tasks:
POST: http://sjcua01-dev.tlcinternal.com:8080/activiti/query/tasks
With JSON Body:

{
  "taskVariables" : [
    {
      "name" : "queueName",
      "value" : "initialLoanReview",
      "operation" : "equals",
      "type" : "string"
    }
  ]
}


Result:

{
    "data": [],
    "total": 0,
    "start": 0,
    "sort": "id",
    "order": "asc",
    "size": 0
}


This is not correct as as it should return at least 1 record. Any suggestions why it does not work?

Outcomes