Document toolboxDocument toolbox

loadEventsFromExecutionContext

loadEventsFromExecutionContext operator is used to provide data to an on-demand stream via webhook api.

Operator Usage in Easy Mode

  1. Click + on the parent node.

  2. Enter the Load Events from Execution Context operator in the search field and select the operator from the Results to open the operator form.

  3. In the Parent drop-down, enter or select a table that will be returned as output if no data is found in the context.

  4. Click Run to view the result.

  5. Click Save to add the operator to the playbook.

  6. Click Cancel to discard the operator form.

Usage Details

LQL command

loadEventsFromExecutionContext(parentTable)

This operator passes data to the child step in the following way.
If there is data from webhook then that will be used otherwise the data from the parent table will be used.

Supplying Data via API

Data can be supplied via POST API call in JSON format mentioned below.

curl -XPOST --header "Content-Type: application/json" -d '{"rows": [{"key1": "peter_test95", "splunk_notable_id":"splunkid", "lhub_id": "10"}, {"key1": "vj_test", "lhub_id": "11"}]}' 'https://xyz.logichub.com/api/trigger/stream-5234/717e995a-6fdd-42b7-a2c2-ce3e9e613d63'

If the provided body contains the key "rows" with the values as an array of key-value pairs, then the loadEventsFromExecutionContext() operator parses the data and formats it into a table as follows.

If the provided body isn’t in the format mentioned above, the loadEventsFromExecutionContext() operator loads the provided body contents as a string in its raw structure.