Class DefaultWorkReport
java.lang.Object
com.redhat.parodos.workflows.work.DefaultWorkReport
- All Implemented Interfaces:
WorkReport
Default implementation of
WorkReport.- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkReport(WorkStatus status, WorkContext workContext) Create a newDefaultWorkReport.DefaultWorkReport(WorkStatus status, WorkContext workContext, Throwable error) Create a newDefaultWorkReport. -
Method Summary
-
Constructor Details
-
DefaultWorkReport
Create a newDefaultWorkReport.- Parameters:
status- of work
-
DefaultWorkReport
Create a newDefaultWorkReport.- Parameters:
status- of workerror- if any
-
-
Method Details
-
getStatus
Description copied from interface:WorkReportGet work execution status.- Specified by:
getStatusin interfaceWorkReport- Returns:
- execution status
-
getError
Description copied from interface:WorkReportGet 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.- Specified by:
getErrorin interfaceWorkReport- Returns:
- error
-
getWorkContext
Description copied from interface:WorkReportGet the last work context of the flow- Specified by:
getWorkContextin interfaceWorkReport- Returns:
- last work context of the flow
-
toString
-