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 booleanbooleanorg.modelmapper.ModelMapperfromMe()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.TenantJpaTrackinginthashCode()voidsetContextId(String contextId) voidsetContextValues(Set<JpaContextValue> contextValues) voidsetDescription(String description) voidsetLastException(String lastException) The most recent exception that took place during a previous workflow execution.voidsetLastStepName(String lastStepName) The name of the most recent activity that is presumed to be in-processvoidsetLastStepTimeout(Long lastStepTimeout) The timestamp at which the workflow will have exceeded the timeout boundary for activity execution for the activity identified byInformational.setLastStepName(String).voidsetLaunchToken(String launchToken) voidvoidsetReference(String reference) voidThe status of the workflow.voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) org.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getDisplay, getNotificationStates, getNotificationStates, setNotificationStatesMethods 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:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getContextId
Description copied from interface:InformationalThe context id of the workflow (primary key)- Specified by:
getContextIdin interfaceInformational- Specified by:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Returns:
- The context id
-
getLaunchToken
Description copied from interface:InformationalToken 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:
getLaunchTokenin interfaceInformational- Returns:
- Token associated with the workflow to correlate with messaging
-
getReference
-
getName
Description copied from interface:InformationalThe unique name identifier for this workflow. This name should match the Spring bean name for theSimpleWorkflowinstance.- Specified by:
getNamein interfaceInformational- Returns:
- The unique name identifier for this workflow
-
getDescription
Description copied from interface:InformationalA short description of the purpose of this workflow.- Specified by:
getDescriptionin interfaceInformational- Returns:
- A short description of the purpose of this workflow
-
getStatus
Description copied from interface:InformationalThe status of the workflow. SeeWorkflowStatus.- Specified by:
getStatusin interfaceInformational- Returns:
- The status of the workflow
-
getLastStepTimeout
-
getLastStepName
-
getLastException
Description copied from interface:InformationalThe most recent exception that took place during a previous workflow execution.- Specified by:
getLastExceptionin interfaceInformational- Returns:
- The most recent exception
-
getContextValues
Description copied from interface:InformationalKey/Value pairs of information passed to the workflow when it was started.- Specified by:
getContextValuesin interfaceInformational- Returns:
- Key/Value pairs of information
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setContextId
- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setLaunchToken
-
setReference
-
setName
-
setDescription
-
setStatus
Description copied from interface:InformationalThe status of the workflow. SeeWorkflowStatus.- Specified by:
setStatusin interfaceInformational- Parameters:
status- The status of the workflow
-
setLastStepTimeout
Description copied from interface:InformationalThe timestamp at which the workflow will have exceeded the timeout boundary for activity execution for the activity identified byInformational.setLastStepName(String).- Specified by:
setLastStepTimeoutin interfaceInformational- Parameters:
lastStepTimeout- The timestamp at which the workflow will have exceeded the timeout boundary
-
setLastStepName
Description copied from interface:InformationalThe name of the most recent activity that is presumed to be in-process- Specified by:
setLastStepNamein interfaceInformational- Parameters:
lastStepName- The name of the most recent activity that is presumed to be in-process
-
setLastException
Description copied from interface:InformationalThe most recent exception that took place during a previous workflow execution.- Specified by:
setLastExceptionin interfaceInformational- Parameters:
lastException- The most recent exception
-
setContextValues
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking) - Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-