Class TransitionEvent.TransitionEventBuilder
java.lang.Object
io.github.jspinak.brobot.logging.events.TransitionEvent.TransitionEventBuilder
- Enclosing class:
TransitionEvent
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
correlationId
(String correlationId) Correlation ID for tracking related actionsDuration of the transitionerrorMessage
(String errorMessage) Error message if transition failedSource state nameAdditional metadata about the transitionMethod used for the transitionSequence of states traversed (for complex transitions)retryAttempts
(int retryAttempts) Number of retry attempts madeSession IDsuccess
(boolean success) Whether the transition succeededTimestamp when the transition was initiatedTarget state nametoString()
-
Method Details
-
timestamp
Timestamp when the transition was initiated- Returns:
this
.
-
fromState
Source state name- Returns:
this
.
-
toState
Target state name- Returns:
this
.
-
success
Whether the transition succeeded- Returns:
this
.
-
duration
Duration of the transition- Returns:
this
.
-
method
Method used for the transition- Returns:
this
.
-
path
Sequence of states traversed (for complex transitions)- Returns:
this
.
-
errorMessage
Error message if transition failed- Returns:
this
.
-
metadata
Additional metadata about the transition- Returns:
this
.
-
correlationId
Correlation ID for tracking related actions- Returns:
this
.
-
sessionId
Session ID- Returns:
this
.
-
retryAttempts
Number of retry attempts made- Returns:
this
.
-
build
-
toString
-