How to obtain, which variables (and forms) are defined in a process?

I have set up a Java application, which receives Data from a process Bonita BPM (Instances, Users, Tasks etc.).
I would like to receive which variables are created in the process (business/ process/ taskvar.). This means I want to know which variables there are and where they are used (eg. in which form/ in which gateway).

Has anyone an idea how I could accomplish this? Either in Rest or in Java.
Thanks in advance.

See here:

https://community.bonitasoft.com/questions-and-answers/how-generate-process-documentation#node-26340

It will guide you to do what you want.

regards
Seán

PS: As this reply answers your question, please mark as resolved.