docs: public void fireHistoricActivityInstanceUpdate() {
      ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration();
      HistoryLevel historyLevel = configuration.getHistoryLevel();
      if (historyLevel.isHistoryEventProduced(HistoryEventTypes.ACTIVITY_INSTANCE_UPDATE, this)) {
        // publish update event for current activity instance (containing the id
        // of the sub process/case)
        HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() {
          @Override
          public HistoryEvent createHistoryEvent(HistoryEventProducer producer) {
            return producer.createActivityInstanceUpdateEvt(ExecutionEntity.this);
          }
        });
      }
    }