If
Declares a task whose boolean picks one of two tasks; the other is skipped.
The task's ID is the class's simple name with its first character lowercased, so HasRows.class becomes hasRows. Use If(id, definition) to set it, and ConditionRef.config for the task's other settings:
dag.If(HasRows.class).config("retries", 2).Then(load).Else(reportEmpty);Content copied to clipboard
Return
The condition, to name each side on.
Parameters
definition
Class that implements ConditionTask. Must have a public no-arg constructor.
Throws
if a task with the same ID is already registered.
Declares a task whose boolean picks one of two tasks, under the task ID id.
Return
The condition, to name each side on.
Parameters
id
Task identifier, unique within this Dag.
definition
Class that implements ConditionTask. Must have a public no-arg constructor.
See also
Throws
if a task with the same ID is already registered.