updating parent process variables in camunda 8

Is it possible to delete a parent process variable in camunda 8? Also, how can we update parent process variable from a child process?

Hi @ravi116 :wave: Welcome to our forums!

Is it possible to delete a parent process variable in camunda 8?

Deleting variables from a process instance in Camunda 8 is not supported. Please let us know if this is a feature you need. Alternatively, you can update a variable to any value, including null.

You mention parent specifically. Can you share more about your use case and what you’re trying to achieve?

Also, how can we update parent process variable from a child process?

A child process instance is activated from a Call Activity. You can specify variable mappings for a call activity to control which variables are propagated from the parent process instance to the child process instance, and vice-versa.

Updating a process variable of any process instance can be achieved through the API SetVariables.

Hope this helps :bowing_man:

@korthout

Thank you for the reply.

Below is the usecase i am trying to migrate to camunda 8


Activity A (child process), needs to add variables to the parent process so that Handle Exemption and Terminate services can access it.

Please note that i have tried updating the variables to null, but it didn’t work. However updating the variables to empty string worked.