Skip to content

Workflow and setup flow resources

Required: identifier, title and elements. Each element has a unique name and a registered type. Optional description, active (true), async (true), debug, queue, entry, events and comments. Import is always enabled for this resource type.

Event elements must also be registered in events with matching identifier and type (without the event/ prefix). Event registration options such as module and cron frequency belong there.

[{"resource_workflow":"Example","resource":{"identifier":"Example","title":"Example","async":false,"entry":"start","elements":[{"name":"start","type":"event/manual"}],"events":[{"identifier":"start","type":"manual"}]}}]

Store this as workflows/Example.workflow.bake.json. The file is a Bakery list with a resource envelope, not the bare graph. See workflow overview and the generated event catalog.

Required title and nonempty steps. Optional description, default (false), auto_start (false), allow_root (false), roles ([]), assistant.enabled (false).

Each step needs a unique identifier, a scope and layout. Scopes are system/client/user or an entity scope object with type: entity and module. Targets have an identifier, module and mode create/singleton/collection/scope_entity. Provisioning supports entity.ensure with trigger on_enter/on_confirm.

[{"resource_setup_flow":"welcome","resource":{"title":"Welcome","steps":[{"identifier":"intro","scope":"user","layout":{"tabs":[]}}]}}]

See setup flow reference and lifecycle. Source: BakeryResourceWorkflow::buildSchema and validation, BakeryResourceSetupFlow.