<?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: provisioning - increment qtree name from a text file in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32054#M6644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muru,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why dont you use your Excel as a datasource to your workflow so that the name/increment is taken care as part of the workflow itself ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 08:21:50 GMT</pubDate>
    <dc:creator>adaikkap</dc:creator>
    <dc:date>2014-08-26T08:21:50Z</dc:date>
    <item>
      <title>provisioning - increment qtree name from a text file</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32039#M6641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mates - I need help with a workflow. I have attached dar file.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This workflow works perfectly for us. We are looking for one improvement to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the qtree/share name sometimes, for an example: we give either qtree_name as a name which there is no issues in using this.&lt;/P&gt;&lt;P&gt;Sometime we give qtree_name_XXXX and we get this number from an excel sheet and after using we increment by 1 in the excel sheet, which is a manual process today.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;What I want is a text file stored in the wfa server (c:\incr.txt) say with a number to start with 8000.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Just above Qtree/Share name in the workflow, I want an option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Add Unique id - Yes/No. &lt;/P&gt;&lt;P&gt;If yes we need to pull the number 8000 from the txt file, number pops in the Qtree/Share name area and increment that txt file by 1 &lt;/P&gt;&lt;P&gt;if no nothing happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; May be we can do without a text file. I am not sure how. The other thing is we don’t want to scan existing qtrees and then increment. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:30:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32039#M6641</guid>
      <dc:creator>MPERIYAK</dc:creator>
      <dc:date>2025-06-05T05:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: provisioning - increment qtree name from a text file</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32045#M6642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can add a custom function like below which will accept the name ending with numeric (test_800) this function will return next name as (test_801).:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def nextName(name) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; java.util.regex.Pattern RESOLVE_PATTERN = java.util.regex.Pattern.compile(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "(^.*?)(&lt;A href="https://community.netapp.com/" target="_blank"&gt;\\d+$&lt;/A&gt;)");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.util.regex.Matcher matcher = RESOLVE_PATTERN.matcher(name);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (matcher.matches()) &lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String prefix = matcher.group(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String number = matcher.group(2);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (number!=null) &lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return prefix + String.valueOf((Integer.valueOf(number)+1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throwException('The input must be in the format of: &amp;lt;string prefix&amp;gt;&amp;lt;number suffix&amp;gt;');&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 05:59:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32045#M6642</guid>
      <dc:creator>ranjeetr</dc:creator>
      <dc:date>2014-08-25T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: provisioning - increment qtree name from a text file</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32051#M6643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ranjeet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. I am learning WFA and let me try to get some understanding of your code to begin with. &lt;/P&gt;&lt;P&gt;Looks too complicated to me though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 18:02:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32051#M6643</guid>
      <dc:creator>MPERIYAK</dc:creator>
      <dc:date>2014-08-25T18:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: provisioning - increment qtree name from a text file</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32054#M6644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muru,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Why dont you use your Excel as a datasource to your workflow so that the name/increment is taken care as part of the workflow itself ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;adai &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 08:21:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/provisioning-increment-qtree-name-from-a-text-file/m-p/32054#M6644</guid>
      <dc:creator>adaikkap</dc:creator>
      <dc:date>2014-08-26T08:21:50Z</dc:date>
    </item>
  </channel>
</rss>

