bpms rest api does not let me get process variables
I am trying to get the variables of a process instance in a bpms6 server
I am using this url
http://localhost:8080/business-central/rest/runtime/my.package:Process:1.0.0/process/instance/1/variables, but the result is nothing useful:
SUCCESS /business-central/rest/runtime/com.ec.mutualista:Promocion:1.0.0/process/instance/33/variables
any patch available ??
Responses
Hi Andres,
Not sure if you still need help with this, but a better way to get the value of variables is to use the History calls. See section 13.3.2.4 in the Development Guide [1].
In your instance, I believe the following call will help to get the process variables:
http://localhost:8080/business-central/rest/history/instance/2/variable
[1] https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_BPM_Suite/6.0/html-single/Development_Guide/index.html#sect-Runtime_REST_API
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
