cancel
Showing results for 
Search instead for 
Did you mean: 

How to get historic form property names

f_lombardo
Champ in-the-making
Champ in-the-making
With

historyService.createHistoricDetailQuery.taskId(taskId).formProperties().list()

I get a list of HistoricFormProperty elements. Using them I can get property id (e.g. "numberOfDays" in the Vacation Request example) and values, but I'm missing property names (e.g. "Number of days").

How can I retreive those values?

Thanks in advance.

Bye

Franco
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
Sorry, those names are not stored in the database, only the 'ids' are, because those are the one that matter for the engine.

f_lombardo
Champ in-the-making
Champ in-the-making
😞

Do you think that names will be included in the DB in one of the next releases?

Thanks

Franco

frederikherema1
Star Contributor
Star Contributor
You can always try to extract the property-names from the associated process-definiition's form-definitions…

f_lombardo
Champ in-the-making
Champ in-the-making
But is there an API call to obtain those definitions for a completed task, or have I to parse the XML definition of the process?

Thanks.

Bye

Franco

jbarrez
Star Contributor
Star Contributor
For the moment, you'll have to parse the xml yourself by getting the ReadOnlyProcessDefinition.
Starting from next release, we'll ship with a xml -> java pojo converter

f_lombardo
Champ in-the-making
Champ in-the-making
OK, thanks.

Bye

Franco