how to add variables task and process with the API

How to add variables task and process with the API

I want to add variables, see that you can do from the ProcessDefinitionBuilder class, but you have to create everything and what I want is to add variables to an existing process.
As I can do ???
I also saw the DataDefinitionImpl class, but not as associate to an existing ProcessDefinition

Don’t understand the question, please make clearer.

regards

I tell you, I have my system and use BONITA API, from my system I read tasks and save tasks using the API. one of the features I need API is to add variables in real time. But in Bonita 7, the definition of the variables is in an XML. As I can add variables to task and process from the API

Thank

I want to add variables, see that you can do from the ProcessDefinitionBuilder class, but you have to create everything and what I want is to add variables to an existing process.
As I can do ???
I also saw the DataDefinitionImpl class, but not as associate to an existing ProcessDefinition