Class DefaultWorkReport

java.lang.Object
com.redhat.parodos.workflows.work.DefaultWorkReport
All Implemented Interfaces:
WorkReport

public class DefaultWorkReport extends Object implements WorkReport
Default implementation of WorkReport.
Author:
Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
  • Constructor Details

  • Method Details

    • getStatus

      public WorkStatus getStatus()
      Description copied from interface: WorkReport
      Get work execution status.
      Specified by:
      getStatus in interface WorkReport
      Returns:
      execution status
    • getError

      public Throwable getError()
      Description copied from interface: WorkReport
      Get error if any. Might be null, but usually not null when the status is WorkStatus.FAILED. Typically the exception includes the exit code that might be used to drive the flow execution accordingly.
      Specified by:
      getError in interface WorkReport
      Returns:
      error
    • getWorkContext

      public WorkContext getWorkContext()
      Description copied from interface: WorkReport
      Get the last work context of the flow
      Specified by:
      getWorkContext in interface WorkReport
      Returns:
      last work context of the flow
    • toString

      public String toString()
      Overrides:
      toString in class Object