public class StepToBeRun
extends java.lang.Object
ModelRunner.handleWith(Consumer)| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<? extends java.lang.Object> |
getCondition()
Returns the precondition that needs to be true to trigger the system reaction
when
run() is called. |
java.util.Optional<? extends java.lang.Object> |
getMessage()
Returns the message object that will be passed to the system reaction when
run() is called. |
java.lang.String |
getStepName()
Returns the name of the step whose system reaction is performed when
run() is called. |
java.lang.Object |
getSystemReaction()
Returns the system reaction to be executed when
run() is called. |
void |
run()
Triggers the system reaction of this step, and publishes the resulting
event.
|
public void run()
public java.lang.String getStepName()
run() is called.public java.util.Optional<? extends java.lang.Object> getCondition()
run() is called.public java.util.Optional<? extends java.lang.Object> getMessage()
run() is called.public java.lang.Object getSystemReaction()
run() is called.