<?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 Re: Workflow question in ExtremeCloud IQ- Site Engine Management Center</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117292#M12499</link>
    <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;To run a workflow independently, you have to go to Details - Variables and delete the ones called &lt;STRONG&gt;devices&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 14:55:35 GMT</pubDate>
    <dc:creator>Markus_Nikulski</dc:creator>
    <dc:date>2025-01-08T14:55:35Z</dc:date>
    <item>
      <title>Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117279#M12495</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have create a workflow to query some switches and add the output to a file, in the next script of the flow I convert the file to a readable&amp;nbsp; format.&lt;BR /&gt;only if selected multiple switches than the convert script block runs multiple times.&lt;/P&gt;&lt;P&gt;is the away in a workflow to run a script without the devices? Like the email part of the flow only runs once.&lt;/P&gt;&lt;P&gt;so the cirkelt part needs to run after and only once&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 09:07:04 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117279#M12495</guid>
      <dc:creator>Mark_ADRZ</dc:creator>
      <dc:date>2025-01-08T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117280#M12496</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can achieve this by adding a conditional step in your workflow to check if the script has already run. Here’s a general approach:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Flag Check&lt;/STRONG&gt;: Create a flag or a variable that indicates whether the script has run.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Conditional Execution&lt;/STRONG&gt;: Before running the conversion script, check the flag. If the script has not run, execute it and set the flag.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Workflow Structure&lt;/STRONG&gt;: Ensure that this check is placed outside of the loop that queries the switches, so it only runs once after all switches are processed.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;This way, the conversion script block runs only once, similar to the email part of the flow.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 09:39:17 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117280#M12496</guid>
      <dc:creator>lisa52smith</dc:creator>
      <dc:date>2025-01-08T09:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117284#M12498</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi lisa52smith,&lt;/P&gt;&lt;P&gt;i tried your solution but because the block run parallel for the switches the variable is still true at start of the script block, or i am doing something wrong.&lt;BR /&gt;in the second block it reads the workflow variable is if not true then do the conversion en set the variable to false. if variable is false juist print file already done. the variable is changed but because the block start at the same time for the selected switches the variable is still true.&lt;/P&gt;&lt;P&gt;hope this making some sense&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;thx for helping&lt;/P&gt;&lt;P&gt;kind regards Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jan 2025 12:18:42 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117284#M12498</guid>
      <dc:creator>Mark_ADRZ</dc:creator>
      <dc:date>2025-01-08T12:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117292#M12499</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;To run a workflow independently, you have to go to Details - Variables and delete the ones called &lt;STRONG&gt;devices&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 14:55:35 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117292#M12499</guid>
      <dc:creator>Markus_Nikulski</dc:creator>
      <dc:date>2025-01-08T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117293#M12500</link>
      <description>&lt;P&gt;Just for clarification, the device's variable applies to the entire workflow. TO let run a single activity, only one of many devices used you have to use another approach&lt;/P&gt;&lt;P&gt;use emc_vars['deviceIP'] to know the current device IP and emc_vars['devices'] where the list of all device IPs are contained. You can than check if the&amp;nbsp;emc_vars['deviceIP'] in the first position of&amp;nbsp;emc_vars['devices']&amp;nbsp; for let it run and all other have to stop the activity execution.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 15:01:49 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117293#M12500</guid>
      <dc:creator>Markus_Nikulski</dc:creator>
      <dc:date>2025-01-08T15:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117296#M12501</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;ifFirst&lt;/SPAN&gt;&lt;SPAN&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;devices&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; emc_vars[&lt;/SPAN&gt;&lt;SPAN&gt;'devices'&lt;/SPAN&gt;&lt;SPAN&gt;].replace(&lt;/SPAN&gt;&lt;SPAN&gt;'"'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;).replace(&lt;/SPAN&gt;&lt;SPAN&gt;' '&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;''&lt;/SPAN&gt;&lt;SPAN&gt;)[&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;].split(&lt;/SPAN&gt;&lt;SPAN&gt;','&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt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gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"stop"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jan 2025 15:15:33 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117296#M12501</guid>
      <dc:creator>Markus_Nikulski</dc:creator>
      <dc:date>2025-01-08T15:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow question</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117314#M12502</link>
      <description>&lt;P&gt;Thx Markus !!!!&lt;BR /&gt;Ideed made a check if its the first device in list if so run the convert if not than skip convert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 13:30:04 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-site-engine/workflow-question/m-p/117314#M12502</guid>
      <dc:creator>Mark_ADRZ</dc:creator>
      <dc:date>2025-01-09T13:30:04Z</dc:date>
    </item>
  </channel>
</rss>

