workflows.services.wizard ========================= .. py:module:: workflows.services.wizard .. autoapi-nested-parse:: Utilities to transform wizard input into a workflow definition schema. This module exposes a single helper to convert simple wizard-provided lists of events and steps into the internal workflow-definition JSON structure. Module Contents --------------- .. py:function:: transform_to_definition_schema(events, steps) Convert wizard input into an internal workflow-definition schema. :param events: List of event descriptors, each containing protocol and operation. :param steps: Ordered list of step descriptors, each with type and parameters. :returns: Workflow definition containing: - "events": the input events. - "steps": steps with generated IDs ("step-1", "step-2", ...). - "transitions": linear transitions linking steps on the "next" signal. :rtype: dict[str, Any]