<?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: start new workflow when one of the custom properties of existing document changed. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81222#M25070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will not be appropriate to trigger the workflow from server side js as you will also require to compare the previous and new value for the properties/property. I would suggest to implement a behavior by implementing&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy&lt;/STRONG&gt;&lt;/EM&gt; interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This policy provide a method where you can easily compare old and new value on a property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;public void onUpdateProperties(final NodeRef nodeRef, final Map&amp;lt;QName, Serializable&amp;gt; before,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; final Map&amp;lt;QName, Serializable&amp;gt; after) {&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;....&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the above implementation you can add your code to trigger the workflow on value change.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2019 16:58:02 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2019-06-28T16:58:02Z</dc:date>
    <item>
      <title>start new workflow when one of the custom properties of existing document changed.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81220#M25068</link>
      <description>I need to start new workflow when one of the custom properties of existing document is changed.&amp;nbsp;&amp;nbsp;Is there any way to execute server-side javascript when editing metadata and how I can get which property changed.</description>
      <pubDate>Thu, 06 Jun 2019 04:39:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81220#M25068</guid>
      <dc:creator>wayi</dc:creator>
      <dc:date>2019-06-06T04:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: start new workflow when one of the custom properties of existing document changed.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81221#M25069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were you, I would create a custom behaviour, just like described in the following tutorial: &lt;A class="link-titled" href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" title="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;Implementing Custom Behaviors in Alfresco | ECMArchitect | Alfresco Developer Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:32:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81221#M25069</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2019-06-28T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: start new workflow when one of the custom properties of existing document changed.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81222#M25070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will not be appropriate to trigger the workflow from server side js as you will also require to compare the previous and new value for the properties/property. I would suggest to implement a behavior by implementing&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy&lt;/STRONG&gt;&lt;/EM&gt; interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This policy provide a method where you can easily compare old and new value on a property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;@Override&lt;BR /&gt; &lt;STRONG&gt;&lt;EM&gt;public void onUpdateProperties(final NodeRef nodeRef, final Map&amp;lt;QName, Serializable&amp;gt; before,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; final Map&amp;lt;QName, Serializable&amp;gt; after) {&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;....&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the above implementation you can add your code to trigger the workflow on value change.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 16:58:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/start-new-workflow-when-one-of-the-custom-properties-of-existing/m-p/81222#M25070</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-06-28T16:58:02Z</dc:date>
    </item>
  </channel>
</rss>

