workflows.services.executors.webhook¶
Webhook step executor.
Module Contents¶
- class workflows.services.executors.webhook.WebhookExecutor[source]¶
Bases:
workflows.services.executors.factory.AbstractStepExecutorExecute an outbound HTTP call and optionally export values to $vars.
URL, headers, and string body templating with Django templates using a ‘ctx’ dict
Supports method, headers, body, auth (basic|bearer), timeoutSecs
result_to/result_source for whole-response capture
fine-grained exports: [{“from_path”:”json.foo”,”to_path”:”serial”}] # note: bare key allowed
Stores per-step context and returns a flat vars map for $vars merging.
- to_path:
Accepts either “serial” or “vars.serial” (we strip optional “vars.” and store under $vars).
- do_execute(instance, _signal)[source]¶
Execute the webhook step.
- Parameters:
instance (workflows.models.WorkflowInstance) – Workflow instance being executed.
_signal (str | None) – Optional signal (unused for webhook steps).
- Returns:
ExecutorResult describing step outcome and exported vars.
- Return type: