getPersistence().markFinished(step, (action != null) ? action.getId() : (-1), new Date(), "Finished", context.getCaller());
    protected void completeEntry(long id, Collection currentSteps) throws StoreException {        getPersistence().setEntryState(id, WorkflowEntry.COMPLETED);        Iterator i = new ArrayList(currentSteps).iterator();        while (i.hasNext()) {            Step step = (Step) i.next();            getPersistence().moveToHistory(step);        }    }