cancel
Showing results for 
Search instead for 
Did you mean: 

Database Activiti

lobnakh
Champ in-the-making
Champ in-the-making
Hello Activiti Team,
Im in trouble with activiti again, i hope you can help me !
Im launching a vacation process (the first task =create a requestAbsence) an OnClick() method in an ajaxSubmitLink() of a form.The informations filled in the form will be stored in an object requestAbsence.
In the validation page , I need to display all the requestAbsence objects so I need to extract all the process instances in order to get all the objects within the first Task .
PS : im using the default database of activiti (h2).
Somebody could help me resolve this trouble please ?? I would be so thankfull.
2 REPLIES 2

hari
Star Contributor
Star Contributor
Hi,

You will need to get all process instance variables. If you are using activiti-rest, please use the below URL for more information
http://activiti.org/userguide/index.html#_list_of_variables_for_a_process_instance
If you are using the API call then you will have to use something as below
historyServiceInstance.createHistoricVariableInstanceQuery().processInstanceId(<procInstID>).list()

lobnakh
Champ in-the-making
Champ in-the-making
Thank you for the quick answer,Im using the API call , but with the command you give, I need a process instanceId ! But i search already for process Instances Smiley Sad( I have not the processInstanceIds ! I would like to get all the processInstances IDs