UI integration with workflows
Buttons component
Section titled “Buttons component”Use the buttons component in a layout row, column or affix. Each button uses style and title; its event can invoke a module workflow webhook:
{ "type": "buttons", "options": { "justify_content": "flex-end", "buttons": [ { "identifier": "previewReport", "title": "Preview report", "style": "primary", "event": { "action": "workflow", "module": "reports", "event": "previewReport" } } ] }}The workflow must have a matching event/webhook entry named previewReport, registered in events with type webhook and module reports. The action is authorized on the server; hiding a button does not enforce permissions.
For an emitted on_click event use button.options.events.on_click (an array of event identifiers). A button’s top-level events map is not read. Button type is internal; use style for primary/default/dashed/text/link and danger as a separate boolean. Nested dropdown items belong to button.items.
Field events
Section titled “Field events”{"identifier":"customer","type":"select","options":{"references":"customers","events":{"on_change":["customerChanged"]}}}Register customerChanged as on_change and keep its workflow synchronous for an immediate form response. The event exposes prototype, selector, value and previousValue. action/set returns instructions for current form fields, including list additions; it does not persist them. See selectors and responses.
Response handling
Section titled “Response handling”Use action/response for data, action/set for form instructions, action/redirect or action/refresh for navigation, action/viewFile or action/downloadFile for files, and action/modal for user input/checkpoints. Check the generated action catalog for each schema.
A browser response needs an active synchronous request. Long work should use a launcher/worker split with progress updates. Tests can inspect responses and answer checkpoints with respond steps.