<?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: Is it possible to detect which file triggered an action rule ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129024#M34952</link>
    <description>&lt;P&gt;Thanks angelborroy for your suggestion&lt;/P&gt;&lt;P&gt;I tried with&lt;/P&gt;&lt;P&gt;List&amp;lt;AssociationRef&amp;gt; assocRefs = nodeService.getTargetAssocs(actionedUponNodeRef, ((QNamePattern) QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "replaces")) );&lt;/P&gt;&lt;P&gt;but in this way I find association file&lt;/P&gt;&lt;P&gt;As I told in the post -&amp;gt; I'd like information about file&amp;nbsp; that I manage&lt;/P&gt;&lt;P&gt;Could you suggest a method or a way to reach this&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 11:09:31 GMT</pubDate>
    <dc:creator>minox</dc:creator>
    <dc:date>2022-02-08T11:09:31Z</dc:date>
    <item>
      <title>Is it possible to detect which file triggered an action rule ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129022#M34950</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;I was looking for by the way ruleAction&lt;/P&gt;&lt;P&gt;in particular in my class that extends ActionExecuterAbstractBase {&lt;BR /&gt;executeImpl(Action ruleAction, NodeRef actionedUponNodeRef)&lt;/P&gt;&lt;P&gt;I'd like to find somethings refering to the main file that triggered the rule because I have to work whit it.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 20:45:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129022#M34950</guid>
      <dc:creator>minox</dc:creator>
      <dc:date>2022-02-07T20:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to detect which file triggered an action rule ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129023#M34951</link>
      <description>&lt;P&gt;The node for the action is "actionedUponNodeRef". You may work with it by using NodeService or similar.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:17:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129023#M34951</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-02-08T08:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to detect which file triggered an action rule ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129024#M34952</link>
      <description>&lt;P&gt;Thanks angelborroy for your suggestion&lt;/P&gt;&lt;P&gt;I tried with&lt;/P&gt;&lt;P&gt;List&amp;lt;AssociationRef&amp;gt; assocRefs = nodeService.getTargetAssocs(actionedUponNodeRef, ((QNamePattern) QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, "replaces")) );&lt;/P&gt;&lt;P&gt;but in this way I find association file&lt;/P&gt;&lt;P&gt;As I told in the post -&amp;gt; I'd like information about file&amp;nbsp; that I manage&lt;/P&gt;&lt;P&gt;Could you suggest a method or a way to reach this&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 11:09:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129024#M34952</guid>
      <dc:creator>minox</dc:creator>
      <dc:date>2022-02-08T11:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to detect which file triggered an action rule ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129025#M34953</link>
      <description>&lt;P&gt;Some samples:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/keensoft/alfresco-ciphering/blob/db886290846d1ecc3ce71a94fa7cfc0cbe746f3a/alfresco-ciphering-repo/src/main/java/es/keensoft/ciphering/DecipherActionExecuter.java#L39" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/keensoft/alfresco-ciphering/blob/db886290846d1ecc3ce71a94fa7cfc0cbe746f3a/alfresco-ciphering-repo/src/main/java/es/keensoft/ciphering/DecipherActionExecuter.java#L39&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/keensoft/alfresco-simple-ocr/blob/b789a5e0df19a9dde534e9b9e1f44deb0372c5e0/simple-ocr-repo/src/main/java/es/keensoft/alfresco/ocr/OCRExtractAction.java#L81" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/keensoft/alfresco-simple-ocr/blob/b789a5e0df19a9dde534e9b9e1f44deb0372c5e0/simple-ocr-repo/src/main/java/es/keensoft/alfresco/ocr/OCRExtractAction.java#L81&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 15:27:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129025#M34953</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2022-02-08T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to detect which file triggered an action rule ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129026#M34954</link>
      <description>&lt;P&gt;Thanks one more time angelborroy&lt;/P&gt;&lt;P&gt;looking through the first link I found&lt;/P&gt;&lt;P&gt;String fileName = serviceRegistry.getNodeService (). GetProperty (actionedUponNodeRef, ContentModel.PROP_NAME) .toString ();&lt;/P&gt;&lt;P&gt;in this way I reach the main file of the proper name I was looking for&lt;/P&gt;&lt;P&gt;but by the way my target is the nodeRef of this filename&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 19:27:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-detect-which-file-triggered-an-action-rule/m-p/129026#M34954</guid>
      <dc:creator>minox</dc:creator>
      <dc:date>2022-02-08T19:27:34Z</dc:date>
    </item>
  </channel>
</rss>

