Class NotifWorkflowExecution

java.lang.Object
flexagon.ff.common.core.pojos.BasePOJO
flexagon.fd.model2.notification.pojos.NotifWorkflowExecution
All Implemented Interfaces:
Serializable

public class NotifWorkflowExecution extends BasePOJO
Represents a FlexDeploy workflow execution. For use within Notification Templates.
See Also:
  • Constructor Details

    • NotifWorkflowExecution

      public NotifWorkflowExecution(WorkflowExecutionDataObject pDataObject, boolean pPartialDeployment, boolean pBuildWorkflow, boolean pIsChangeLogNeededWithEvent)
      Create an instance of this object from the information stored in the database.
      Parameters:
      pDataObject - The data from the database.
      pPartialDeployment - Whether this workflow execution is for a partial deployment project.
      pBuildWorkflow - Whether this workflow execution is a build execution
  • Method Details

    • getId

      public Long getId()
      Returns the internal identifier of the workflow execution.
      Returns:
      The internal identifier of the workflow execution.
    • getInstance

      public NotifInstance getInstance()
      Returns the instance that the workflow execution was targeted to.
      Returns:
      The instance that the workflow execution was targeted to.
    • getFaultData

      public String getFaultData()
      Returns the summary error data for the workflow execution. Null if the workflow executon is not FAILED status.
      Returns:
      The instance that the workflow execution was targeted to.
    • getOutputs

      public List<NotifOutput> getOutputs()
      Returns the list of outputs resulting from this workflow execution.
      Returns:
      The list of outputs resulting from this workflow execution.
    • getPartialDeploymentFileResults

      public List<NotifPartialDeploymentFileResult> getPartialDeploymentFileResults() throws SQLException
      Returns the file level results from this workflow execution. Applicable for partial deployment executions only.
      Returns:
      The file level results from this workflow execution.
      Throws:
      SQLException
    • createEmailAttachmentsUsingPluginExeuctionLogs

      public List<EmailAttachment> createEmailAttachmentsUsingPluginExeuctionLogs()
      Take logs associated with an instance, if more than one, zip them.
    • getReportFiles

      public List<NotifReportData> getReportFiles() throws SQLException
      Returns all the report files detail and data for this workflow execution.
      Parameters:
      pPayload - Returns all the report files detail and data for this workflow execution.
      Throws:
      SQLException
    • getReportFile

      public NotifReportData getReportFile(String pFileName) throws SQLException
      Returns the report file details and data for the given name from this execution.
      Parameters:
      pFileName - The report file name from this execution.
      Throws:
      SQLException
    • getTasks

      public List<NotifExecutionTask> getTasks() throws SQLException
      Returns the list of tasks for this workflow execution.
      Returns:
      The file level results from this workflow execution.
      Throws:
      SQLException
    • getChangeLogs

      public List<NotifScmCommit> getChangeLogs() throws SQLException
      Returns the SCM change logs for this project workflow request.
      Returns:
      The SCM change logs for this project workflow request.
      Throws:
      SQLException - If the information cannot be retrieved from the database.
    • toNotifScmCommits

      protected List<NotifScmCommit> toNotifScmCommits(List<ScmCommitDataObject> pScmCommitDataObjects)
      This method is also available in BaseNotificationPayload
      Parameters:
      pScmCommitDataObjects -
      Returns: