<?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: Trigger an automation script when a child is created or deleted from a folderish document in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316790#M3791</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;See screenshot: there's indeed a formatting issue, I'm gonna create a JIRA ticket to fix it.&lt;/P&gt;
&lt;P&gt;Remember also you can always import custom events from the Studio Event Registry.&lt;/P&gt;
&lt;P&gt;Thx&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 09:14:18 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2020-10-13T09:14:18Z</dc:date>
    <item>
      <title>Trigger an automation script when a child is created or deleted from a folderish document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316787#M3788</link>
      <description>&lt;P&gt;I try to trigger an automation script when a child is added or deleted from a folderish custom document. I have a simple automation script with a console.log message to test the trigger.&lt;/P&gt;
&lt;P&gt;I've created an event handler with _ document.modified_ event in Nuxeo Studio. In event handler activation, I've selected the local type of my custom folderish document.&lt;/P&gt;
&lt;P&gt;In Web Ui, when i add a new document on this folderish document, the automation script is triggered (i see my console.log message in the server.log file) but when i delete a document in the same folderish document, there is no trigger.&lt;/P&gt;
&lt;P&gt;I've also tried the Event &lt;EM&gt;Children order changed&lt;/EM&gt; with no results.&lt;/P&gt;
&lt;P&gt;Do you have any suggestion to handle this trigger ?&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Seb&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 08:50:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316787#M3788</guid>
      <dc:creator>Sébastien_Mehr</dc:creator>
      <dc:date>2020-10-08T08:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger an automation script when a child is created or deleted from a folderish document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316788#M3789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In this case, it's more suitable to add an event handler on the children document rather than the container: In your event handler condition, just add a filter checking the parent document type, and it's OK.&lt;/P&gt;
&lt;P&gt;For the events you would have to listen, you should have &lt;CODE&gt;Document deleted&lt;/CODE&gt;, &lt;CODE&gt;Document trashed&lt;/CODE&gt; , &lt;CODE&gt;Document Created&lt;/CODE&gt;, &lt;CODE&gt;Document imported&lt;/CODE&gt;. If you want to track if a children is modified, you have to listen to the &lt;CODE&gt;Before document modification&lt;/CODE&gt; event (make sure you're not saving anything in the corresponding automation chain). If you listen to the &lt;CODE&gt;Document modified&lt;/CODE&gt;, there's some chances you're running into infinite loops.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 11:29:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316788#M3789</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-10-11T11:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger an automation script when a child is created or deleted from a folderish document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316789#M3790</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you very much for your help. I've just created an event listener on my child document type but i'm now stuck with the &lt;CODE&gt;Document trashed&lt;/CODE&gt; event. I can't find it in Nuxeo studio :
&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1946i181C4E20A8D6892F/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Am i missing something ?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Seb&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 08:40:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316789#M3790</guid>
      <dc:creator>Sébastien_Mehr</dc:creator>
      <dc:date>2020-10-13T08:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger an automation script when a child is created or deleted from a folderish document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316790#M3791</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;See screenshot: there's indeed a formatting issue, I'm gonna create a JIRA ticket to fix it.&lt;/P&gt;
&lt;P&gt;Remember also you can always import custom events from the Studio Event Registry.&lt;/P&gt;
&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 09:14:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316790#M3791</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-10-13T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger an automation script when a child is created or deleted from a folderish document</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316791#M3792</link>
      <description>&lt;P&gt;Thanks for the ticket ! I keep in mind the custom event importation, but as far as possible i wish to set my project with a "standard" configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 11:57:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/trigger-an-automation-script-when-a-child-is-created-or-deleted/m-p/316791#M3792</guid>
      <dc:creator>Sébastien_Mehr</dc:creator>
      <dc:date>2020-10-13T11:57:59Z</dc:date>
    </item>
  </channel>
</rss>

