Skip to main content

Class: CreateWorkflowRuleRequest

workflowservice.v1.CreateWorkflowRuleRequest

Represents a CreateWorkflowRuleRequest.

Properties​

description​

• description: string

Rule description.Will be stored with the rule.


forceScan​

• forceScan: boolean

If true, the rule will be applied to the currently running workflows via batch job. If not set , the rule will only be applied when triggering condition is satisfied. visibility_query in the rule will be used to select the workflows to apply the rule to.


identity​

• identity: string

Identity of the actor who created the rule. Will be stored with the rule.


namespace​

• namespace: string

CreateWorkflowRuleRequest namespace.


requestId​

• requestId: string

Used to de-dupe requests. Typically should be UUID.


spec​

• Optional spec: null | $Properties

The rule specification .

Methods​

toJSON​

▸ toJSON(): Object

Converts this CreateWorkflowRuleRequest to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): CreateWorkflowRuleRequest & $Shape

Creates a new CreateWorkflowRuleRequest instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

CreateWorkflowRuleRequest & $Shape

CreateWorkflowRuleRequest instance

▸ create(properties?): CreateWorkflowRuleRequest

Parameters​

NameType
properties?$Properties

Returns​

CreateWorkflowRuleRequest


decode​

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

Decodes a CreateWorkflowRuleRequest message from the specified reader or buffer.

Parameters​

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

Returns​

CreateWorkflowRuleRequest & $Shape

CreateWorkflowRuleRequest

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): CreateWorkflowRuleRequest & $Shape

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

CreateWorkflowRuleRequest & $Shape

CreateWorkflowRuleRequest

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 CreateWorkflowRuleRequest message. Does not implicitly temporal.api.workflowservice.v1.CreateWorkflowRuleRequest.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesCreateWorkflowRuleRequest message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesCreateWorkflowRuleRequest message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): CreateWorkflowRuleRequest

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

CreateWorkflowRuleRequest

CreateWorkflowRuleRequest


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageCreateWorkflowRuleRequestCreateWorkflowRuleRequest
options?IConversionOptionsConversion options

Returns​

Object

Plain object