Process instance data import and export

Hi All,

Is it possible to export the actual process instance data like state, variables and so on.

After that I want to import this data again in order the process can continue from the point it stopped.

I am working with the Embedded and Standalone Architecture defined here:

https://docs.camunda.org/manual/7.8/introduction/architecture/

Is it possible to the Camunda Process Engine (in Java) export the process instance data in JSON format?
It would be perfect for the situation too. Then it would be also possible to instantiate a new process and load the data into this new process instance through the process engine.

Thanks.

Kind Regards,
Joao

Hi Joao,

Why do you need this? What is your goal?

Maybe you can suspend the process instance and activate it later when you need it:
https://docs.camunda.org/manual/7.8/webapps/cockpit/bpmn/suspension/#process-instance-suspension

Depending on what kind of process instance data do you need. However you could check this rest endpoint:
https://docs.camunda.org/manual/latest/reference/rest/process-instance/get/

Best regards,
Yana

Hi Yana,

thank you very much for your feedback.

Well, I would not like to have the whole Camunda environment, specially the database. I am interested in the Process Engine working as a lightweight process engine.

I am storing data using the Blockchain technology and there is no JDBC. It can store/read data only in JSON format. If the data are outside the Blockchain, it is not trustable and the Blockchain Architecture fails.

The idea is to store the process instance data and load it again when needed to continue the process from the point it stopped.

Kind Regards,
Joao

@joccafi Have you been able to achieve this export-import process? I’m trying to do something similar for a distributed setup that does not have access to the same database.

Hi @hendrikvn ,

unfortunately not. I had very little time to investigate and play around with this possibility. At the end, the team decided to implement theirselves the state machine for the project.

But I think it is possible :slight_smile:

Kind regards
Joao