Skip to main content

Class: WorkflowRule

rules.v1.WorkflowRule

WorkflowRule describes a rule that can be applied to any workflow in this namespace.

Implements

Constructors

constructor

new WorkflowRule(properties?): WorkflowRule

Constructs a new WorkflowRule.

Parameters

NameTypeDescription
properties?IWorkflowRuleProperties to set

Returns

WorkflowRule

Properties

createTime

Optional createTime: null | ITimestamp

Rule creation time.

Implementation of

IWorkflowRule.createTime


createdByIdentity

createdByIdentity: string

Identity of the actor that created the rule (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: It is better reflect the intent this way, we will also have updated_by. --) (-- api-linter: core::0142::time-field-names=disabled aip.dev/not-precedent: Same as above. All other options sounds clumsy --)

Implementation of

IWorkflowRule.createdByIdentity


description

description: string

Rule description.

Implementation of

IWorkflowRule.description


spec

Optional spec: null | IWorkflowRuleSpec

Rule specification

Implementation of

IWorkflowRule.spec

Methods

toJSON

toJSON(): Object

Converts this WorkflowRule to JSON.

Returns

Object

JSON object


create

create(properties?): WorkflowRule

Creates a new WorkflowRule instance using the specified properties.

Parameters

NameTypeDescription
properties?IWorkflowRuleProperties to set

Returns

WorkflowRule

WorkflowRule instance


decode

decode(reader, length?): WorkflowRule

Decodes a WorkflowRule message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

WorkflowRule

WorkflowRule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): WorkflowRule

Decodes a WorkflowRule message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

WorkflowRule

WorkflowRule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified WorkflowRule message. Does not implicitly temporal.api.rules.v1.WorkflowRule.verify|verify messages.

Parameters

NameTypeDescription
messageIWorkflowRuleWorkflowRule message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified WorkflowRule message, length delimited. Does not implicitly temporal.api.rules.v1.WorkflowRule.verify|verify messages.

Parameters

NameTypeDescription
messageIWorkflowRuleWorkflowRule message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): WorkflowRule

Creates a WorkflowRule message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

WorkflowRule

WorkflowRule


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for WorkflowRule

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

Creates a plain object from a WorkflowRule message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageWorkflowRuleWorkflowRule
options?IConversionOptionsConversion options

Returns

Object

Plain object