/** * Creates the first step of this flow. It can be interrupted by any other flow * that has an explicit condition. It can be run when no other step has been run * before. * * @param stepName * the name of the step to be created * @return the newly created step part, to ease creation of further steps * @throws ElementAlreadyInModel * if a step with the specified name already * exists in the use case */ public StepPart step(String stepName) { FlowStep step = useCase.newInterruptableFlowStep(stepName, flow); StepPart stepPart = new StepPart(step, useCasePart, FlowPart.this); return stepPart; }
FlowStep createTrailingStepInFlow(String stepName, FlowPart flowPart) { Flow flow = flowPart.getFlow(); FlowStep newTrailingStep = step.getUseCase().newInterruptableFlowStep(stepName, flow); return newTrailingStep; }