Interface WorkflowEvent
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
WorkflowEventImpl
Represents a group of user sandbox changes that have been promoted to an approval sandbox.
- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionDescribes the action that caused this grouping to be createdWhether or not this grouping has been archived.org.broadleafcommerce.openadmin.server.security.domain.AdminUserThe admin user that created this groupingWhen this item is included in a scheduled deployment to production, this field will be populateWhether or not an error occurred during promotion of one or more of the containedWorkflowSandBoxIteminstances.getId()Whether or not promotion replay for this instance is complete.Whether or not the change set is considered critical.Whether or not promotion replay for this instance has started.getItems()TheWorkflowSandBoxItemcontained in this groupingRetrieve list ofWorkflowSandBoxIteminstances that were marked for user promotion as part of this event.Optional message further describing the groupgetName()Descriptive name for the groupingReturn an tag that identifies the jobs and events cluster node on which this instance was created.The thread state and other information necessary to replay this event in an asynchronous thread of execution.The type of promotion being performed (i.e.org.broadleafcommerce.common.sandbox.domain.SandBoxThe sandbox to which this grouping belongsThe date/time for deployment to production if this item is part of aWorkflowDeploymentintRepresents the last completed setup state while starting the promotion or approval.voidRemoves the Event's associated deploymentvoidsetActionType(SandBoxActionType actionType) Describes the action that caused this grouping to be createdvoidsetArchivedFlag(Boolean archivedFlag) Whether or not this grouping has been archived.voidsetAuthor(org.broadleafcommerce.openadmin.server.security.domain.AdminUser author) The admin user that created this groupingvoidsetDeployment(WorkflowDeployment deployment) When this item is included in a scheduled deployment to productionvoidsetHasError(Boolean hasError) Whether or not an error occurred during promotion of one or more of the containedWorkflowSandBoxIteminstances.voidvoidsetIsComplete(Boolean isComplete) voidsetIsCritical(Boolean isCritical) Whether or not the change set is considered critical.voidsetIsStarted(Boolean isStarted) voidTheWorkflowSandBoxItemcontained in this groupingvoidsetMessage(String message) Optional message further describing the groupvoidDescriptive name for the groupingvoidvoidsetPromotionDetails(PromotionDetails promotionDetails) voidsetPromotionType(PromotionType promotionType) voidsetSandBox(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) The sandbox to which this grouping belongsvoidsetScheduledDate(Date scheduledDate) The date/time for deployment to production if this item is part of aWorkflowDeploymentvoidsetSetupStatus(int setupStatus)
-
Method Details
-
getId
Long getId() -
setId
-
getName
String getName()Descriptive name for the grouping- Returns:
- descriptive name
-
setName
Descriptive name for the grouping- Parameters:
name- descriptive name
-
getMessage
String getMessage()Optional message further describing the group- Returns:
- descriptive message
-
setMessage
Optional message further describing the group- Parameters:
message- descriptive message
-
getActionType
SandBoxActionType getActionType()Describes the action that caused this grouping to be created- Returns:
- the causal agent
-
setActionType
Describes the action that caused this grouping to be created- Parameters:
actionType- the causal agent
-
getArchivedFlag
Boolean getArchivedFlag()Whether or not this grouping has been archived. Archived events are not displayed and are not selectable for deployment.- Returns:
- archived status
-
setArchivedFlag
Whether or not this grouping has been archived. Archived events are not displayed and are not selectable for deployment.- Parameters:
archivedFlag- archived status
-
getAuthor
org.broadleafcommerce.openadmin.server.security.domain.AdminUser getAuthor()The admin user that created this grouping- Returns:
- the admin user
-
setAuthor
void setAuthor(org.broadleafcommerce.openadmin.server.security.domain.AdminUser author) The admin user that created this grouping- Parameters:
author- the admin user
-
getSandBox
org.broadleafcommerce.common.sandbox.domain.SandBox getSandBox()The sandbox to which this grouping belongs- Returns:
- the sandbox
-
setSandBox
void setSandBox(org.broadleafcommerce.common.sandbox.domain.SandBox sandBox) The sandbox to which this grouping belongs- Parameters:
sandBox- the sandbox
-
getItems
List<WorkflowEventWorkflowItemXref> getItems()TheWorkflowSandBoxItemcontained in this grouping- Returns:
- the individual change items from the user's sandbox
-
setItems
TheWorkflowSandBoxItemcontained in this grouping- Parameters:
items- the individual change items from the user's sandbox
-
getHasError
Boolean getHasError()Whether or not an error occurred during promotion of one or more of the containedWorkflowSandBoxIteminstances.- Returns:
- if there was a promotion problem
-
setHasError
Whether or not an error occurred during promotion of one or more of the containedWorkflowSandBoxIteminstances.- Parameters:
hasError- if there was a promotion problem
-
getScheduledDate
Date getScheduledDate()The date/time for deployment to production if this item is part of aWorkflowDeployment- Returns:
- target date for deployment to production
-
setScheduledDate
The date/time for deployment to production if this item is part of aWorkflowDeployment- Parameters:
scheduledDate- target date for deployment to production
-
getDeployment
WorkflowDeployment getDeployment()When this item is included in a scheduled deployment to production, this field will be populate- Returns:
- scheduled deployment to production
-
setDeployment
When this item is included in a scheduled deployment to production- Parameters:
deployment- scheduled deployment to production
-
removeDeployment
void removeDeployment()Removes the Event's associated deployment -
getNodeId
String getNodeId()Return an tag that identifies the jobs and events cluster node on which this instance was created.- Returns:
- See Also:
-
DatabaseSystemEventNode
-
setNodeId
-
getIsComplete
Boolean getIsComplete()Whether or not promotion replay for this instance is complete.- Returns:
-
setIsComplete
-
getIsStarted
Boolean getIsStarted()Whether or not promotion replay for this instance has started.- Returns:
-
setIsStarted
-
getPromotionType
PromotionType getPromotionType()The type of promotion being performed (i.e. PROMOTION and APPROVE)- Returns:
-
setPromotionType
-
getPromotionDetails
PromotionDetails getPromotionDetails()The thread state and other information necessary to replay this event in an asynchronous thread of execution.- Returns:
-
setPromotionDetails
-
getSetupStatus
int getSetupStatus()Represents the last completed setup state while starting the promotion or approval. This is useful when the system needs to reset data state after detecting a catastrophic failure during the initial setup of a promotion or approval.- Returns:
- See Also:
-
setSetupStatus
void setSetupStatus(int setupStatus) -
getIsCritical
Boolean getIsCritical()Whether or not the change set is considered critical.- Returns:
- whether or not the change set is critical
-
setIsCritical
Whether or not the change set is considered critical.- Parameters:
isCritical- whether or not the change set is critical
-
getMarkedForPromotion
List<WorkflowSandBoxItem> getMarkedForPromotion()Retrieve list ofWorkflowSandBoxIteminstances that were marked for user promotion as part of this event.- Returns:
-