Class JpaWorkflow
java.lang.Object
com.broadleafcommerce.workflow.provider.jpa.domain.JpaWorkflow
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,Informational
,Serializable
@Entity
public class JpaWorkflow
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, Informational
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
The context id of the workflow (primary key)Key/Value pairs of information passed to the workflow when it was started.A short description of the purpose of this workflow.The most recent exception that took place during a previous workflow execution.Token associated with the workflow to correlate with messaging.getName()
The unique name identifier for this workflow.The status of the workflow.com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
int
hashCode()
void
setContextId
(String contextId) void
setContextValues
(Set<JpaContextValue> contextValues) void
setDescription
(String description) void
setLastException
(String lastException) The most recent exception that took place during a previous workflow execution.void
setLastStepName
(String lastStepName) The name of the most recent activity that is presumed to be in-processvoid
setLastStepTimeout
(Long lastStepTimeout) The timestamp at which the workflow will have exceeded the timeout boundary for activity execution for the activity identified byInformational.setLastStepName(String)
.void
setLaunchToken
(String launchToken) void
void
setReference
(String reference) void
The status of the workflow.void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaWorkflow
public JpaWorkflow()
-
-
Method Details
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getContextId
Description copied from interface:Informational
The context id of the workflow (primary key)- Specified by:
getContextId
in interfaceInformational
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- The context id
-
getLaunchToken
Description copied from interface:Informational
Token associated with the workflow to correlate with messaging. The same token is associated with a message requesting action on the workflow. At the time of consumption, if the token on the workflow does not match the token on the message, then the message is dropped, and it is assumed the state of the workflow changed with a new, forthcoming message.- Specified by:
getLaunchToken
in interfaceInformational
- Returns:
- Token associated with the workflow to correlate with messaging
-
getReference
-
getName
Description copied from interface:Informational
The unique name identifier for this workflow. This name should match the Spring bean name for theSimpleWorkflow
instance.- Specified by:
getName
in interfaceInformational
- Returns:
- The unique name identifier for this workflow
-
getDescription
Description copied from interface:Informational
A short description of the purpose of this workflow.- Specified by:
getDescription
in interfaceInformational
- Returns:
- A short description of the purpose of this workflow
-
getStatus
Description copied from interface:Informational
The status of the workflow. SeeWorkflowStatus
.- Specified by:
getStatus
in interfaceInformational
- Returns:
- The status of the workflow
-
getLastStepTimeout
-
getLastStepName
-
getLastException
Description copied from interface:Informational
The most recent exception that took place during a previous workflow execution.- Specified by:
getLastException
in interfaceInformational
- Returns:
- The most recent exception
-
getContextValues
Description copied from interface:Informational
Key/Value pairs of information passed to the workflow when it was started.- Specified by:
getContextValues
in interfaceInformational
- Returns:
- Key/Value pairs of information
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setLaunchToken
-
setReference
-
setName
-
setDescription
-
setStatus
Description copied from interface:Informational
The status of the workflow. SeeWorkflowStatus
.- Specified by:
setStatus
in interfaceInformational
- Parameters:
status
- The status of the workflow
-
setLastStepTimeout
Description copied from interface:Informational
The timestamp at which the workflow will have exceeded the timeout boundary for activity execution for the activity identified byInformational.setLastStepName(String)
.- Specified by:
setLastStepTimeout
in interfaceInformational
- Parameters:
lastStepTimeout
- The timestamp at which the workflow will have exceeded the timeout boundary
-
setLastStepName
Description copied from interface:Informational
The name of the most recent activity that is presumed to be in-process- Specified by:
setLastStepName
in interfaceInformational
- Parameters:
lastStepName
- The name of the most recent activity that is presumed to be in-process
-
setLastException
Description copied from interface:Informational
The most recent exception that took place during a previous workflow execution.- Specified by:
setLastException
in interfaceInformational
- Parameters:
lastException
- The most recent exception
-
setContextValues
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) - Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-