public class DefaultWorkReport extends Object implements WorkReport
WorkReport.| Constructor and Description |
|---|
DefaultWorkReport(WorkStatus status,
WorkContext workContext)
Create a new
DefaultWorkReport. |
DefaultWorkReport(WorkStatus status,
WorkContext workContext,
Throwable error)
Create a new
DefaultWorkReport. |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getError()
Get error if any.
|
WorkStatus |
getStatus()
Get work execution status.
|
WorkContext |
getWorkContext()
Get the last work context of the flow
|
String |
toString() |
public DefaultWorkReport(WorkStatus status, WorkContext workContext)
DefaultWorkReport.status - of workpublic DefaultWorkReport(WorkStatus status, WorkContext workContext, Throwable error)
DefaultWorkReport.status - of workerror - if anypublic WorkStatus getStatus()
WorkReportgetStatus in interface WorkReportpublic Throwable getError()
WorkReportnull, 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.getError in interface WorkReportpublic WorkContext getWorkContext()
WorkReportgetWorkContext in interface WorkReportCopyright © 2020. All rights reserved.