entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("entry.name"); entryState = (String) props.get("entry.state"); historyTable = (String) props.get("history.table"); currentTable = (String) props.get("current.table"); currentPrevTable = (String) props.get("currentPrev.table"); historyPrevTable = (String) props.get("historyPrev.table"); stepId = (String) props.get("step.id"); stepEntryId = (String) props.get("step.entryId"); stepStepId = (String) props.get("step.stepId"); stepActionId = (String) props.get("step.actionId"); stepOwner = (String) props.get("step.owner"); stepCaller = (String) props.get("step.caller"); stepStartDate = (String) props.get("step.startDate"); stepFinishDate = (String) props.get("step.finishDate"); stepDueDate = (String) props.get("step.dueDate"); stepStatus = (String) props.get("step.status"); stepPreviousId = (String) props.get("step.previousId");
entrySequence = getInitProperty(props, "entry.sequence", "SELECT nextVal('seq_os_wfentry')"); stepSequence = getInitProperty(props, "step.sequence", "SELECT nextVal('seq_os_currentsteps')"); entryTable = getInitProperty(props, "entry.table", "OS_WFENTRY"); entryId = getInitProperty(props, "entry.id", "ID"); entryName = getInitProperty(props, "entry.name", "NAME"); entryState = getInitProperty(props, "entry.state", "STATE"); historyTable = getInitProperty(props, "history.table", "OS_HISTORYSTEP"); currentTable = getInitProperty(props, "current.table", "OS_CURRENTSTEP"); currentPrevTable = getInitProperty(props, "currentPrev.table", "OS_CURRENTSTEP_PREV"); historyPrevTable = getInitProperty(props, "historyPrev.table", "OS_HISTORYSTEP_PREV"); stepId = getInitProperty(props, "step.id", "ID"); stepEntryId = getInitProperty(props, "step.entryId", "ENTRY_ID"); stepStepId = getInitProperty(props, "step.stepId", "STEP_ID"); stepActionId = getInitProperty(props, "step.actionId", "ACTION_ID"); stepOwner = getInitProperty(props, "step.owner", "OWNER"); stepCaller = getInitProperty(props, "step.caller", "CALLER"); stepStartDate = getInitProperty(props, "step.startDate", "START_DATE"); stepFinishDate = getInitProperty(props, "step.finishDate", "FINISH_DATE"); stepDueDate = getInitProperty(props, "step.dueDate", "DUE_DATE"); stepStatus = getInitProperty(props, "step.status", "STATUS"); stepPreviousId = getInitProperty(props, "step.previousId", "PREVIOUS_ID");
    public void init(Map props) throws StoreException {        entrySequence = (String) props.get("entry.sequence");        stepSequence = (String) props.get("step.sequence");        entryTable = (String) props.get("entry.table");        entryId = (String) props.get("entry.id");        entryName = (String) props.get("entry.name");        entryState = (String) props.get("entry.state");        historyTable = (String) props.get("history.table");        currentTable = (String) props.get("current.table");        currentPrevTable = (String) props.get("currentPrev.table");        historyPrevTable = (String) props.get("historyPrev.table");        stepId = (String) props.get("step.id");        stepEntryId = (String) props.get("step.entryId");        stepStepId = (String) props.get("step.stepId");        stepActionId = (String) props.get("step.actionId");        stepOwner = (String) props.get("step.owner");        stepCaller = (String) props.get("step.caller");        stepStartDate = (String) props.get("step.startDate");        stepFinishDate = (String) props.get("step.finishDate");        stepDueDate = (String) props.get("step.dueDate");        stepStatus = (String) props.get("step.status");        stepPreviousId = (String) props.get("step.previousId");        String jndi = (String) props.get("datasource");        if (jndi != null) {            try {                ds = (DataSource) lookup(jndi);                if (ds == null) {                    ds = (DataSource) new javax.naming.InitialContext().lookup(jndi);                }            } catch (Exception e) {                throw new StoreException("Error looking up DataSource at " + jndi, e);            }        }    }