<?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 One or more values in a field in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25608#M5377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am building a workflow to build one or more volume using a repeat loop. This works fine however, I would like to be able to provide a single volume size or multiple volume sizes comma separated. &lt;/P&gt;&lt;P&gt;Can someone help me with a java if statement I can use to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my volume name is extracted from the share name&amp;nbsp; field&lt;/P&gt;&lt;P&gt;splitByDelimiter($ShareName,",",ShareIndex1-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works but expects a one to one&lt;/P&gt;&lt;P&gt;actualVolumeSize(splitByDelimiter($VolumeSize,",",ShareIndex1-1) * 1024, volume4.snapshot_reserved_percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I want is a if clause&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(getSize($Volumesize)&amp;nbsp; == 1?$Volumesize:splitByDelimiter($VolumeSize,",",ShareIndex1-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not working. &lt;/P&gt;&lt;P&gt;Ideally I would like to account for a incorrect number of values as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;John&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:36:31 GMT</pubDate>
    <dc:creator>olson</dc:creator>
    <dc:date>2025-06-05T05:36:31Z</dc:date>
    <item>
      <title>One or more values in a field</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25608#M5377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am building a workflow to build one or more volume using a repeat loop. This works fine however, I would like to be able to provide a single volume size or multiple volume sizes comma separated. &lt;/P&gt;&lt;P&gt;Can someone help me with a java if statement I can use to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my volume name is extracted from the share name&amp;nbsp; field&lt;/P&gt;&lt;P&gt;splitByDelimiter($ShareName,",",ShareIndex1-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works but expects a one to one&lt;/P&gt;&lt;P&gt;actualVolumeSize(splitByDelimiter($VolumeSize,",",ShareIndex1-1) * 1024, volume4.snapshot_reserved_percent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I want is a if clause&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(getSize($Volumesize)&amp;nbsp; == 1?$Volumesize:splitByDelimiter($VolumeSize,",",ShareIndex1-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not working. &lt;/P&gt;&lt;P&gt;Ideally I would like to account for a incorrect number of values as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;John&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:36:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25608#M5377</guid>
      <dc:creator>olson</dc:creator>
      <dc:date>2025-06-05T05:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: One or more values in a field</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25613#M5379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;What error are you getting? Is it possible to share your workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions for size: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getSize($volSize) == 1?$volSize: (splitByDelimiter ($volSize,",",Index1-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work fine if at execution the $volSize is provided as: &lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;10240&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or for multiple values: &lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;10240, 2048, 4096&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. Inputs at execution to be provided&lt;SPAN style="color: #ff0000;"&gt; with double quotes&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Ideally I would like to account for a incorrect number of values as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Its fine if you provide number of values &amp;gt; Num. of looping cycles. If less then this passes in planning ( bug?), but execution will fail as mandatory parameter size_mb for one of the cycles will become empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;sinhaa&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 09:03:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25613#M5379</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-05-12T09:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: One or more values in a field</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25617#M5380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;actualVolumeSize(splitByDelimiter($VolumeSize,",",ShareIndex1-1) * 1024, &lt;SPAN style="color: #ff0000;"&gt;volume4.snapshot_reserved_percent&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;The problem is passing parameter of volume definition object in a function call as arguments. Though WFA GUI auto-complete will show this as correct, this is an incorrect MVEL expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Use it like: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;actualVolumeSize(splitByDelimiter($VolumeSize,",",ShareIndex1-1) * 1024, &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; color: #008000;"&gt;volume4["snapshot_reserved_percent"]&lt;/SPAN&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;sinhaa&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 03:50:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/One-or-more-values-in-a-field/m-p/25617#M5380</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-05-13T03:50:35Z</dc:date>
    </item>
  </channel>
</rss>

