SwitchActivity Class

This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property.

Constructor

SwitchActivity(*args: Any, **kwargs: Any)

Variables

Name Description
name
str

Activity name. Required.

description
str

Activity description.

state

Activity state. This is an optional property and if not provided, the state will be Active by default. Known values are: "Active" and "Inactive".

on_inactive_mark_as

Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default. Known values are: "Succeeded", "Failed", and "Skipped".

depends_on

Activity depends on condition.

user_properties

Activity user properties.

type_properties

Switch activity properties. Required.

type
str

Type of activity. Required. Default value is "Switch".

Attributes

type

Type of activity. Required. Default value is "Switch".

type: Literal['Switch']

type_properties

Switch activity properties. Required.

type_properties: _models.SwitchActivityTypeProperties