if ("compensateEventDefinition".equals(nodeName)) {
String activityRef = ((Element) xmlNode).getAttribute("activityRef");
if (activityRef != null && activityRef.trim().length() > 0) {
actionNode.setMetaData("Compensate", activityRef);
List<DroolsAction> actions = new ArrayList<DroolsAction>();
actions.add(new DroolsConsequenceAction("java",
"kcontext.getProcessInstance().signalEvent(\"Compensate-" + activityRef + "\", null);"));
actionNode.setActions(EndNode.EVENT_NODE_ENTER, actions);
}
// boolean waitForCompletion = true;
// String waitForCompletionString = ((Element) xmlNode).getAttribute("waitForCompletion");