Table of Contents

Class WorkflowRuleSpec.Types.ActivityStartingTrigger

Namespace
Temporalio.Api.Rules.V1
Assembly
Temporalio.dll

Activity trigger will be triggered when an activity is about to start.

public sealed class WorkflowRuleSpec.Types.ActivityStartingTrigger : IMessage<WorkflowRuleSpec.Types.ActivityStartingTrigger>, IEquatable<WorkflowRuleSpec.Types.ActivityStartingTrigger>, IDeepCloneable<WorkflowRuleSpec.Types.ActivityStartingTrigger>, IBufferMessage, IMessage
Inheritance
WorkflowRuleSpec.Types.ActivityStartingTrigger
Implements
IBufferMessage
IMessage
Inherited Members

Constructors

ActivityStartingTrigger()

public ActivityStartingTrigger()

ActivityStartingTrigger(ActivityStartingTrigger)

public ActivityStartingTrigger(WorkflowRuleSpec.Types.ActivityStartingTrigger other)

Parameters

other WorkflowRuleSpec.Types.ActivityStartingTrigger

Fields

PredicateFieldNumber

Field number for the "predicate" field.

public const int PredicateFieldNumber = 1

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Parser

public static MessageParser<WorkflowRuleSpec.Types.ActivityStartingTrigger> Parser { get; }

Property Value

MessageParser<WorkflowRuleSpec.Types.ActivityStartingTrigger>

Predicate

Activity predicate is a SQL-like string filter parameter. It is used to match against workflow data. The following activity attributes are supported as part of the predicate:

  • ActivityType: An Activity Type is the mapping of a name to an Activity Definition..
  • ActivityId: The ID of the activity.
  • ActivityAttempt: The number attempts of the activity.
  • BackoffInterval: The current amount of time between scheduled attempts of the activity.
  • ActivityStatus: The status of the activity. Can be one of "Scheduled", "Started", "Paused".
  • TaskQueue: The name of the task queue the workflow specified that the activity should run on. Activity predicate support the following operators:
  • =, !=, >, >=, <, <=
  • AND, OR, ()
  • BETWEEN ... AND STARTS_WITH
public string Predicate { get; set; }

Property Value

string

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

Clone()

Creates a deep clone of this object.

public WorkflowRuleSpec.Types.ActivityStartingTrigger Clone()

Returns

WorkflowRuleSpec.Types.ActivityStartingTrigger

A deep clone of this object.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(ActivityStartingTrigger)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(WorkflowRuleSpec.Types.ActivityStartingTrigger other)

Parameters

other WorkflowRuleSpec.Types.ActivityStartingTrigger

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(ActivityStartingTrigger)

Merges the given message into this one.

public void MergeFrom(WorkflowRuleSpec.Types.ActivityStartingTrigger other)

Parameters

other WorkflowRuleSpec.Types.ActivityStartingTrigger

Remarks

See the user guide for precise merge semantics.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.