Package com.koralix.stepfn
Interface Transition<T,R>
- Type Parameters:
T
- the type of the output of the step that the transition is fromR
- the type of the input of the step that the transition is to
public interface Transition<T,R>
A
Transition
provides a way to transition from one Step
to another when certain conditions are met.- Since:
- 1.0.0
- See Also:
-
Method Summary
-
Method Details
-
isApplicable
Checks if the transition is applicable to the given input.- Parameters:
input
- the input to check- Returns:
- true if the transition is applicable, false otherwise
- Since:
- 1.0.0
-
get
Returns the nextStep
to transition to.- Returns:
- the next
Step
- Since:
- 1.0.0
-
map
Maps the input to a new input for the nextStep
.- Parameters:
input
- the input to map- Returns:
- the mapped input
- Since:
- 1.1.0
-