final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
final HistoryEventHandler eventHandler = processEngineConfiguration.getHistoryEventHandler();
final HistoryEventProducer eventProducer = processEngineConfiguration.getHistoryEventProducer();
HistoryEvent evt = eventProducer.createHistoricVariableUpdateEvt(variableInstance, sourceActivityExecution);
eventHandler.handleEvent(evt);
}
}
protected void fireVariableEvent(VariableInstanceEntity variableInstance, String eventName, AbstractVariableScope sourceActivityExecution) {