I'm trying in the latest version 5.13 of Activiti to access process-instances via REST-API. It works well except the processvariables is missing.
It works on list of task as expected:
But don't work on list of process:
And the processvariables can successful be accessed thru variable directly.
Regards
-
Trond
It works on list of task as expected:
/runtime/tasks?includeProcessVariables = true
But don't work on list of process:
/runtime/process-instances?includeProcessVariables = true
Where you only get blank values "variables": []And the processvariables can successful be accessed thru variable directly.
/runtime/process-instances/{processId}/variables/{variable}
Regards
-
Trond
Regards
-
Trond
I'll try 5.15 to see if it is fixed.
Thank you!
I built a war file and it does not list variables at all.
Also somehow the one I build returns XML instead of JSON.
–Gordon
I am also finding this issue. I tried rest call
http://localhost:8080/activiti-rest/service/runtime/process-instances?includeProcessVariables =true
Request payload
———————
{
"processDefinitionKey": "cancel_order_call_workflow",
"businessKey": "2456859",
"variables": [{
"name": "reason_code",
"value": "Not_Interessted"
},
{
"name": "user_intent",
"value": "return"
},
{
"name": "account_no",
"value": "123"
},
{
"name": "client_no",
"value": "123"
}]
}
Response
———–
<ProcessInstanceResponse>
<id>9515092</id>
<url>
http://localhost:8080/activiti-rest/service/runtime/process-instances/9515092
</url>
<businessKey>2456859</businessKey>
<suspended>false</suspended>
<ended>true</ended>
<processDefinitionId>cancel_order_call_workflow:1:9485004</processDefinitionId>
<processDefinitionUrl>
http://localhost:8080/activiti-rest/service/repository/process-definitions/cancel_order_call_workflow%3A1%3A9485004
</processDefinitionUrl>
<activityId>cancelWorkflowEnd</activityId>
<variables/>
<tenantId/>
<completed>true</completed>
</ProcessInstanceResponse>
—————————————–
Here I am trying to return some value from my workflow and include that as part of my response( in <variables/>)
Please help me out - I am new to activiti
Thanks in advance
Siddu.