protected void reconcileForClient(ConfigUpdate update, Client client, Runnable run) { ItemVersion itemVersion = itemManager.getRequestedVersion(client, RECONCILE); if (itemVersion == null) { return; } run.run(); itemManager.setApplied(client, RECONCILE, itemVersion); eventService.publish(EventVO.reply(update)); }
@Override protected void preProcessEvent( EventVO<?> event, ProcessState state, ProcessInstance process, Object eventResource, Object dataResource, Object agentResource) { Map<String, Object> data = CollectionUtils.toMap(event.getData()); if (!data.containsKey("instance")) { Object instanceData = CollectionUtils.getNestedValue(data, "instanceHostMap", "instance"); data.put("instance", instanceData); } super.preProcessEvent(event, state, process, eventResource, dataResource, agentResource); }