List<WorkflowTask> tasks=wapi.findExpiredTasks();
for (WorkflowTask task : tasks) {
String stepId=task.getStatus();
WorkflowStep step=wapi.findStep(stepId);
String actionId=step.getEscalationAction();
WorkflowAction action=wapi.findAction(actionId, APILocator.getUserAPI().getSystemUser());
Logger.info(this, "Task '"+task.getTitle()+"' " +
"on contentlet id '"+task.getWebasset()+"' "+
"timeout on step '"+step.getName()+"' " +
"excecuting escalation action '"+action.getName()+"'");