As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public class WorkflowEventListener implements ActivitiEventListener { … if (event instanceof ActivitiEntityEvent) { ActivitiEntityEvent e = (ActivitiEntityEvent) event; if (e.getEntity() instanceof ExecutionEntity) { ExecutionEntity ent = (ExecutionEntity) e.getEntity(); if (ent.isProcessInstanceType()) { log("Event: " + e.getType() + " " + ent.toString() + " " + e.getProcessDefinitionId() + " " + new DateTime()); if (event.getType() == ActivitiEventType.ENTITY_CREATED) { // Log that a workflow started } else if (event.getType() == ActivitiEventType.ENTITY_DELETED) { // Log that a workflow was completed // NEVER GETS CALLED!!!! } } } return; }