public class StepUserPart<T>
extends java.lang.Object
ModelBuilder to build a Model.| Modifier and Type | Method and Description |
|---|---|
StepPart |
step(java.lang.String stepName)
Creates a new step in this flow, with the specified name, that follows the
current step in sequence.
|
StepSystemPart<T> |
system(java.util.function.Consumer<? super T> systemReaction)
Defines the system reaction.
|
StepSystemPart<T> |
system(java.lang.Runnable systemReaction)
Defines the system reaction.
|
StepSystemPart<T> |
systemPublish(java.util.function.Function<? super T,?> systemReaction)
Defines the system reaction.
|
public StepSystemPart<T> system(java.util.function.Consumer<? super T> systemReaction)
ModelRunner.reactTo(Object) is called.systemReaction - the specified system reactionpublic StepSystemPart<T> system(java.lang.Runnable systemReaction)
ModelRunner.reactTo(Object) is
called.systemReaction - the specified system reactionpublic StepSystemPart<T> systemPublish(java.util.function.Function<? super T,?> systemReaction)
ModelRunner.reactTo(Object). After
executing the system reaction, the runner will publish the returned event.systemReaction - the specified system reaction, that returns an event to
be published.public StepPart step(java.lang.String stepName)
stepName - the name of the step to be createdElementAlreadyInModel - if a step with the specified name already
exists in the use case