SwitchActivityResponse

data class SwitchActivityResponse(val cases: List<SwitchCaseResponse>? = null, val defaultActivities: List<Any>? = null, val dependsOn: List<ActivityDependencyResponse>? = null, val description: String? = null, val name: String, val on: ExpressionResponse, val onInactiveMarkAs: String? = null, val state: String? = null, val type: String, val userProperties: List<UserPropertyResponse>? = null)

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

Constructors

Link copied to clipboard
constructor(cases: List<SwitchCaseResponse>? = null, defaultActivities: List<Any>? = null, dependsOn: List<ActivityDependencyResponse>? = null, description: String? = null, name: String, on: ExpressionResponse, onInactiveMarkAs: String? = null, state: String? = null, type: String, userProperties: List<UserPropertyResponse>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.

Link copied to clipboard
val defaultActivities: List<Any>? = null

List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action.

Link copied to clipboard

Activity depends on condition.

Link copied to clipboard
val description: String? = null

Activity description.

Link copied to clipboard

Activity name.

Link copied to clipboard

An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.

Link copied to clipboard

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.

Link copied to clipboard
val state: String? = null

Activity state. This is an optional property and if not provided, the state will be Active by default.

Link copied to clipboard

Type of activity. Expected value is 'Switch'.

Link copied to clipboard

Activity user properties.