Switch

fun Switch(definition: Class<out SwitchTask>): SwitchRef

Declares a switch in this group, as DagDef.Switch does for the Dag.

Return

The switch, to list its cases on.

Parameters

definition

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

Throws

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


fun Switch(id: String, definition: Class<out SwitchTask>): SwitchRef

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

Return

The switch, to list its cases on.

Parameters

id

Task ID within this group.

definition

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

See also

Throws

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