<?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: Issue with Alfresco Behavior: BeforeCreateNodePolicy &amp; BeforeSetNodeTypePolicy in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281152#M234282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be other behaviours are running prior to yours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try putting the following before invoking your methods in the java class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;behaviourFilter.disableBehaviour();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checkFolderValidity(parentRef)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;behaviourFilter.enableBehaviour();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 06:08:03 GMT</pubDate>
    <dc:creator>kavilash23</dc:creator>
    <dc:date>2016-01-25T06:08:03Z</dc:date>
    <item>
      <title>Issue with Alfresco Behavior: BeforeCreateNodePolicy &amp; BeforeSetNodeTypePolicy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281151#M234281</link>
      <description>Hi Folks,I am facing issue with alfresco behaviors: &amp;lt;strong&amp;gt;BeforeCreateNodePolicy &amp;amp; BeforeSetNodeTypePolicy&amp;lt;/strong&amp;gt;, and they are not working as I expect them to. I have bonded them to a custom folder type &amp;lt;strong&amp;gt;evgb:country&amp;lt;/strong&amp;gt;. How i expect them to work is,1. &amp;amp;</description>
      <pubDate>Thu, 21 Jan 2016 12:10:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281151#M234281</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-01-21T12:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Alfresco Behavior: BeforeCreateNodePolicy &amp; BeforeSetNodeTypePolicy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281152#M234282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be other behaviours are running prior to yours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try putting the following before invoking your methods in the java class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;behaviourFilter.disableBehaviour();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;checkFolderValidity(parentRef)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;behaviourFilter.enableBehaviour();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 06:08:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281152#M234282</guid>
      <dc:creator>kavilash23</dc:creator>
      <dc:date>2016-01-25T06:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Alfresco Behavior: BeforeCreateNodePolicy &amp; BeforeSetNodeTypePolicy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281153#M234283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Hiten,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your 'BeforeCreateNodePolicy', I am not sure what customization you have done but I believe when you click 'Create… menu option' at that time its NOT calling alfresco data script and so node is NOT created and so your registered policy behavior is NOT being executed. When you actually fill up form and hit create button at that time only actual Node is created and so your registered behavior is being executed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your query - "EDIT-1: Please let me know if anyone has any ideas on this ?? Specifically why the BeforeSetNodeTypePolicy is not working on the Folder."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to use - OnSetNodeTypePolicy. Check this - &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/MNT-2212" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/MNT-2212&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure for alfresco 5.0 but I believe there is not any change in API so should be working in your case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 08:08:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281153#M234283</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2016-01-25T08:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Alfresco Behavior: BeforeCreateNodePolicy &amp; BeforeSetNodeTypePolicy</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281154#M234284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Niketa. Your suggestion was helpful in solving my problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:06:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-alfresco-behavior-beforecreatenodepolicy/m-p/281154#M234284</guid>
      <dc:creator>hiten_rastogi1</dc:creator>
      <dc:date>2016-01-27T10:06:13Z</dc:date>
    </item>
  </channel>
</rss>

