<?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 WFA - Conditional Approval Point syntax string contains in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129102#M23216</link>
    <description>&lt;P&gt;I've been unable to find an answer to this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What syntax should I use for the execution condition? &amp;nbsp;I'd appreciate any links to resources which might have more details on the types of comparison operators that are supported in this field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to pause any requests which contain words that we flag as "not what we intend this service for".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/6954i87F643FE62B11353/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="approval-point.png" title="approval-point.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WFA 4.1 RC&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 15:04:42 GMT</pubDate>
    <dc:creator>ChadPruden</dc:creator>
    <dc:date>2017-03-16T15:04:42Z</dc:date>
    <item>
      <title>WFA - Conditional Approval Point syntax string contains</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129102#M23216</link>
      <description>&lt;P&gt;I've been unable to find an answer to this question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What syntax should I use for the execution condition? &amp;nbsp;I'd appreciate any links to resources which might have more details on the types of comparison operators that are supported in this field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to pause any requests which contain words that we flag as "not what we intend this service for".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/6954i87F643FE62B11353/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="approval-point.png" title="approval-point.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WFA 4.1 RC&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 15:04:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129102#M23216</guid>
      <dc:creator>ChadPruden</dc:creator>
      <dc:date>2017-03-16T15:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Conditional Approval Point syntax string contains</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129139#M23228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Execution condition is a Mvel expression enabled field. You can follow Mvel Expression syntax while providing the value to this&amp;nbsp;field. &amp;nbsp;Help link is provided in the Approval Point dialog to learn more about Mvel expression and its Syntax. &amp;nbsp;I have attached a screenshot for the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/6957i1EEC81BCD37FABDF/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="ConditionalExpression.png" title="ConditionalExpression.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Anu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 05:00:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129139#M23228</guid>
      <dc:creator>anuk</dc:creator>
      <dc:date>2017-03-17T05:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Conditional Approval Point syntax string contains</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129149#M23229</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/55277"&gt;@ChadPruden&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to do the following..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to Designer -&amp;gt;Functions and Create a new function with the below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function endsWithbackup(word)
{
 
import java.util.regex.*;  

return Pattern.matches(".*backup",  word);  

}&lt;/PRE&gt;&lt;P&gt;Save it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now in your workflow provide the condition for approval point like below. MVEL Auto-complete will list this function now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/6958i909BD03A70292716/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Approval Point.png" title="Approval Point.png" /&gt;&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;</description>
      <pubDate>Fri, 17 Mar 2017 09:49:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129149#M23229</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2017-03-17T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: WFA - Conditional Approval Point syntax string contains</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129157#M23234</link>
      <description>&lt;P&gt;Thanks for the response! &amp;nbsp;I took your sample code and ran with it. &amp;nbsp;Here is what I'm using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function VolNameBlackList(word)&lt;BR /&gt;{&lt;BR /&gt;// Returns TRUE if string contains any of the following keywords. Case Insensitive (?i)&lt;BR /&gt;&lt;BR /&gt;import java.util.regex.*; &lt;BR /&gt;return Pattern.matches("(?i).*(backup|bkup|archive|mp3|personal).*", word); &lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Can easily come back and add an additional keywords to flag for approval point / discussion.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 15:49:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-Conditional-Approval-Point-syntax-string-contains/m-p/129157#M23234</guid>
      <dc:creator>ChadPruden</dc:creator>
      <dc:date>2017-03-17T15:49:45Z</dc:date>
    </item>
  </channel>
</rss>

