workflows.services.executors.webhook

Webhook step executor.

Module Contents

workflows.services.executors.webhook.logger[source]
class workflows.services.executors.webhook.WebhookExecutor[source]

Bases: workflows.services.executors.factory.AbstractStepExecutor

Execute 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:
Returns:

ExecutorResult describing step outcome and exported vars.

Return type:

workflows.services.types.ExecutorResult