Cannot see variables in task list

I am trying to continue with my POC. I am getting my BPMN model to work. However, although I have defined a variable in my message payload, I am not able to see the variable in my tasklist.

I claim the human task. Then, I click load variables. It comes as empty. I expect to see question.
I even reduced my jsom message to a string and it still would not show up.

Here is my message REST API call
{
“messageName” : “AskShiva”,
“businessKey” : “1”,
“all”:true,
“processVariables” : {

"question" : {"value" : "\n    {\n      \"address\": {\n          \"address1\": \"3388 Einstein Square\",\n          \"address2\": \"Heinz Weigenzhul Lane\",\n          \"city\": \"Pforzheim\",\n          \"postalcode\": 55555,\n          \"state\": \"Germany\",\n          \"country\":\"Comal Germany\",\n          \"id\":2\n      },\n      \"age\": 6,\n      \"email\": \"marco@Bunte.com\",\n      \"first_name\": \"Marco\",\n      \"last_name\": \"Bunte\",\n      \"phone\": \"333-222-8888\",\n      \"person_id\": 199\n    }\n", 
"type": "String", 
"valueInfo" : { "transient" : true }
}

}
}

You’ve added the transient property to the call, which means that the variable is not stored in the database. Remove that line and you’ll see the variable is stored.

1 Like

One thing I noticed is that when I call the AskShiva message from my java class as you have in your tutorial, I do not see a business key in the process instance in the cockpit. Therefore, it never appears in the tasklist.