<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAS Intelligent Decision Json array output question in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788661#M1354</link>
    <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Working on a SAS Intelligent Decision (SID) architecture where we have an external application calling the url endpoint of a master decision flow.&lt;/P&gt;&lt;P&gt;Based on the parameters supplied in the POST, the master decision flow redirect the request to a sub decision flow. Each sub decision flow has specific tasks and the answer (variables and parameters) are transferred back up to master decision flow and back out to the external application. Each sub decision flow has different variables and parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approach of making a neat json array out from SID that &lt;STRONG&gt;&lt;U&gt;only&lt;/U&gt;&lt;/STRONG&gt; contains variables and parameters from the sub decision flow that returned the answer ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 14:31:41 GMT</pubDate>
    <dc:creator>a_sasusr</dc:creator>
    <dc:date>2022-01-06T14:31:41Z</dc:date>
    <item>
      <title>SAS Intelligent Decision Json array output question</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788661#M1354</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Working on a SAS Intelligent Decision (SID) architecture where we have an external application calling the url endpoint of a master decision flow.&lt;/P&gt;&lt;P&gt;Based on the parameters supplied in the POST, the master decision flow redirect the request to a sub decision flow. Each sub decision flow has specific tasks and the answer (variables and parameters) are transferred back up to master decision flow and back out to the external application. Each sub decision flow has different variables and parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approach of making a neat json array out from SID that &lt;STRONG&gt;&lt;U&gt;only&lt;/U&gt;&lt;/STRONG&gt; contains variables and parameters from the sub decision flow that returned the answer ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788661#M1354</guid>
      <dc:creator>a_sasusr</dc:creator>
      <dc:date>2022-01-06T14:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decision Json array output question</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788662#M1355</link>
      <description>&lt;P&gt;Just mark those desired variables as the output in your decision flow, and you will see them in the results. That's it.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788662#M1355</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2022-01-06T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decision Json array output question</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788663#M1356</link>
      <description>&lt;P&gt;Done that.. The problem is that the more sub decision flows you have the more variables will be attached into the json array even though its only 1 flow returning actual values. So the json array gets littered with metadata from variables that have NULL values. So need a more dynamic output of JSON array where only the variables containing values are present&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 14:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788663#M1356</guid>
      <dc:creator>a_sasusr</dc:creator>
      <dc:date>2022-01-06T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decision Json array output question</title>
      <link>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788665#M1357</link>
      <description>SID will return all variables that you have marked as output, doesn't matter whether they have values or not. From my point of view, you have the following options:&lt;BR /&gt;1. Filter empty output variables in your application that works with the results&lt;BR /&gt;2. Change the decision flow logic and add DS2 file as the last node, which will check which variables are available and return only those available.&lt;BR /&gt;3. Change the decision flow logic without adding DS2 file.</description>
      <pubDate>Thu, 06 Jan 2022 15:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-Intelligent-Decision-Json-array-output-question/m-p/788665#M1357</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2022-01-06T15:14:22Z</dc:date>
    </item>
  </channel>
</rss>

