public class NotifWorkflowExecution extends BasePOJO
Constructor and Description |
---|
NotifWorkflowExecution(WorkflowExecutionDataObject pDataObject,
boolean pPartialDeployment,
boolean pBuildWorkflow,
boolean pIsChangeLogNeededWithEvent)
Create an instance of this object from the information stored in the database.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<EmailAttachment> |
createEmailAttachmentsUsingPluginExeuctionLogs()
Take logs associated with an instance, if more than one, zip them.
|
java.util.List<NotifScmCommit> |
getChangeLogs()
Returns the SCM change logs for this project workflow request.
|
java.lang.String |
getFaultData()
Returns the summary error data for the workflow execution.
|
java.lang.Long |
getId()
Returns the internal identifier of the workflow execution.
|
NotifInstance |
getInstance()
Returns the instance that the workflow execution was targeted to.
|
java.util.List<NotifOutput> |
getOutputs()
Returns the list of outputs resulting from this workflow execution.
|
java.util.List<NotifPartialDeploymentFileResult> |
getPartialDeploymentFileResults()
Returns the file level results from this workflow execution.
|
NotifReportData |
getReportFile(java.lang.String pFileName)
Returns the report file details and data for the given name from this execution.
|
java.util.List<NotifReportData> |
getReportFiles()
Returns all the report files detail and data for this workflow execution.
|
java.util.List<NotifExecutionTask> |
getTasks()
Returns the list of tasks for this workflow execution.
|
protected java.util.List<NotifScmCommit> |
toNotifScmCommits(java.util.List<ScmCommitDataObject> pScmCommitDataObjects)
This method is also available in BaseNotificationPayload
|
public NotifWorkflowExecution(WorkflowExecutionDataObject pDataObject, boolean pPartialDeployment, boolean pBuildWorkflow, boolean pIsChangeLogNeededWithEvent)
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 executionpublic java.lang.Long getId()
public NotifInstance getInstance()
public java.lang.String getFaultData()
public java.util.List<NotifOutput> getOutputs()
public java.util.List<NotifPartialDeploymentFileResult> getPartialDeploymentFileResults() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<EmailAttachment> createEmailAttachmentsUsingPluginExeuctionLogs()
public java.util.List<NotifReportData> getReportFiles() throws java.sql.SQLException
pPayload
- Returns all the report files detail and data for this workflow execution.java.sql.SQLException
public NotifReportData getReportFile(java.lang.String pFileName) throws java.sql.SQLException
pFileName
- The report file name from this execution.java.sql.SQLException
public java.util.List<NotifExecutionTask> getTasks() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<NotifScmCommit> getChangeLogs() throws java.sql.SQLException
java.sql.SQLException
- If the information cannot be retrieved from the database.protected java.util.List<NotifScmCommit> toNotifScmCommits(java.util.List<ScmCommitDataObject> pScmCommitDataObjects)
pScmCommitDataObjects
-