Class WorkflowRequestCompletion
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion
-
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.Securable,Serializable
public class WorkflowRequestCompletion extends Object implements com.broadleafcommerce.common.messaging.Securable, Serializable
A container object for information regarding the completion of aTransitionRequestorWorkflowJobSchedulingRequestorWorkflowJobUnschedulingRequest.- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowRequestCompletion(boolean success, Map<String,String> transferTypeIdMap, Class<?> requestType, String errorMessage, String errorTrace, Instant timestamp)WorkflowRequestCompletion(boolean success, Map<String,String> transferTypeIdMap, Class<?> requestType, String errorMessage, String errorTrace, Instant timestamp, String token, Tracking changeTracking)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)TrackinggetChangeTracking()All of the information contained withinTrackingfor the target record of this transition.StringgetErrorMessage()If an error was encountered, this is the related message.StringgetErrorTrace()If an error was encountered, this is the related stack trace.Class<?>getRequestType()The type of the request.InstantgetTimestamp()Time of completion.StringgetToken()Map<String,String>getTransferTypeIdMap()ID of the transfer items involved in a workflow request mapped by theTransferType.inthashCode()booleanisSuccess()Whether the request was successfully handled or encountered an error.voidsetChangeTracking(Tracking changeTracking)All of the information contained withinTrackingfor the target record of this transition.voidsetToken(String token)StringtoString()
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Whether the request was successfully handled or encountered an error.
-
getTransferTypeIdMap
public Map<String,String> getTransferTypeIdMap()
ID of the transfer items involved in a workflow request mapped by theTransferType. Could be the id of a change summary, summary group, or deployment.
-
getRequestType
public Class<?> getRequestType()
The type of the request. Could be any of the implementations ofTransitionRequestsuch asWorkflowPromoteRequest,WorkflowRebaseRequest, &c. or aWorkflowJobSchedulingRequestor aWorkflowJobUnschedulingRequest.
-
getErrorMessage
public String getErrorMessage()
If an error was encountered, this is the related message.
-
getErrorTrace
public String getErrorTrace()
If an error was encountered, this is the related stack trace.
-
getTimestamp
public Instant getTimestamp()
Time of completion.
-
getToken
public String getToken()
- Specified by:
getTokenin interfacecom.broadleafcommerce.common.messaging.Securable
-
getChangeTracking
public Tracking getChangeTracking()
All of the information contained withinTrackingfor the target record of this transition. This field is optional and is generally employed by the rebase and promotion flows, as both of these cause unique change details to be created to represent the latest state- Returns:
- All of the information contained within
Trackingfor the record of this transition
-
canEqual
protected boolean canEqual(Object other)
-
setToken
public void setToken(String token)
- Specified by:
setTokenin interfacecom.broadleafcommerce.common.messaging.Securable
-
setChangeTracking
public void setChangeTracking(Tracking changeTracking)
All of the information contained withinTrackingfor the target record of this transition. This field is optional and is generally employed by the rebase and promotion flows, as both of these cause unique change details to be created to represent the latest state- Parameters:
changeTracking- All of the information contained withinTrackingfor the record of this transition
-
-