Interface WorkReport
-
- All Known Implementing Classes:
DefaultWorkReport,ParallelFlowReport
public interface WorkReportExecution report of a unit of work.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThrowablegetError()Get error if any.WorkStatusgetStatus()Get work execution status.WorkContextgetWorkContext()Get the last work context of the flow
-
-
-
Method Detail
-
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
-
-