Optional
await?: booleandefault is true; if false, will not await the execution
Optional
config?: WorkflowConfigthe workflow configuration object
Optional
entity?: stringif invoking a workflow, passing 'entity' will apply the value as the workflowName, taskQueue, and prefix, ensuring the FT.SEARCH index is properly scoped. This is a convenience method but limits options.
Optional
expire?: numbersets the number of seconds a workflow may exist after completion. As the process engine is an in-memory cache, the default policy is to expire and scrub the job hash as soon as it completes.
Optional
guid?: stringProvide to set the engine name. This MUST be unique, so do not provide unless it is guaranteed to be a unique engine/worker guid when identifying the point of presence within the mesh.
Optional
marker?: StringStringTypemarker data (begins with a -)
Optional
namespace?: stringthe namespace for the workflow
Optional
originthe entry point workflow id
Optional
parentthe parent workflow id; adjacent ancestor ID
Optional
pending?: numberIf provided, the job will initialize in a pending state, reserving
only the job ID (HSETNX) and persisting search and marker (if provided).
If a resume
signal is sent before the specified number of seconds,
the job will resume as normal, transitioning to the adjacent children
of the trigger. If the job is not resumed within the number
of seconds specified, the job will be scrubbed. No dependencies
are added for a job in a pending state; however, dependencies
will be added after the job is resumed if relevant.
Optional
persistent?: booleansystem flag to indicate that the flow should remain open beyond main method completion while still emitting the 'job done' event
Optional
search?: WorkflowSearchOptionsthe full-text-search (RediSearch) options for the workflow
Optional
signaldefault is true; set to false to optimize workflows that do not require a signal in
Optional
taskthe task queue for the workflow; optional if entity is provided
Optional
workflowthe job id
Optional
workflowthe name of the user's workflow function; optional if 'entity' is provided
Optional
workflowOpenTelemetry span context for the workflow
Optional
workflowOpenTelemetry trace context for the workflow
input arguments to pass in