Class: WorkflowActivationJob
Represents a WorkflowActivationJob.
Properties
cancelWorkflow?
optionalcancelWorkflow?:$Properties|null
A request to cancel the workflow was received.
doUpdate?
optionaldoUpdate?:$Properties|null
A request to handle a workflow update.
fireTimer?
optionalfireTimer?:$Properties|null
A timer has fired, allowing whatever was waiting on it (if anything) to proceed
initializeWorkflow?
optionalinitializeWorkflow?:$Properties|null
A workflow is starting, record all of the information from its start event
notifyHasPatch?
optionalnotifyHasPatch?:$Properties|null
A patch marker has been detected and lang is being told that change exists. This job is strange in that it is sent pre-emptively to lang without any corresponding command being sent first.
queryWorkflow?
optionalqueryWorkflow?:$Properties|null
A request to query the workflow was received. It is guaranteed that queries (one or more) always come in their own activation after other mutating jobs.
removeFromCache?
optionalremoveFromCache?:$Properties|null
Remove the workflow identified by the [WorkflowActivation] containing this job from the cache after performing the activation. It is guaranteed that this will be the only job in the activation if present.
resolveActivity?
optionalresolveActivity?:$Properties|null
An activity was resolved, result could be completed, failed or cancelled
resolveChildWorkflowExecution?
optionalresolveChildWorkflowExecution?:$Properties|null
A child workflow was resolved, result could be completed or failed
resolveChildWorkflowExecutionStart?
optionalresolveChildWorkflowExecutionStart?:$Properties|null
A child workflow execution has started or failed to start
resolveNexusOperation?
optionalresolveNexusOperation?:$Properties|null
A nexus operation resolved.
resolveNexusOperationStart?
optionalresolveNexusOperationStart?:$Properties|null
A nexus operation started.
resolveRequestCancelExternalWorkflow?
optionalresolveRequestCancelExternalWorkflow?:$Properties|null
An attempt to cancel an external workflow resolved
resolveSignalExternalWorkflow?
optionalresolveSignalExternalWorkflow?:$Properties|null
An attempt to signal an external workflow resolved
signalWorkflow?
optionalsignalWorkflow?:$Properties|null
A request to signal the workflow was received.
updateRandomSeed?
optionalupdateRandomSeed?:$Properties|null
Workflow was reset. The randomness seed must be updated.
variant?
optionalvariant?:"initializeWorkflow"|"fireTimer"|"updateRandomSeed"|"queryWorkflow"|"cancelWorkflow"|"signalWorkflow"|"resolveActivity"|"notifyHasPatch"|"resolveChildWorkflowExecutionStart"|"resolveChildWorkflowExecution"|"resolveSignalExternalWorkflow"|"resolveRequestCancelExternalWorkflow"|"doUpdate"|"resolveNexusOperationStart"|"resolveNexusOperation"|"removeFromCache"
WorkflowActivationJob variant.
Methods
toJSON()
toJSON():
object
Converts this WorkflowActivationJob to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):WorkflowActivationJob&$Shape
Creates a new WorkflowActivationJob instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowActivationJob & $Shape
WorkflowActivationJob instance
Call Signature
staticcreate(properties?):WorkflowActivationJob
Creates a new WorkflowActivationJob instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WorkflowActivationJob
WorkflowActivationJob instance
decode()
staticdecode(reader,length?):WorkflowActivationJob&$Shape
Decodes a WorkflowActivationJob message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
WorkflowActivationJob & $Shape
WorkflowActivationJob
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):WorkflowActivationJob&$Shape
Decodes a WorkflowActivationJob message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
WorkflowActivationJob & $Shape
WorkflowActivationJob
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified WorkflowActivationJob message. Does not implicitly coresdk.workflow_activation.WorkflowActivationJob.verify|verify messages.
Parameters
message
WorkflowActivationJob message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified WorkflowActivationJob message, length delimited. Does not implicitly coresdk.workflow_activation.WorkflowActivationJob.verify|verify messages.
Parameters
message
WorkflowActivationJob message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):WorkflowActivationJob
Creates a WorkflowActivationJob message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
WorkflowActivationJob
WorkflowActivationJob
toObject()
statictoObject(message,options?):object
Creates a plain object from a WorkflowActivationJob message. Also converts values to other types if specified.
Parameters
message
WorkflowActivationJob
WorkflowActivationJob
options?
IConversionOptions
Conversion options
Returns
object
Plain object