cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve the variables for each task,service.... in a process

habib1
Champ in-the-making
Champ in-the-making
It is possible to  retrieve the  variables for each task ,service…. (I mean the variables added to the Map )….. in a process, is there something like this:?

List<String> variablesName = getVaraibles(String instanceId, String bpmnComponnentId) ;
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Habib,

I am not sure what you are asking.
1. You can get variables for currently running process instance. Or for the tasks where process waits for external event.
2. You can get variables for process instance and tasks from history (with proper setting) (e.g. HistoricTaskInstanceQuery)

Do you need variables from the history or for the currently running processsInstance?

Regards
Martin

habib1
Champ in-the-making
Champ in-the-making
Hi Martin , thanks
i need varaibles from the history.

Best, regards

martin_grofcik
Confirmed Champ
Confirmed Champ