cancel
Showing results for 
Search instead for 
Did you mean: 

How to get name of FormProperty from HistoryService?

naitog
Champ in-the-making
Champ in-the-making
Hi,

I need name of formProperty but HistoryService  appears to has only id.

XML bpmn e.g.:

<activiti:formProperty id="numberOfDays" name="Number of days" type="long" required="true" />


Java e.g. (History level is set to audit):

List<HistoricDetail> list = historyService.createHistoricDetailQuery()
.processInstanceId("XXX")
.formProperties()
.list();


Each element of list is HistoricFormPropertyEntity type. HistoricFormPropertyEntity.getName() give me "numberOfDays" instead of "Number of days". I also try to get name from HistoryService.createHistoricVariableInstanceQuery() but there are also only ids.

Is it bug or there is other way to get this data ?

Thanks for replys.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
It seems that that info is not stored in the history tables … you can always try to fetch the BpmnModel of the process in question and match that with with the id returned.