1. Tasks
  2. Heimdall Emit

Tasks

Heimdall Emit

The Heimdall Emit task allows a stub to trigger Heimdall actions on a specified path.

Heimdall Paths and Mechanisms form the basis of the Heimdall Emit task and are explained further in the Heimdall documentation.

Basic usage

Emit an event on the stubbergroup.all.financial.customer.account.balance.update.[CUSTOMER_ACCOUNT_ID] path, updating the customer’s account balance.

loading...

Advanced usage

Emit an event on multiple paths.

loading...

Parameters

path
required
string

The path on which to emit the event. * can be used as a wildcard.

See also: Heimdall


path_strings
optional
array

The paths on which to emit the event. Each path string must follow the format: [mechanism]|[path]

The mechanism can be * or any valid mechanism (see below). The path is the target path on which to emit the event. Wildcards (*) are supported.

If path_strings is specified, the path parameter will be ignored.

See also: Heimdall


mechanism
required
string

The mechanism to use when firing the trigger.

Options: * | evt | cbh | rra | rnd | evb

Mechanism Description
* All
evt Event
cbh Callback Handler
rra Round Robin Approach
rnd Random
evb Event Back

See also: Heimdall


data
required
object

The data to send with the event. This may be a static object or a reference to a stubpost object.


Result

loading...

Examples

Basic Heimdall emit with multiple paths

loading...