<?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: WFA: unexpected result when using conditional execution in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113394#M20102</link>
    <description>&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been experimenting a bit more with this. When I deselect "Consider Reserved Elements" in the workflow, the conditional execution works as expected. So it's indeed the reservation process that updates the volume size (&lt;FONT size="2"&gt;vol_pri.size_mb&lt;/FONT&gt;) before the condition is evaluated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I access the value of vol_pri.size_mb BEFORE the reservation is applied?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Marco Teeuwen&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2015 13:48:16 GMT</pubDate>
    <dc:creator>mteeuwen</dc:creator>
    <dc:date>2015-12-07T13:48:16Z</dc:date>
    <item>
      <title>WFA: unexpected result when using conditional execution</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113309#M20089</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Hi all,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I want to execute a snapmirror update before shrinking a snapmirror destination. The workflow resizes (primary)volumes with or without snapmirror relationships.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;So, the commands executed are:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- Search &amp;amp; define all needed objects&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- Vol resize on the primary volume&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- IF the volume has a snapmirror relationship AND the new primary volume size is smaller than the current primary volume size: do a snapmirror update&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- IF the volume has a snapmirror relationship : vol resize on the secondary volume&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;The expression I'm using for the conditional execution of the 3rd step is:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;SNAPMIRROR ? (VOLUME_SIZE_IN_MB &amp;lt; vol_pri.size_mb)&amp;nbsp; : false&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Where:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- SNAPMIRROR is a Boolean constant indicating the existence of a snapmirror relationship. This constant is also used for conditional execution of the 4th step and is working correctly&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- VOLUME_SIZE_IN_MB is an integer specifying the new (primary) volume size&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- vol_pri.size_mb is the size in MB property of the primary volume object&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;So, when both SNAPMIRROR is true and the new size is smaller than the current size, the command is still not executed. My guess is that vol_pri.size_mb is already reduced (due to reservation?) before the comparison happened, but I'm not sure where to check this.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Questions:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- Where can I see the value of the variables used in the expression? Can't find them in the logging, is there a way to show their values at the moment of doing the comparison in the expression?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;- If vol_pri.size_mb is indeed set to the new value prior to the comparison, how should I do this instead? I've tried using the snapmirror destination volume object, but that's not available when there's no snapmirror relationship, so the expression fails.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Kind regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Marco&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 22:36:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113309#M20089</guid>
      <dc:creator>mteeuwen</dc:creator>
      <dc:date>2025-06-04T22:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: WFA: unexpected result when using conditional execution</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113394#M20102</link>
      <description>&lt;P&gt;So,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been experimenting a bit more with this. When I deselect "Consider Reserved Elements" in the workflow, the conditional execution works as expected. So it's indeed the reservation process that updates the volume size (&lt;FONT size="2"&gt;vol_pri.size_mb&lt;/FONT&gt;) before the condition is evaluated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I access the value of vol_pri.size_mb BEFORE the reservation is applied?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Marco Teeuwen&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 13:48:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113394#M20102</guid>
      <dc:creator>mteeuwen</dc:creator>
      <dc:date>2015-12-07T13:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: WFA: unexpected result when using conditional execution</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113414#M20110</link>
      <description>&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I understand and was able to replicate what you're seeing. I have a workaround that may help here I've been using for other problems...but its not the most elegant solution around.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Create new dictionary item with N-number of fields (you might want more than a single distinct field to reference or store text in later)&lt;BR /&gt;- Create new command referencing the new dictionary. Map parameters to the dictionary fields. Do *NOT* add any reservation or verification code; we're just looking to store text/info within a single workflow and not store this information in WFA's DB anywhere.&lt;BR /&gt;- When the command is used in a workflow you can reference the command parameters in a variety of ways to store text, make comparisions with, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a sample workflow that somewhat mimics what you're attempting. The workflow first resizes a volume; and if that new size is less than the original volume's size it will also modify the volume with a new comment. Using this custom command value I can properly get the conditional statement to function as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had a lot of success using this method for other problems but never really used it for anything involving reservations before. This seems to work okay but might be worth a solid round of testing to make sure the behavior matches what you'd expect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:31:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-unexpected-result-when-using-conditional-execution/m-p/113414#M20110</guid>
      <dc:creator>JoelEdstrom</dc:creator>
      <dc:date>2015-12-07T20:31:24Z</dc:date>
    </item>
  </channel>
</rss>

