AppendVariableActivity Class

public final class AppendVariableActivity
extends ControlActivity

Append value for a Variable of type Array.

Constructor Summary

Constructor Description
AppendVariableActivity()

Creates an instance of AppendVariableActivity class.

Method Summary

Modifier and Type Method and Description
static AppendVariableActivity fromJson(JsonReader jsonReader)

Reads an instance of AppendVariableActivity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of activity.

void validate()

Validates the instance.

Object value()

Get the value property: Value to be appended.

String variableName()

Get the variableName property: Name of the variable whose value needs to be appended to.

AppendVariableActivity withDependsOn(List<ActivityDependency> dependsOn)

Set the dependsOn property: Activity depends on condition.

AppendVariableActivity withDescription(String description)

Set the description property: Activity description.

AppendVariableActivity withName(String name)

Set the name property: Activity name.

AppendVariableActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

Set the onInactiveMarkAs property: Status result of the activity when the state is set to Inactive.

AppendVariableActivity withState(ActivityState state)

Set the state property: Activity state.

AppendVariableActivity withUserProperties(List<UserProperty> userProperties)

Set the userProperties property: Activity user properties.

AppendVariableActivity withValue(Object value)

Set the value property: Value to be appended.

AppendVariableActivity withVariableName(String variableName)

Set the variableName property: Name of the variable whose value needs to be appended to.

Methods inherited from Activity

Methods inherited from ControlActivity

Methods inherited from java.lang.Object

Constructor Details

AppendVariableActivity

public AppendVariableActivity()

Creates an instance of AppendVariableActivity class.

Method Details

fromJson

public static AppendVariableActivity fromJson(JsonReader jsonReader)

Reads an instance of AppendVariableActivity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AppendVariableActivity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AppendVariableActivity.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of activity.

Overrides:

AppendVariableActivity.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

AppendVariableActivity.validate()

value

public Object value()

Get the value property: Value to be appended. Type: could be a static value matching type of the variable item or Expression with resultType matching type of the variable item.

Returns:

the value value.

variableName

public String variableName()

Get the variableName property: Name of the variable whose value needs to be appended to.

Returns:

the variableName value.

withDependsOn

public AppendVariableActivity withDependsOn(List<ActivityDependency> dependsOn)

Set the dependsOn property: Activity depends on condition.

Overrides:

AppendVariableActivity.withDependsOn(List<ActivityDependency> dependsOn)

Parameters:

dependsOn

withDescription

public AppendVariableActivity withDescription(String description)

Set the description property: Activity description.

Overrides:

AppendVariableActivity.withDescription(String description)

Parameters:

description

withName

public AppendVariableActivity withName(String name)

Set the name property: Activity name.

Overrides:

AppendVariableActivity.withName(String name)

Parameters:

name

withOnInactiveMarkAs

public AppendVariableActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

Set the onInactiveMarkAs property: 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.

Overrides:

AppendVariableActivity.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

Parameters:

onInactiveMarkAs

withState

public AppendVariableActivity withState(ActivityState state)

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

Overrides:

AppendVariableActivity.withState(ActivityState state)

Parameters:

state

withUserProperties

public AppendVariableActivity withUserProperties(List<UserProperty> userProperties)

Set the userProperties property: Activity user properties.

Overrides:

AppendVariableActivity.withUserProperties(List<UserProperty> userProperties)

Parameters:

userProperties

withValue

public AppendVariableActivity withValue(Object value)

Set the value property: Value to be appended. Type: could be a static value matching type of the variable item or Expression with resultType matching type of the variable item.

Parameters:

value - the value value to set.

Returns:

the AppendVariableActivity object itself.

withVariableName

public AppendVariableActivity withVariableName(String variableName)

Set the variableName property: Name of the variable whose value needs to be appended to.

Parameters:

variableName - the variableName value to set.

Returns:

the AppendVariableActivity object itself.

Applies to