licicin (41) [Avatar] Offline
#1
How do you insert information into act_hi_detail table?
You assign ID_ not in the same order as in bpmn20.xml

For example bpmn20.xml has
<userTask id="fillBookInfo" >
<extensionElements>
<activiti:formProperty id="booktitle" name="Book title" >
<activiti:formProperty id="isbn" name="Isbn" >

but act_hi_detail has
10802 isbn
10804 booktitle

formService.getTaskFormData(id).getFormProperties();
returns field in the correct order

You parse bpmn20.xml every time you execute a form
but don't apply it to history detail table.
tijs.rademakers (494) [Avatar] Offline
#2
Re: Incorrect form fields order inside act_hi_detail
Hi,

Why do you need this data to be in the same order as the BPMN 2.0 XML? It's stored in the history tables for auditing and reporting purpose, so I would guess that the order of the form property values don't matter that much.

Best regards,

Tijs
licicin (41) [Avatar] Offline
#3
Re: Incorrect form fields order inside act_hi_detail
Thank you Tijs,
i found the solution.