else {
// events are in sync, nothing to do
}
// update the activity
activity.merge(eventActivity);
state.put("activity", activity);
// update the agent data
agentData.eventId = event.get("id").asText();
agentData.eventUpdated = event.get("updated").asText();