ExecutionActivity Class

public class ExecutionActivity
extends Activity

Base class for all execution activities.

Constructor Summary

Constructor Description
ExecutionActivity()

Creates an instance of ExecutionActivity class.

Method Summary

Modifier and Type Method and Description
LinkedServiceReference linkedServiceName()

Get the linkedServiceName property: Linked service reference.

ActivityPolicy policy()

Get the policy property: Activity policy.

String type()

Get the type property: Type of activity.

void validate()

Validates the instance.

ExecutionActivity withDependsOn(List<ActivityDependency> dependsOn)

Set the dependsOn property: Activity depends on condition.

ExecutionActivity withDescription(String description)

Set the description property: Activity description.

ExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)

Set the linkedServiceName property: Linked service reference.

ExecutionActivity withName(String name)

Set the name property: Activity name.

ExecutionActivity withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

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

ExecutionActivity withPolicy(ActivityPolicy policy)

Set the policy property: Activity policy.

ExecutionActivity withState(ActivityState state)

Set the state property: Activity state.

ExecutionActivity withUserProperties(List<UserProperty> userProperties)

Set the userProperties property: Activity user properties.

Methods inherited from Activity

Methods inherited from java.lang.Object

Constructor Details

ExecutionActivity

public ExecutionActivity()

Creates an instance of ExecutionActivity class.

Method Details

linkedServiceName

public LinkedServiceReference linkedServiceName()

Get the linkedServiceName property: Linked service reference.

Returns:

the linkedServiceName value.

policy

public ActivityPolicy policy()

Get the policy property: Activity policy.

Returns:

the policy value.

type

public String type()

Get the type property: Type of activity.

Overrides:

ExecutionActivity.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ExecutionActivity.validate()

withDependsOn

public ExecutionActivity withDependsOn(List dependsOn)

Set the dependsOn property: Activity depends on condition.

Overrides:

ExecutionActivity.withDependsOn(List<ActivityDependency> dependsOn)

Parameters:

dependsOn

withDescription

public ExecutionActivity withDescription(String description)

Set the description property: Activity description.

Overrides:

ExecutionActivity.withDescription(String description)

Parameters:

description

withLinkedServiceName

public ExecutionActivity withLinkedServiceName(LinkedServiceReference linkedServiceName)

Set the linkedServiceName property: Linked service reference.

Parameters:

linkedServiceName - the linkedServiceName value to set.

Returns:

the ExecutionActivity object itself.

withName

public ExecutionActivity withName(String name)

Set the name property: Activity name.

Overrides:

ExecutionActivity.withName(String name)

Parameters:

name

withOnInactiveMarkAs

public ExecutionActivity 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:

ExecutionActivity.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)

Parameters:

onInactiveMarkAs

withPolicy

public ExecutionActivity withPolicy(ActivityPolicy policy)

Set the policy property: Activity policy.

Parameters:

policy - the policy value to set.

Returns:

the ExecutionActivity object itself.

withState

public ExecutionActivity 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:

ExecutionActivity.withState(ActivityState state)

Parameters:

state

withUserProperties

public ExecutionActivity withUserProperties(List userProperties)

Set the userProperties property: Activity user properties.

Overrides:

ExecutionActivity.withUserProperties(List<UserProperty> userProperties)

Parameters:

userProperties

Applies to