04-01-2014 01:48 PM
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;
}
04-02-2014 03:05 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.