<?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: Getting Command Failure as a Return Parameter in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144656#M26307</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide specific details of the objective and the use case for it? It's possible to use conditional logic and MVEL expressions to enable\disable commands based on input criteria and variable existence. It's possible to invoke a child workflow using the REST API within command code. You can query a workflows execution status using the REST API and also use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add-WfaWorkflowParameter&lt;/LI&gt;
&lt;LI&gt;Get-WfaWorkflowParameter&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To pass information between commands in a workflow but it depends on your use case. It might be more appropriate search for an object and use conditional logic in the preceeding command to enable or disable them depending if the object was found. It depends on the technical requirement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 23:12:22 GMT</pubDate>
    <dc:creator>mbeattie</dc:creator>
    <dc:date>2018-11-13T23:12:22Z</dc:date>
    <item>
      <title>Getting Command Failure as a Return Parameter</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144639#M26306</link>
      <description>&lt;P&gt;I'm trying to set up some logic around a workflow so that when one of the commands fails, it proceeds to a specific command while skipping another and vice versa when it succeeds. Does WFA provide an execution status&amp;nbsp;so that I can conditionally redirect to certain commands? Or do I have to do something like code it in a try/catch within the&amp;nbsp;&amp;nbsp;command itself and use the Add-WfaWorkflowParameter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:07:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144639#M26306</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2025-06-04T13:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Command Failure as a Return Parameter</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144656#M26307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide specific details of the objective and the use case for it? It's possible to use conditional logic and MVEL expressions to enable\disable commands based on input criteria and variable existence. It's possible to invoke a child workflow using the REST API within command code. You can query a workflows execution status using the REST API and also use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add-WfaWorkflowParameter&lt;/LI&gt;
&lt;LI&gt;Get-WfaWorkflowParameter&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To pass information between commands in a workflow but it depends on your use case. It might be more appropriate search for an object and use conditional logic in the preceeding command to enable or disable them depending if the object was found. It depends on the technical requirement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 23:12:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144656#M26307</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-11-13T23:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Command Failure as a Return Parameter</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144664#M26308</link>
      <description>&lt;P&gt;Matt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see what you're saying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I have a command A, and I want to execute command B if A fails in any generic way, and C if it succeeds. I was curious if WFA provides some sort of global return paramater&amp;nbsp;indicating the status of the workflow, so that&amp;nbsp;I can conditionally execute B and C based on an MVEL expression like "if wrokflowstatus == 1" or "if workflowstatus == 0".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:01:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Getting-Command-Failure-as-a-Return-Parameter/m-p/144664#M26308</guid>
      <dc:creator>lil_baby_james</dc:creator>
      <dc:date>2018-11-14T13:01:27Z</dc:date>
    </item>
  </channel>
</rss>

