long taskDbid = task.getDbid();
historyTask = (HistoryTaskImpl)
dbSession.get(HistoryTaskImpl.class, taskDbid);
}
HistoryVariableImpl historyVariable = new HistoryVariableImpl(historyProcessInstance, historyTask, variable);
dbSession.save(historyVariable);
}