<?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: WADL Query to get the status of the Workflow execution and which step it failed during the exec in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/131073#M23737</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9265"&gt;@MAHESH1111111&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand your requirement. I have something in mind, I'll try those. I'l update you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
    <pubDate>Tue, 16 May 2017 05:32:08 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2017-05-16T05:32:08Z</dc:date>
    <item>
      <title>WADL Query to get the status of the Workflow execution and which step it failed during the exec</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/130873#M23696</link>
      <description>&lt;P&gt;&amp;nbsp;Is there a WADL Query to get the status of the Workflow execution and which step it failed during the execution, we have a workflow for creating volumes, LUNs, Igroups etc, and wanting to know if we can use the WADL query to get the response from WFA.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:06:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/130873#M23696</guid>
      <dc:creator>MAHESH1111111</dc:creator>
      <dc:date>2025-06-04T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: WADL Query to get the status of the Workflow execution and which step it failed during the exec</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/130963#M23712</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9265"&gt;@MAHESH1111111&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can tell you how to get it done. I don't have a WADL, you need to make it yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;Query to get the status of the Workflow execution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/workflows/jobs/{jobId}'&lt;/PRE&gt;&lt;P&gt;shall give you the status of the given job. You would need to parse the result and extract the Job status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;&lt;SPAN&gt;which step it failed during the execution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is not direct way to get to know this. But it can be done. See below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The API&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/workflows/executions/{jobId}&lt;/PRE&gt;&lt;P&gt;Will get you the &lt;EM&gt;command-execution-arguments&lt;/EM&gt; details of every command in this job. A sample is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;command-execution-arguments&amp;gt;
    &amp;lt;command-uuid&amp;gt;ba009c9c-44b9-4705-85a4-012da95b6df1&amp;lt;/command-uuid&amp;gt;
    &amp;lt;command-name&amp;gt;Get a workflow using custom REST Path&amp;lt;/command-name&amp;gt;
    &amp;lt;command-display-name&amp;gt;Get a workflow using custom REST Path&amp;lt;/command-display-name&amp;gt;
    &amp;lt;command-string-representation&amp;gt;/waiting&amp;lt;/command-string-representation&amp;gt;
    &amp;lt;command-type&amp;gt;STANDARD_COMMAND&amp;lt;/command-type&amp;gt;
    &amp;lt;arguments&amp;gt;
      &amp;lt;argument key="Method" value="POST"/&amp;gt;
      &amp;lt;argument key="RestPath" value="/waiting"/&amp;gt;
    &amp;lt;/arguments&amp;gt;
    &amp;lt;atom:link rel="log" href="&lt;FONT color="#FF0000"&gt;http://localhost:90/rest/workflows/executions/5600/log/0&lt;/FONT&gt;"/&amp;gt;
  &amp;lt;/command-execution-arguments&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every&amp;nbsp;&lt;SPAN&gt;command-execution-arguments will have a link to the command logs ( marked in RED ) . This API will give you the command execution logs. Sample:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;collection&amp;gt;&lt;BR /&gt;&amp;lt;log-message&amp;gt;&lt;BR /&gt;&amp;lt;level&amp;gt;INFO&amp;lt;/level&amp;gt;&lt;BR /&gt;&amp;lt;date&amp;gt;1486030727342&amp;lt;/date&amp;gt;&lt;BR /&gt;&amp;lt;message&amp;gt;&lt;BR /&gt;### Command 'Get a workflow using custom REST Path' in 'POWER_SHELL' ###&lt;BR /&gt;&amp;lt;/message&amp;gt;&lt;BR /&gt;&amp;lt;/log-message&amp;gt;&lt;BR /&gt;&amp;lt;log-message&amp;gt;&lt;BR /&gt;&amp;lt;level&amp;gt;INFO&amp;lt;/level&amp;gt;&lt;BR /&gt;&amp;lt;date&amp;gt;1486030729879&amp;lt;/date&amp;gt;&lt;BR /&gt;&amp;lt;message&amp;gt;&lt;FONT color="#FF0000"&gt;Command completed, took 2537 milliseconds&lt;/FONT&gt;&amp;lt;/message&amp;gt;&lt;BR /&gt;&amp;lt;/log-message&amp;gt;&lt;BR /&gt;&amp;lt;/collection&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the last log message contains 'Command completed'. then this command passed in the workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a failed command in a workflow, the last message will contain:&amp;nbsp;&amp;nbsp;Workflow Execution Failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can sugegst that If you do not want to get this list of&amp;nbsp;&lt;SPAN&gt;command-execution-arguments and then find the links to command logs you can follow the below algorithm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;i=0

try:
while( true)

call GET on /workflows/executions/{jobId}/log/{i}

Check for the last log message containg 'Command Completed'.

i=i+1

catch:

Catch happens when i goes above the last command in the workflow.
do nothing


Now you have found which command(s) has failed in your workflow.&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 05:16:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/130963#M23712</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-05-11T05:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: WADL Query to get the status of the Workflow execution and which step it failed during the exec</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/131006#M23723</link>
      <description>&lt;P&gt;Thanks so much Sinhaa - while this helps a little, I still need to figure Error Checking and Failed status for each command that runs through the entire workflow. Reason is if the workflow fails we need to know which step it failed and why, I understand we can login to WFA portal and check that but the whole point of automation is to have one Orchestrator tool (In this case it is BMC BSA) to recieve all the error codes and status so our Operations team is always executing Automation from one tool and looking at one tool.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 12:57:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/131006#M23723</guid>
      <dc:creator>MAHESH1111111</dc:creator>
      <dc:date>2017-05-12T12:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: WADL Query to get the status of the Workflow execution and which step it failed during the exec</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/131073#M23737</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9265"&gt;@MAHESH1111111&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand your requirement. I have something in mind, I'll try those. I'l update you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 05:32:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WADL-Query-to-get-the-status-of-the-Workflow-execution-and-which-step-it-failed/m-p/131073#M23737</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-05-16T05:32:08Z</dc:date>
    </item>
  </channel>
</rss>

