Hi,
I’m using 7.11.0 and have a BPMN process with a multi instance subprocess which contains a user task that sets variables during completion via
taskService.complete(taskId, variables)
In a service task after the subprocess I’m trying to collect the variables of all these user tasks, but it looks like they are not historized?
historyService.createHistoricVariableInstanceQuery().taskIdIn(task.getId()).list().forEach(var -> log.debug("{} = {}", var.getName(), var.getValue()));
no result
historyService.createHistoricDetailQuery().taskId(task.getId()).list().forEach(var -> log.debug("{}", var));
no result
historyService.createHistoricTaskInstanceQuery().taskId(task.getId()).list().forEach(var -> log.debug("{}", var));
2021-04-21 14:44:40.255 DEBUG 74815 — [aTaskExecutor-1] .ApproverGroupDecisionTaskManagementImpl : ----------------------------------------- HistoricTaskInstanceEntity[taskIdnull, assignee=1234567, owner=null, name=Systemrollen-genehmiger-entscheidung, description=null, dueDate=null, followUpDate=null, priority=50, parentTaskId=null, deleteReason=completed, taskDefinitionKey=approverGroupDecisionUserTask, durationInMillis=246, startTime=Wed Apr 21 14:44:39 CEST 2021, endTime=Wed Apr 21 14:44:39 CEST 2021, id=563f97b3-a29f-11eb-9ee5-9a55c5abc2a6, eventType=null, executionId=563e863f-a29f-11eb-9ee5-9a55c5abc2a6, processDefinitionId=idm-rolebuild:28:72399999-a29b-11eb-a749-ae8833d1b9b8, rootProcessInstanceId=55cd0030-a29f-11eb-9ee5-9a55c5abc2a6, processInstanceId=55cd0030-a29f-11eb-9ee5-9a55c5abc2a6, activityInstanceId=563e8640-a29f-11eb-9ee5-9a55c5abc2a6, tenantId=null]
P.S.: Sorry for the german screenshot, but I think the schema is understandable, the texts are not important, I think
TIA