i have following questions on history.
My requirement is to store all process instances even after they are completed/resolved and that they should be searchable.
Also, I see that the resolved process id is available in ACT_HI_PROCINST table. but the variables are no more present for the case.
How can I get resolved/completed process instances and all its variable data?
Also, just to mention, I am using Camunda Community Edition. (in case if there is any limitation with Community edition)
Hi, yes I got my question partially answered. Thanks a lot. However I have following questions ->
Is there an API to return all variable instances for a process instance?
Second question I have is related to audit history
Is there a way to insert my own audit history for a process instance. eg. I want to add to audit history that integration call succeeded. Either through a delegate or a rest API?
This will fetch the all variables for the given processInstanceId and processDefinitionKey.
History events are generated by process engine, rest api not available to persist the history variables.
Best approach could be, once integration call succeeded, you can set the status in a process/task variable using Java Delegates or Listeners like below:
Hello,
This suggestion was very helpful. However, if I add multiple updates to a variable instance, the above api /history/variable-instance only returns the latest updated value.
How do I get all updates to a particular variable from the history? Can you please let me know.