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 Summary
Modifier and TypeMethodDescriptiongetError()Get error if any.Get work execution status.Get the last work context of the flow
-
Method Details
-
getStatus
WorkStatus getStatus()Get work execution status.- Returns:
- execution status
-
getError
Throwable getError()Get error if any. Might benull, but usually not null when the status isWorkStatus.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
-