<?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 How to modify node property in CronJob without changing &amp;quot;modifier&amp;quot;? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-node-property-in-cronjob-without-changing-quot/m-p/109130#M30599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 8.7pt;"&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 8.7pt;"&gt;If I change some property (add aspect for example) in a scheduled Job, I get "modifier" property changed to "System".&lt;/PRE&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;&lt;BR /&gt;public class &lt;/SPAN&gt;ExampleCronJob &lt;SPAN style="color: #000080; font-weight: bold;"&gt;implements &lt;/SPAN&gt;StatefulJob {&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;execute(JobExecutionContext ctx) &lt;SPAN style="color: #000080; font-weight: bold;"&gt;throws &lt;/SPAN&gt;JobExecutionException {&lt;BR /&gt; ...&lt;BR /&gt; &lt;SPAN style="color: #660e7a;"&gt;nodeService&lt;/SPAN&gt;.addAspect(ref, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;ASPECT_EXAMPLE&lt;/SPAN&gt;);&lt;SPAN style="color: #808080;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;BR /&gt;}&lt;/PRE&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 8.7pt;"&gt;Is it possible to do this and leave "modifier" parameter unchanged?&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2019 11:59:23 GMT</pubDate>
    <dc:creator>npavlov</dc:creator>
    <dc:date>2019-05-31T11:59:23Z</dc:date>
    <item>
      <title>How to modify node property in CronJob without changing "modifier"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-node-property-in-cronjob-without-changing-quot/m-p/109130#M30599</link>
      <description>If I change some property (add aspect for example) in a scheduled Job, I get "modifier" property changed to "System".public class ExampleCronJob implements StatefulJob {  public void execute(JobExecutionContext ctx) throws JobExecutionException { ... nodeService.addAspect(ref, ASPECT_EXAMPLE); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Fri, 31 May 2019 11:59:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-node-property-in-cronjob-without-changing-quot/m-p/109130#M30599</guid>
      <dc:creator>npavlov</dc:creator>
      <dc:date>2019-05-31T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify node property in CronJob without changing "modifier"?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-node-property-in-cronjob-without-changing-quot/m-p/109131#M30600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to disable the behaviour of the auditable aspect. See for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.alfresco.com/resource/AlfrescoOne/5.2/PublicAPI/index.html?org/alfresco/repo/policy/BehaviourFilter.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/AlfrescoOne/5.2/PublicAPI/index.html?org/alfresco/repo/policy/BehaviourFilter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps. you should be able to&amp;nbsp;find examples within the core code (repository or open source extensions), eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;A href="https://github.com/Alfresco/records-management/blob/master/rm-community/rm-community-repo/source/java/org/alfresco/repo/imap/ExtendedImapServiceImpl.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/records-management/blob/master/rm-community/rm-community-repo/source/java/org/alfresco/repo/imap/ExtendedImapServiceImpl.java&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;... etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or search web for more general discussions, eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;A href="https://stackoverflow.com/questions/46809388/how-to-edit-modified-and-modifier-properties-in-alfresco-using-java" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/46809388/how-to-edit-modified-and-modifier-properties-in-alfresco-using-java&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;... etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 13:00:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-modify-node-property-in-cronjob-without-changing-quot/m-p/109131#M30600</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2019-05-31T13:00:33Z</dc:date>
    </item>
  </channel>
</rss>

