public abstract class WorkflowExecution extends Object
Constructor and Description |
---|
WorkflowExecution()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage() |
long |
getLastUpdated() |
abstract String |
getName() |
Status |
getStatus() |
Set<JobConfig> |
next()
Given the previous set of jobs were completed successfully,
returns a list of jobs to execute next.
|
protected abstract Set<JobConfig> |
nextJobs()
Given the previous set of jobs were completed successfully,
returns a list of jobs to execute next.
|
void |
stop(Status status,
String errorMessage)
stops future execution.
|
public abstract String getName()
public final Set<JobConfig> next()
JobConfig
to execute next, empty when there is no more workpublic final void stop(Status status, String errorMessage)
status
- status of the failure: either CANCELLED or FAILEDerrorMessage
- error messagepublic final Status getStatus()
public final long getLastUpdated()
Copyright © 2023. All Rights Reserved.