<?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: Does rule on 'delete content' has been solved? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38076#M16050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Thank you. If it hasn't been submitted to the bug report, I will report it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Apr 2017 08:16:12 GMT</pubDate>
    <dc:creator>billydekid</dc:creator>
    <dc:date>2017-04-09T08:16:12Z</dc:date>
    <item>
      <title>Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38071#M16045</link>
      <description>Hi,I'm on create a rule on folder which triggered when content deleted, but always fail (content move is success), until I found this old thread :&amp;nbsp;It's been a years issue as ‌ explained there.Is there any info if this issue will be solved?Thanks,[bayu]</description>
      <pubDate>Sat, 08 Apr 2017 03:24:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38071#M16045</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-04-08T03:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38072#M16046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a "on content deleted or moved" rule, and it's also working on deleting content. version is 5.2 community&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2017 10:51:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38072#M16046</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-08T10:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38073#M16047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm.... after reading your comments, I created a simple script to write a log file and works (move and deleted).&lt;/P&gt;&lt;P&gt;I will check my script again why it happens.&lt;/P&gt;&lt;P&gt;I also use 5.2 community version.&lt;/P&gt;&lt;P&gt;Thank you.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2017 22:46:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38073#M16047</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-04-08T22:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38074#M16048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After check my script and the rule, I found the problem or might 'bug' finally.&lt;/P&gt;&lt;P&gt;The problem is on "Run in background" option of rule.&lt;/P&gt;&lt;P&gt;When it disabled, the the deleting action will trigger the rule, but when it activated/checked the deleting action will not trigger the rule.&lt;/P&gt;&lt;P&gt;Below is my simple script which will create the log file with time stamp.&lt;/P&gt;&lt;P&gt;Hi &lt;B&gt;Martin Ehe&lt;/B&gt;, If you don't mind, I'd like you to test my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;function main()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var currentDate = new Date();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var logFile = userhome.childByNamePath("myCreateLogs.txt");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (logFile == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logFile = userhome.createFile("myCreateLogs.txt");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;var currentDate = new Date();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;logFile.content = "Log File: "+currentDate+"\n";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;logFile.content += "Folder Name="+space.properties.name;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2017 23:49:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38074#M16048</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-04-08T23:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38075#M16049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bayu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right. The script is not executed if it's run in the background. It seems that the scripts are not triggered if "onDelete" is called in the background.&lt;/P&gt;&lt;P&gt;I even tried the "error" script mechanism, to see if there's a problem.&lt;/P&gt;&lt;P&gt;Tried your script and the script&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;logger.system.out("rule called");&lt;/BLOCKQUOTE&gt;&lt;P&gt;and an "error" script of the same complexity&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;logger.system.out("an error occurred");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When removing the "run in background" option, your script runs fine and creates the log file in my home-dir.&lt;/P&gt;&lt;P&gt;Seems like we have a bug...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 07:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38075#M16049</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-09T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38076#M16050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Thank you. If it hasn't been submitted to the bug report, I will report it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 08:16:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38076#M16050</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-04-09T08:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Does rule on 'delete content' has been solved?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38077#M16051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It already submitted 16 Sep 2014: &lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/SHA-1363" title="https://issues.alfresco.com/jira/browse/SHA-1363" rel="nofollow noopener noreferrer"&gt;[SHA-1363] Add a warning in the Rules UI that "On Delete" rules won't run in the background - Alfresco JIRA&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this issue will be solved sooner!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Apr 2017 08:48:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rule-on-delete-content-has-been-solved/m-p/38077#M16051</guid>
      <dc:creator>billydekid</dc:creator>
      <dc:date>2017-04-09T08:48:10Z</dc:date>
    </item>
  </channel>
</rss>

