I want to get the list of variables of an archived process instance using Bonita REST API, I dont found any method that can return the list of variables of archived instances. I can get variables of started instances but I can’t get the list of archived instances variables.
Actually you are right no methods exist to retrieve archived process instance variables.
Currently Business Data feature faced the same kind of limitation. But such limitation should be address in a future release. So when available I would recommend to switch from process variables to business variables.
I have a last question, can I get the list of variable of the current process instance ? I want to put all variables values into a comment, That is possible ?
You can get the list of variables from a current process instance using getProcessDataInstances method (Java client library) or caseVariable resource (REST API). Both solutions provide the process instance variables value. Other methods and resources are available if you need to get the variable declared in process definition.
As far as I know adding a comment on a process is only available using the Java client library addProcessComment method.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.