Hell Activiti-Community,I have a little problem with the HistoryService and HistoricFormProperties.According to the User Guide this Query:
historyService.createHistoricDetailQuery()
.formProperties()
.processInstanceId("123")
.orderByVariableName().asc()
.list()
should get […] all form-properties that were submitted in any task or when starting the process with id "123"
My own query looks like this: String processInstanceId = historyService
.createHistoricTaskInstanceQuery().taskId(taskId)
.singleResult().getProcessInstanceId();
List<HistoricDetail> historicFormProperties = historyService
.createHistoricDetailQuery()
.processInstanceId(processInstanceId).formProperties()
.orderByTime().desc().list();
and the XML of my Start-Element like this:
<startEvent id="_8" isInterrupting="true" name="neues Praxissemester" parallelMultiple="false">
<extensionElements>
<activiti:formProperty id="student" name="Student" required="true" type="string" variable="student"/>
<activiti:formProperty id="studentMail" name="Student-Mail-Adresse" required="true" type="string" variable="studentMail"/>
… more FormProperties
</startEvent>
So when starting the process and calling the method with the HistoryService it doesn't deliver any HistoricFormProperties. After finishing the first task in the process (which also has one FormProperty) the HistoryService only delivers that one.Do I forget another necessary parameter when building the query or is it a problem within Activiti?