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 boolean
boolean
Optional description for this item.The time execution was concluded for this itemAny error information related to a failed state.getLogs()
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 itemint
hashCode()
void
setDescription
(String description) Optional description for this item.void
setEndTime
(Instant endTime) The time execution was concluded for this itemvoid
setErrorInformation
(String errorInformation) Any error information related to a failed state.void
Arbitrary logs set during the execution of the activity.void
The name for this item.void
setResponseState
(String responseState) The response reported by the activity.void
setResultingContext
(Map<String, Object> resultingContext) Any context information the activity wants to add to the main contextvoid
setStartTime
(Instant startTime) The time execution was started for this itemvoid
setStatus
(ProcessStatus status) The state of the outcome of execution.void
setType
(HistoryElementType type) The type of item
-
Constructor Details
-
HistoryElement
-
HistoryElement
public HistoryElement()
-
-
Method Details
-
withLogs
-
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. -
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()
-