Streaming Hub 0.1

Macros workspace

Build reusable sequences with a defined input and output contract.

Alpha
Verified withStreaming Hub: unreleased development buildPlugins: None

A macro packages a sequence so multiple automations or other macros can call the same logic. Its inputs and outputs make that reusable contract explicit.

The upper area defines the macro contract; the lower area defines the sequence that fulfils it.

Workspace elements

CalloutElementPurpose
1Macro listSelects the reusable macro to edit. The list context menu also provides duplicate, delete, import and export commands.
2Add and Import ScriptAdd creates an empty macro. Import Script loads a compatible macro script into the project.
3Macro settingsName identifies the macro, Description documents its purpose, On step error sets the default failure policy, and Export Script saves the selected macro.
4Macro InputsDefines values a caller can pass. Name becomes the input path, Type controls validation and editing, Required makes the value mandatory, Default supplies a fallback, Description documents it, and Remove deletes the row.
5Macro OutputsDefines values returned to the caller. Name identifies the output, Expression reads the result from macro context, Required validates its presence, Description documents it, and Remove deletes the row.
6Automations / MacrosShows every Call Macro step that currently references this macro, including its owner and step name.
7Sequence / GraphSwitches between editing the macro sequence and inspecting its graph.
8Step listShows the ordered and nested steps executed when the macro is called. Use + Add and row actions exactly as in the Automation workspace.
9Step DetailsEdits action-specific fields and the common execution settings of the selected step.
10Insert FieldBrowses Event, Payload, Vars, Stats, Runtime, Inputs and Outputs paths that can be inserted into the active field.

How a caller uses the contract

A Call Macro step supplies values for the declared inputs. Inside the macro, those values are available under input.*. Output expressions are evaluated when the macro returns and become available to the caller. Keep names stable after a macro is already used, and check the Automations / Macros table before making breaking changes.

Sequence controls

The macro sequence uses the same Add Step chooser, nesting, Step Details, Graph View and side panels as an automation. See the Automation workspace sequence guide and Side panels instead of learning a second editor.