I am using the latest version of Activiti (5.17.0). I have deployed Activiti REST and Activiti Explorer (as separate web apps) in Tomcat. Both the apps are configured to use the same MySQL database. I created a Process definition and successfully deployed it through activiti-explorer.
Now using the Activiti REST API, I started a process instance.
My objective is to show all the Process Variables injected at the start of the workflow at all the User Tasks in the workflow. Am I missing something here? Please advice.
you can use the boolean property "returnVariables" in your request to have the variables returned in the response. This property wil be included in a future documentation revision.
Hi Yvo, thanks for your reply. You are correct. By adding "returnVariables" in the first POST request, the process variables are returned in the success response. But my problem is still not solved. When I want to get this information at a later point of time in the workflow (i.e., in the User Task), the JSON response still doesn't contain this information. Please advice the best way to get this information at any point in the workflow process.
Hi Yvo, I noticed that, the following REST API is available to get the variable information. Is this what we need to use? Please confirm. <code> runtime/process-instances/{processInstanceId}/variables </code>
If add query parameter includeProcessVariables=true may take variables. see user guide Table 65. List of process instances - URL query parameters more detail.