Class HistoryElement
java.lang.Object
com.broadleafcommerce.orchestration.client.HistoryElement
Specific start, end, status, and optional failure information for every
SimpleActivity
executed in a SimpleWorkflow, and every workflow start and exit.-
Constructor Summary
ConstructorsConstructorDescriptionHistoryElement(String name, String description, Instant startTime, Instant endTime, ProcessStatus status, String responseState, Map<String, Object> resultingContext, String errorInformation, HistoryElementType type) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanOptional description for this item.The time execution was concluded for this itemAny error information related to a failed state.An identifying tag that can correlate a start and end history elementgetLogs()Arbitrary logs set during the execution of the activity.getName()The name for this item.The response reported by the activity.Any context information the activity wants to add to the main contextThe time execution was started for this itemThe state of the outcome of execution.getType()The type of iteminthashCode()booleanWhether this history element should simply be stripped from side effects during replay.voidsetDescription(String description) Optional description for this item.voidsetEndTime(Instant endTime) The time execution was concluded for this itemvoidsetErrorInformation(String errorInformation) Any error information related to a failed state.voidsetIdentifier(String identifier) An identifying tag that can correlate a start and end history elementvoidsetIgnoreOnReplay(boolean ignoreOnReplay) Whether this history element should simply be stripped from side effects during replay.voidArbitrary logs set during the execution of the activity.voidThe name for this item.voidsetResponseState(String responseState) The response reported by the activity.voidsetResultingContext(Map<String, Object> resultingContext) Any context information the activity wants to add to the main contextvoidsetStartTime(Instant startTime) The time execution was started for this itemvoidsetStatus(ProcessStatus status) The state of the outcome of execution.voidsetType(HistoryElementType type) The type of itemwithIdentifier(String identifier) withIgnoreOnReplay(boolean ignoreOnReplay)
-
Constructor Details
-
HistoryElement
-
HistoryElement
public HistoryElement()
-
-
Method Details
-
withLogs
-
withIgnoreOnReplay
-
withIdentifier
-
getIdentifier
An identifying tag that can correlate a start and end history element -
isIgnoreOnReplay
public boolean isIgnoreOnReplay()Whether this history element should simply be stripped from side effects during replay. This is a special case for history elements that are known to not be generated during replay, and would otherwise fail the replay integrity check. -
getName
The name for this item. Usually points toSimpleActivity.getName()orSimpleWorkflow.getName() -
getDescription
Optional description for this item. Usually points toSimpleActivity.getDescription()orSimpleWorkflow.getDescription() -
getStartTime
The time execution was started for this item -
getEndTime
The time execution was concluded for this item -
getStatus
The state of the outcome of execution. This is different fromgetResponseState(), which simply reports an output state from the activity, but is still considered "completed". Instead, here we define whether the item completed successfully, is still processing, or fatally exited because of an uncaught exception. -
getResponseState
The response reported by the activity. SeeActivityResponse.getResponseState(). This value is optional, and generally only applies to activity execution. -
getResultingContext
Any context information the activity wants to add to the main context -
getErrorInformation
Any error information related to a failed state. Usually a stack trace. -
getType
The type of item -
getLogs
Arbitrary logs set during the execution of the activity. This is a map of log name to log message. -
setIdentifier
An identifying tag that can correlate a start and end history element -
setIgnoreOnReplay
public void setIgnoreOnReplay(boolean ignoreOnReplay) Whether this history element should simply be stripped from side effects during replay. This is a special case for history elements that are known to not be generated during replay, and would otherwise fail the replay integrity check. -
setName
The name for this item. Usually points toSimpleActivity.getName()orSimpleWorkflow.getName() -
setDescription
Optional description for this item. Usually points toSimpleActivity.getDescription()orSimpleWorkflow.getDescription() -
setStartTime
The time execution was started for this item -
setEndTime
The time execution was concluded for this item -
setStatus
The state of the outcome of execution. This is different fromgetResponseState(), which simply reports an output state from the activity, but is still considered "completed". Instead, here we define whether the item completed successfully, is still processing, or fatally exited because of an uncaught exception. -
setResponseState
The response reported by the activity. SeeActivityResponse.getResponseState(). This value is optional, and generally only applies to activity execution. -
setResultingContext
Any context information the activity wants to add to the main context -
setErrorInformation
Any error information related to a failed state. Usually a stack trace. -
setType
The type of item -
setLogs
Arbitrary logs set during the execution of the activity. This is a map of log name to log message. -
equals
-
canEqual
-
hashCode
public int hashCode()
-