FlowDSL Node Catalog
Mock
Emit a hardcoded packet (ignores input). For development and tests.
Overview
| Property | Value |
|---|---|
| Node ID | core/mock |
| Kind | action |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.Mock |
| Icon | lucide:flask-conical |
| Color | #64748b |
| Tags | debug, test |
Outputs
out— (no description)
Settings
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
fail | boolean | — | false | — | If true, return a handler error instead of the response. |
failMessage | string | — | mock failure | — | |
response | object | yes | map[] | — |
Example
yaml
# Use this node in a flow:
nodes:
- id: my_step
name: My Step
kind: action
action_ref: core/mock
config:
fail: false
failMessage: mock failure
response: {}