Class PipelineNotificationStepPayload

All Implemented Interfaces:
NotificationPayload, Serializable

public class PipelineNotificationStepPayload extends BaseNotificationPayload
See Also:
  • Constructor Details

    • PipelineNotificationStepPayload

      public PipelineNotificationStepPayload(PipelineStageStepExecDataObject pPipelineStageStepExecDataObject, NotificationEventTypeEnum pNotificationEventTypeEnum)
      Creates the notification payload
      Parameters:
      pPipelineStageStepExecDataObject - The pipeline stage step execution data.
      pNotificationEventTypeEnum - The event type.
  • Method Details

    • addRecipients

      public void addRecipients(String pAttributeGroupName)
    • getNotificationStep

      public NotificationStep getNotificationStep() throws SQLException
      Throws:
      SQLException
    • getSnapshot

      public NotifSnapshot getSnapshot() throws SQLException
      Returns the snapshot data linked to this request's pipeline execution.
      Returns:
      The snapshot data linked to this request's pipeline execution.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getEnvironment

      public NotifEnvironment getEnvironment() throws SQLException
      Returns the environment data for this request's linked pipeline stage execution.
      Returns:
      The environment data for this request's linked pipeline stage execution.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getPipelineStageExecInfo

      public NotifPipelineStageExecInfo getPipelineStageExecInfo() throws SQLException
      Returns the execution info data provided in the linked pipeline stage.
      Returns:
      The execution info data provided in the linked pipeline stage.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getAttachments

      public List<EmailAttachment> getAttachments() throws SQLException
      Description copied from interface: NotificationPayload
      Returns a list of email attachments pertaining to the event which has occurred.
      Specified by:
      getAttachments in interface NotificationPayload
      Overrides:
      getAttachments in class BaseNotificationPayload
      Returns:
      A list of email attachements.
      Throws:
      SQLException
    • getSnapshotCreatedBy

      public String getSnapshotCreatedBy() throws SQLException
      Returns the name of the user who created the snapshot linked to this step execution.
      Returns:
      The name of the user who created the snapshot linked to this step execution.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getSnapshotCreatedByFullName

      public String getSnapshotCreatedByFullName() throws SQLException
      Returns the full name of the user who created the snapshot linked to this step execution ("[First Name] [Last Name]").
      Returns:
      The full name of the user who created the snapshot linked to this step execution.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • getSnapshotCreatedByUserAndFullName

      public String getSnapshotCreatedByUserAndFullName() throws SQLException
      Throws:
      SQLException
    • getId

      public Long getId()
      Description copied from interface: NotificationPayload
      Returns the internal identifier of the object on which the event originated.
      Returns:
      The internal identifier of the object on which the event originated.
    • getStepExecutionStatus

      public String getStepExecutionStatus()
      Returns the display name of this step's execution status.
      Returns:
      The display name of this step's execution status.
    • getStepExecutionStatusEnum

      public ExecutionUnitStatus getStepExecutionStatusEnum()
      Returns the execution status enum of the step.
      Returns:
      The execution status enum of the step.
    • getStepExecutionStatusCode

      public String getStepExecutionStatusCode()
      Returns the step execution status type name of the step.
      Returns:
      The execution status type of the step.
    • getTemplateId

      public Long getTemplateId() throws SQLException
      Throws:
      SQLException
    • getSubject

      public String getSubject() throws SQLException
      Throws:
      SQLException
    • getMessage

      public String getMessage() throws SQLException
      Throws:
      SQLException
    • evaluatePipelineFlexValueScript

      protected Object evaluatePipelineFlexValueScript(PipelineScriptType pScript) throws SQLException
      Throws:
      SQLException
    • isValueExpression

      protected boolean isValueExpression(PipelineScriptType pScript)