long id = createCurrentStep(conn, entryId, wfStepId, owner, startDate, dueDate, status);
addPreviousSteps(conn, id, previousIds);
return new SimpleStep(id, entryId, wfStepId, 0, owner, startDate, dueDate, null, status, previousIds, null);
} catch (SQLException e) {
throw new StoreException("Unable to create current step for workflow instance #" + entryId, e);
} finally {
cleanup(conn, null, null);
}
}