Skip to main content

Class: WorkflowRule

rules.v1.WorkflowRule

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

Properties​

createTime​

• Optional createTime: null | $Properties

Rule creation time.


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 --)


description​

• description: string

Rule description.


spec​

• Optional spec: null | $Properties

Rule specification

Methods​

toJSON​

▸ toJSON(): Object

Converts this WorkflowRule to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): WorkflowRule & $Shape

Creates a new WorkflowRule instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

WorkflowRule & $Shape

WorkflowRule instance

▸ create(properties?): WorkflowRule

Parameters​

NameType
properties?$Properties

Returns​

WorkflowRule


decode​

▸ decode(reader, length?): WorkflowRule & $Shape

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 & $Shape

WorkflowRule

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): WorkflowRule & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

WorkflowRule & $Shape

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
message$PropertiesWorkflowRule 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
message$PropertiesWorkflowRule 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


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