String startParams = entity.getText();
JsonNode startJSON = new ObjectMapper().readTree(startParams);
String processDefinitionKey = startJSON.path("processDefinitionKey").getTextValue();
String processDefinitionId = null;
if (processDefinitionKey == null) {
processDefinitionId = startJSON.path("processDefinitionId").getTextValue();
}
JsonNode businessKeyJson = startJSON.path("businessKey");
String businessKey = null;
if(businessKeyJson != null) {
businessKey = businessKeyJson.getTextValue();