If

fun If(definition: Class<out ConditionTask>): ConditionRef

Declares a condition in this group, as DagDef.If does for the Dag.

Return

The condition, to name each side on.

Parameters

definition

Class that implements ConditionTask. Must have a public no-arg constructor.

Throws

if the Dag already has a task or task group with the resulting ID.


fun If(id: String, definition: Class<out ConditionTask>): ConditionRef

Declares a condition in this group under the task ID <group ID>.<id>.

Return

The condition, to name each side on.

Parameters

id

Task ID within this group.

definition

Class that implements ConditionTask. Must have a public no-arg constructor.

See also

Throws

if the Dag already has a task or task group with the resulting ID.