public class Flow
extends java.lang.Object
A flow either ends with the user reaching her/his goal, or terminates before, usually because of an exception that occurred.
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Condition> |
getCondition()
Convenience method that returns the condition of the flow.
|
java.util.Optional<FlowStep> |
getFirstStep()
Returns the first step of the flow
|
FlowPosition |
getFlowPosition()
Convenience method that returns the position of the flow (as defined e.g. by
"InsteadOf").
|
Model |
getModel()
Returns the model that this element is part of.
|
java.lang.String |
getName()
Returns the name of the element.
|
java.util.List<FlowStep> |
getSteps()
Returns the steps contained in this flow.
|
UseCase |
getUseCase()
Returns the use case this flow is part of.
|
java.lang.String |
toString() |
public UseCase getUseCase()
public java.util.List<FlowStep> getSteps()
public java.util.Optional<FlowStep> getFirstStep()
public FlowPosition getFlowPosition()
Internally this calls the method of the same name of the first step in the flow.
public java.util.Optional<Condition> getCondition()
Internally this calls the method of the same name of the first step in the flow.
public java.lang.String getName()
public Model getModel()
public java.lang.String toString()
toString in class java.lang.Object