<?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: Regular Expression Issue in constraints Tag when using custom model in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60271#M21189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested your regex on a constraint in one of my models and saw the same problem you were seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try changing your regex to:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[a-zA-Z0-9]*&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tested that and it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Nov 2018 03:42:52 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-11-03T03:42:52Z</dc:date>
    <item>
      <title>Regular Expression Issue in constraints Tag when using custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60268#M21186</link>
      <description>Hello,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I created custom model to apply for uploaded documents in alfresco share. My customModel.xml has constraints asbelow:&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;model name="t:membershipdocumentsmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"&amp;gt;&amp;lt;!-- Opti</description>
      <pubDate>Tue, 30 Oct 2018 14:35:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60268#M21186</guid>
      <dc:creator>ajay_k</dc:creator>
      <dc:date>2018-10-30T14:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Issue in constraints Tag when using custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60269#M21187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am confused because your error message is complaining about a property named membership_id which I do not see in the model you are sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 21:16:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60269#M21187</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-10-30T21:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Issue in constraints Tag when using custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60270#M21188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Hello Jeff Potts&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Sorry for that, by mistake i posted different model.Below is the model i'm using&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;lt;model name="t:membershipdocumentsmodel" xmlns="&lt;/SPAN&gt;&lt;A class="" href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;lt;!-- Optional meta-data about the model --&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Membership Document Model&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;author&amp;gt;Techsophy&amp;lt;/author&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;lt;!-- Imports are required to allow references to definitions in other models --&amp;gt;&lt;BR /&gt;&amp;lt;imports&amp;gt;&lt;BR /&gt;&amp;lt;!-- Import Alfresco Dictionary Definitions --&amp;gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="" href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;" prefix="d" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;!-- Import Alfresco Content Domain Model Definitions --&amp;gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;" prefix="cm" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="" href="http://www.alfresco.org/model/system/1.0" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://www.alfresco.org/model/system/1.0&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;" prefix="sys"/&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;/imports&amp;gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;lt;namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;lt;namespace uri="&lt;/SPAN&gt;&lt;A class="" href="http://www.tech.com/model/content/1.0" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://www.tech.com/model/content/1.0&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;" prefix="t" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;/namespaces&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;constraints&amp;gt;&lt;BR /&gt;&amp;lt;constraint name="t:alphanumeric" type="REGEX"&amp;gt;&lt;BR /&gt;&amp;lt;parameter name="expression"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;[a-zA-Z0-9]&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;parameter name='requiresMatch'&amp;gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;/constraint&amp;gt;&lt;BR /&gt;&amp;lt;constraint name="t:length" type="LENGTH"&amp;gt;&lt;BR /&gt;&amp;lt;parameter name='minLength'&amp;gt;&amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;parameter name='maxLength'&amp;gt;&amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;&amp;lt;/parameter&amp;gt;&lt;BR /&gt;&amp;lt;/constraint&amp;gt;&lt;BR /&gt;&amp;lt;/constraints&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;types&amp;gt;&lt;BR /&gt;&amp;lt;!-- Enterprise-wide generic document type --&amp;gt;&lt;BR /&gt;&amp;lt;type name="t:membership_doc"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Transaction Document&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;parent&amp;gt;cm:content&amp;lt;/parent&amp;gt;&lt;BR /&gt;&amp;lt;properties&amp;gt;&lt;BR /&gt;&amp;lt;property name="t:membership_id"&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;&amp;lt;constraints&amp;gt;&lt;BR /&gt;&amp;lt;constraint ref="t:alphanumeric" /&amp;gt;&lt;BR /&gt;&amp;lt;constraint ref="t:length" /&amp;gt;&lt;BR /&gt;&amp;lt;/constraints&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/properties&amp;gt;&lt;BR /&gt;&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;/types&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/model&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 05:18:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60270#M21188</guid>
      <dc:creator>ajay_k</dc:creator>
      <dc:date>2018-10-31T05:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Issue in constraints Tag when using custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60271#M21189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested your regex on a constraint in one of my models and saw the same problem you were seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try changing your regex to:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[a-zA-Z0-9]*&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tested that and it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2018 03:42:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60271#M21189</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-11-03T03:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Issue in constraints Tag when using custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60272#M21190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff Potts, its working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:05:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/regular-expression-issue-in-constraints-tag-when-using-custom/m-p/60272#M21190</guid>
      <dc:creator>ajay_k</dc:creator>
      <dc:date>2018-11-05T15:05:41Z</dc:date>
    </item>
  </channel>
</rss>

