Interface WorkReport

  • All Known Implementing Classes:
    DefaultWorkReport, ParallelFlowReport

    public interface WorkReport
    Execution report of a unit of work.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Method Detail

      • getStatus

        WorkStatus getStatus()
        Get work execution status.
        Returns:
        execution status
      • getError

        Throwable getError()
        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.
        Returns:
        error
      • getWorkContext

        WorkContext getWorkContext()
        Get the last work context of the flow
        Returns:
        last work context of the flow