ObjectMapper objectMapper = new ObjectMapper();
Map<String, Object> data;
try {
data = objectMapper.readValue(event.getData(), new TypeReference<HashMap<String, Object>>() {});
} catch (IOException e) {
throw new CrystalballException("unable to parse JSON string.", e);
}
String processDefinitionId = (String) data.get(Fields.PROCESS_DEFINITION_ID);
Map<String, Object> variableMap = (Map<String, Object>) data.get(Fields.VARIABLES);
String businessKeyValue = (String) data.get(Fields.BUSINESS_KEY);
String processInstanceId= (String) data.get(Fields.PROCESS_INSTANCE_ID);