Class RepeatFlow
java.lang.Object
com.redhat.parodos.workflows.workflow.RepeatFlow
A repeat flow executes a work repeatedly until its report satisfies a given predicate.
- Author:
- Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionexecute(WorkContext workContext) Execute the unit of work and return its report.getName()The name of the unit of work.voidsetProperties(WorkFlowPropertiesMetadata properties)
-
Method Details
-
execute
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
Description copied from interface:WorkThe name of the unit of work. The name must be unique within a workflow definition. -
getProperties
- Specified by:
getPropertiesin interfaceWorkFlow
-
setProperties
- Specified by:
setPropertiesin interfaceWorkFlow
-