Optionalcontext: JobStateif the job is created/deleted/created with the same key, the 'gid' ensures no stale messages (such as sleep delays) enter the workstream. Any message with a mismatched gid belongs to a prior job and can safely be ignored/dropped.
OptionalmsgGID: stringExecutes the 3-step Leg1 protocol for Category B activities (Leg1-only with children, e.g., Hook passthrough, Signal, Interrupt-another). Uses the incoming Leg1 message GUID as the GUID ledger key.
Step A: setState + notarizeLeg1Completion + step1 markers (transaction 1) Step B: publish children + step2 markers + setStatusAndCollateGuid (transaction 2) Step C: if edge → runJobCompletionTasks + step3 markers + finalize (transaction 3)
true if this transition caused the job to complete
Executes the 3-step Leg2 protocol using GUID ledger for crash-safe resume. Each step bundles durable writes with its concluding digit update in a single transaction.
true if this transition caused the job to complete
Extracts the job status from the last result of a transaction. Used by subclass Leg1 process methods for telemetry.
Extracts the thresholdHit value from transaction results. The setStatusAndCollateGuid result is the last item.
Optionaltransaction: ProviderTransactionOptionaltransaction: ProviderTransactionThe signal activity will hook one. Accepts an optional transaction so the hook publish can be bundled with the Leg1 completion marker.
Optionaltransaction: ProviderTransaction
Sends a signal to one or more paused flows, resuming their execution. The
signalactivity is the counterpart to aHookactivity configured with a webhook listener. It allows any flow to reach into another flow and deliver data to a waiting hook, regardless of the relationship between the flows.YAML Configuration — Signal One
Resumes a single paused flow by publishing to the hook's topic. Use
subtype: onewhen you know the specific hook topic to signal.A
code: 202signal delivers data but keeps the hook alive for additional signals. Acode: 200(default) closes the hook.YAML Configuration — Signal All
Resumes all paused flows that share a common job key facet. Use
subtype: allfor fan-out patterns where multiple waiting flows should be resumed simultaneously.Execution Model
Signal is a Category B (Leg1-only with children) activity:
hookOne) or fires best-effort (hookAll).executeLeg1StepProtocolto transition to adjacent activities.See
SignalActivity for the TypeScript interface