Get Transaction with REST-API

Hi everyone,

i wanted to know, if it is possible to get information about the configured transactions with the REST API.

For example if I set the Asynchronous After flag of a task to true in the Modeler, is there an existing method, that returns the information, if this flag is set to true or not?

Thanks in advance.

Regards
Michael

Hi @MichiDahm,

you can use a Modeler plugin to visualize the boundarys: https://github.com/camunda/camunda-modeler-plugins/tree/master/camunda-transaction-boundaries-plugin

It’s based on a javaScript library that could be used in your web app to generate an overlay based on processes deployed to the engine beforehand. Use this rest call to get the content of the BPMN diagram: https://docs.camunda.org/manual/7.11/reference/rest/process-definition/get-xml/

Hope this helps, Ingo

1 Like

Hi @Ingo_Richtsmeier

thanks for the answer. This definetly helps.

But is it also possible to query running processes and retrieve this information? Can I query an active task and ask, if a transaction for this task is set? Or can I query a process instance and ask if there are transactions set in this process?
The plugin is good to keep track of the transactions while modeling the process, but I am more looking for a solution to access this information while executing the processes.

Regards
Michael

Hi @MichiDahm,

no, there is no API to query for transaction boundary.

1 Like

Hi @Ingo_Richtsmeier,

thanks for the answer.

Then I will go with the Modeler Plugin :+1:

Regards
Michael

@MichiDahm one consideration is you can query for process definition and then parse BPMN model instance and get all the attributes.