<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Streams on</title><link>https://mads-docs.netlify.app/apps/streams/</link><description>Recent content in Streams on</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Sun, 21 Feb 2021 13:17:46 +0800</lastBuildDate><atom:link href="https://mads-docs.netlify.app/apps/streams/index.xml" rel="self" type="application/rss+xml"/><item><title>Streams</title><link>https://mads-docs.netlify.app/apps/streams/streams/</link><pubDate>Fri, 12 Aug 2022 09:18:39 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/streams/</guid><description>Introduction Stream app lets user to manipulate incoming event to MADS&amp;rsquo;s by creating pipelines. Stream app uses various action node to perform different operations.
Look out for this icon for the Streams app.
You can find it in the appbar as shown below.
Click on this icon to launch streams app. When streams app open, Home tab will be selected.
In streams app there is sidebar menu with following icon.</description></item><item><title>Modify Pipeline</title><link>https://mads-docs.netlify.app/apps/streams/modify-pipeline/</link><pubDate>Fri, 12 Aug 2022 16:42:02 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/modify-pipeline/</guid><description>When a new project is created, it has default pipeline in it as shown below.
As we can see in the above image that we have 2 nodes (ie. init and save) connected to each other. We will get into more details about how each action works, in above pipeline the event that comes will save saved to DB after doing parameter mapping.
Left side of the workarea show the list of nodes that can used to create pipelines.</description></item><item><title>Init</title><link>https://mads-docs.netlify.app/apps/streams/init/</link><pubDate>Fri, 12 Aug 2022 17:33:54 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/init/</guid><description>Init node acts as starting point of pipeline creation. When a pipeline is executed, init node is the action where the event is first sent and then it traverse further down the pipeline.
It is mandatory to have init node in the pipeline and it cannot be deleted.</description></item><item><title>Save</title><link>https://mads-docs.netlify.app/apps/streams/save/</link><pubDate>Sat, 13 Aug 2022 08:27:56 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/save/</guid><description>Save node can be used to save the event to DB. Before the the event data is saved to DB parameter mapping is done.
Action Fields Name Name field can be used to give custom name to the node.</description></item><item><title>Conditional</title><link>https://mads-docs.netlify.app/apps/streams/conditional/</link><pubDate>Sat, 13 Aug 2022 08:32:06 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/conditional/</guid><description>Conditional node can be used to divert the pipeline execution by writing conditional logic (Javascript code).
In this node we can write javascript code and compare the event values to do logical comparison. We need to write a Javascipt function named condition with the logic for code field of the node. This node has 2 output port for true and false conditions.
Action Fields Name Name field can be used to give custom name to the node.</description></item><item><title>Transform</title><link>https://mads-docs.netlify.app/apps/streams/transform/</link><pubDate>Sat, 13 Aug 2022 08:32:06 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/transform/</guid><description>Transform node can be used to transform the event payload using code(Javascript code).
In this node we can do calculation using Javascript code and update the payload. We should return javascript map as payload output from the implemented transform function.
Action Fields Name Name field can be used to give custom name to the node.
Code In this field we write function named transform which should return updated payload. Transform function will receive the payload as function parameter which can be used to do calculation and update the payload.</description></item><item><title>Webhook</title><link>https://mads-docs.netlify.app/apps/streams/webhook/</link><pubDate>Sat, 13 Aug 2022 08:32:06 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/webhook/</guid><description>Webhook node can be used to call external Rest API and the response can be appended in the payload.
Action Fields Name Name field can be used to give custom name to the node.
URL The API URL that needs to be called.
HTTP Method Select the HTTP method of the API from the dropdown. Available options are:
PUT POST PATCH GET Headers Add headers as JSON object in the header input field.</description></item><item><title>Orignator Metadata</title><link>https://mads-docs.netlify.app/apps/streams/orignator_metadata/</link><pubDate>Sat, 13 Aug 2022 08:32:06 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/orignator_metadata/</guid><description>Orignator Metadata action node can be used to load gateway metadata and append it in the payload. This action loads following metadata of gateway:
Gateway static data Gateway current location Gateway name Gateway status Action Fields Name Name field can be used to give custom name to the node.
Destination Destination is the path in the payload where the metadata should be appended.
Example: Let&amp;rsquo;s say we have following metadata of gateway</description></item><item><title>Switch</title><link>https://mads-docs.netlify.app/apps/streams/switch/</link><pubDate>Sat, 13 Aug 2022 08:32:06 +0530</pubDate><guid>https://mads-docs.netlify.app/apps/streams/switch/</guid><description>Switch node can be used to divert the pipeline execution based on the gateways/asset that is selected.
Action Fields Name Name field can be used to give custom name to the node.
Match All When we want all the condition of switch node to be matched then toggle this flag. The further pipelines of switch predicates will be executed of the all the condition match.
Output We can add dynamic output in switch node, where we need to input following values for each output.</description></item></channel></rss>