final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
final HistoryEventHandler eventHandler = processEngineConfiguration.getHistoryEventHandler();
final HistoryEventProducer eventProducer = processEngineConfiguration.getHistoryEventProducer();
HistoryEvent evt = eventProducer.createHistoricVariableCreateEvt(variableInstance, sourceActivityExecution);
eventHandler.handleEvent(evt);
}
}