run

With the use of this filter you can run any other tasks that you have set up. Additionally you can pass a JSON objects with parameters. These parameters will be preloaded to task you would like to run.

Task will be executed asynchronously. If you need to wait for the result, consider creating a function and using apply tag.

This filter is particularly useful when using Blank HTTP task. You can run any other task and respond with 200 code to acknowledge receipt of a message.

{% if request == blank %}
{% assign request = '{"body": {}}' | parse %}
{% endif %}
{% capture task_input %}
{ "recieved_inventories": {{request.body | json }} }
{% endcapture %}
{{ task_input | run: "update_inventory_levels" }}
{{ task_input | log }}
{% global response = "{}" | parse %}
{% global response.status = "ok" %}

Placing above snippet in any Blank HTTP task would trigger a task identified with handle: update_inventory_level

You can find out whats your task handle by clicking on More actions next to task name in app Dashboard: