IfConditionActivity Class
- java.
lang. Object - com.
azure. resourcemanager. datafactory. models. Activity - com.
azure. resourcemanager. datafactory. models. ControlActivity - com.
azure. resourcemanager. datafactory. models. IfConditionActivity
- com.
- com.
- com.
public final class IfConditionActivity
extends ControlActivity
This activity evaluates a boolean expression and executes either the activities under the ifTrueActivities property or the ifFalseActivities property depending on the result of the expression.
Constructor Summary
| Constructor | Description |
|---|---|
| IfConditionActivity() |
Creates an instance of If |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Expression |
expression()
Get the expression property: An expression that would evaluate to Boolean. |
|
static
If |
fromJson(JsonReader jsonReader)
Reads an instance of If |
| List<Activity> |
ifFalseActivities()
Get the if |
| List<Activity> |
ifTrueActivities()
Get the if |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Type of activity. |
| void |
validate()
Validates the instance. |
|
If |
withDependsOn(List<ActivityDependency> dependsOn)
Set the depends |
|
If |
withDescription(String description)
Set the description property: Activity description. |
|
If |
withExpression(Expression expression)
Set the expression property: An expression that would evaluate to Boolean. |
|
If |
withIfFalseActivities(List<Activity> ifFalseActivities)
Set the if |
|
If |
withIfTrueActivities(List<Activity> ifTrueActivities)
Set the if |
|
If |
withName(String name)
Set the name property: Activity name. |
|
If |
withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)
Set the on |
|
If |
withState(ActivityState state)
Set the state property: Activity state. |
|
If |
withUserProperties(List<UserProperty> userProperties)
Set the user |
Methods inherited from Activity
Methods inherited from ControlActivity
Methods inherited from java.lang.Object
Constructor Details
IfConditionActivity
public IfConditionActivity()
Creates an instance of IfConditionActivity class.
Method Details
expression
public Expression expression()
Get the expression property: An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.
Returns:
fromJson
public static IfConditionActivity fromJson(JsonReader jsonReader)
Reads an instance of IfConditionActivity from the JsonReader.
Parameters:
Returns:
Throws:
ifFalseActivities
public List<Activity> ifFalseActivities()
Get the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action.
Returns:
ifTrueActivities
public List<Activity> ifTrueActivities()
Get the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
IfConditionActivity.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of activity.
Overrides:
IfConditionActivity.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
IfConditionActivity.validate()withDependsOn
public IfConditionActivity withDependsOn(List<ActivityDependency> dependsOn)
Set the dependsOn property: Activity depends on condition.
Overrides:
IfConditionActivity.withDependsOn(List<ActivityDependency> dependsOn)Parameters:
withDescription
public IfConditionActivity withDescription(String description)
Set the description property: Activity description.
Overrides:
IfConditionActivity.withDescription(String description)Parameters:
withExpression
public IfConditionActivity withExpression(Expression expression)
Set the expression property: An expression that would evaluate to Boolean. This is used to determine the block of activities (ifTrueActivities or ifFalseActivities) that will be executed.
Parameters:
Returns:
withIfFalseActivities
public IfConditionActivity withIfFalseActivities(List<Activity> ifFalseActivities)
Set the ifFalseActivities property: List of activities to execute if expression is evaluated to false. This is an optional property and if not provided, the activity will exit without any action.
Parameters:
Returns:
withIfTrueActivities
public IfConditionActivity withIfTrueActivities(List<Activity> ifTrueActivities)
Set the ifTrueActivities property: List of activities to execute if expression is evaluated to true. This is an optional property and if not provided, the activity will exit without any action.
Parameters:
Returns:
withName
public IfConditionActivity withName(String name)
Set the name property: Activity name.
Overrides:
IfConditionActivity.withName(String name)Parameters:
withOnInactiveMarkAs
public IfConditionActivity 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:
IfConditionActivity.withOnInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs)Parameters:
withState
public IfConditionActivity 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:
IfConditionActivity.withState(ActivityState state)Parameters:
withUserProperties
public IfConditionActivity withUserProperties(List<UserProperty> userProperties)
Set the userProperties property: Activity user properties.
Overrides:
IfConditionActivity.withUserProperties(List<UserProperty> userProperties)Parameters: