FlowDSL Node Catalog

Mock

Emit a hardcoded packet (ignores input). For development and tests.

Overview

PropertyValue
Node IDcore/mock
Kindaction
Modulecore-flowdsl
Repogo-flowdsl
Handlergithub.com/redelay/go-flowdsl/nodes/core.Mock
Iconlucide:flask-conical
Color#64748b
Tagsdebug, test

Outputs

  • out — (no description)

Settings

PropertyTypeRequiredDefaultUI GroupDescription
failboolean—false—If true, return a handler error instead of the response.
failMessagestring—mock failure—
responseobjectyesmap[]—

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: {}