public Workflow makeWorkflowWithUserKey(String userKey) { Workflow workflow = new BasicWorkflow(userKey); workflow.setConfiguration(getConfiguration()); return workflow; }
/** * initializes the workflow and a default config * * @return the unique workflow id */ private long createWorkflow() throws InvalidRoleException, InvalidInputException, WorkflowException { this.osWorkflowInstance = new BasicWorkflow(this.caller); DefaultConfiguration config = new DefaultConfiguration(); this.osWorkflowInstance.setConfiguration(config); long wfId = this.osWorkflowInstance.initialize(this.osWorkflowName, this.action, this.map); return wfId; }