cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve form properties for completed task

chidha2005
Champ in-the-making
Champ in-the-making
Is there any api / nativeQuery to retrieve form properties for the Completed Tasks . If no such API available. how should we query for retrieving the form properties for completed tasks .
4 REPLIES 4

trademak
Star Contributor
Star Contributor
You can use the RepositoryService getBpmnModel(processDefinitionId) method to get the Java model of a process definition. From that it's easy to get UserTask element and the form properties.

Best regards,

chidha2005
Champ in-the-making
Champ in-the-making
HI Tijs Rademakers,

Thank you very much. it`s working fine.

chidha2005
Champ in-the-making
Champ in-the-making
Hi Tijs Rademakers,

But i am not able to retrieve the form properties values ?

frederikherema1
Star Contributor
Star Contributor
You can use the HistoricDetails for this, see HistoryService. The historicDetailQuery has a "formProperties()" method on it, which allows you to get them out. Ensure the correct history-level is set in order to get the properties recorded (see user guide for this).