Class RepeatFlow
- java.lang.Object
-
- com.redhat.parodos.workflows.workflow.RepeatFlow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepeatFlow.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkReportexecute(WorkContext workContext)Execute the unit of work and return its report.StringgetName()The name of the unit of work.WorkFlowPropertiesMetadatagetProperties()voidsetProperties(WorkFlowPropertiesMetadata properties)
-
-
-
Method Detail
-
execute
public WorkReport execute(WorkContext workContext)
Execute the unit of work and return its report. Implementations are required to catch any checked or unchecked exceptions and return aWorkReportinstance with a status ofWorkStatus.FAILEDand a reference to the exception.- Parameters:
workContext- context in which this unit of work is being executed- Returns:
- the execution report
-
getName
public String getName()
Description copied from interface:WorkThe name of the unit of work. The name must be unique within a workflow definition.
-
getProperties
public WorkFlowPropertiesMetadata getProperties()
- Specified by:
getPropertiesin interfaceWorkFlow
-
setProperties
public void setProperties(WorkFlowPropertiesMetadata properties)
- Specified by:
setPropertiesin interfaceWorkFlow
-
-