<?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: posible bug y duda en notificaciones in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100180#M69373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buenas!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aquí puedes encontrar un documento pdf sobre comportamientos (aunque en inglés &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Que vaya bien!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2008 11:36:24 GMT</pubDate>
    <dc:creator>ajv</dc:creator>
    <dc:date>2008-09-05T11:36:24Z</dc:date>
    <item>
      <title>posible bug y duda en notificaciones</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100177#M69370</link>
      <description>hola:apenas llevo unos días en esto pero hay una cosa que estoy observando con las notificaciones que creo que no está bien.He creado varias reglas de notificación en un espacio, una al añadir archivo (inbound), otra al actualizarlo(update) y otra al borrarlo (outbound)- Cuando elimino un archivo me</description>
      <pubDate>Fri, 05 Sep 2008 08:50:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100177#M69370</guid>
      <dc:creator>jaime_martin</dc:creator>
      <dc:date>2008-09-05T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: posible bug y duda en notificaciones</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100178#M69371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hola Jaime,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;El comportamiento de Alfresco en ese sentido es "normal".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Te explico: Todo el funcionamiento de las reglas de contenido están fundamentadas en los comportamientos (behaviors). Consiste en especificar un evento y, cuando ocurra, se ejecutará una acción personalizada. Para ello, cada vez que se crea una regla, se registra un comportamiento. Ese comportamiento admite diferentes frecuencias de ocurrencia: Que se dispare con cada evento, que se dispare únicamente al realizar el commit del evento o que se lance en el primer momento en que se detecta el evento.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;He revisado el código de Alfresco y los comportamientos que se registran internamente por cada regla son de tipo EVERY_EVENT (con cada evento)…Eso significa que si durante una actualización de un nodo se dan varios puntos de enlace con el comportamiento, ejecutará la regla todas esas veces (que es lo que está pasando).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Te pongo un fragmento de código por si te aclara mejor los conceptos:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;En la clase org.alfresco.repo.rule.ruletrigger.OnPropertyUpdateRuleTrigger se registra el comportamiento para las actualizaciones:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public void registerRuleTrigger()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Bind behaviour&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.policyComponent.bindClassBehaviour(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QName.createQName(NamespaceService.ALFRESCO_URI, "onUpdateProperties"), &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new JavaBehaviour(this, "onUpdateProperties"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;El problema reside en la forma en que se crea el JavaBehaviour…El constructor de esta clase admite un tercer parámetro para indicarle la frecuencia de notificación del evento:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;JavaBehaviour(Object instance, String method, NotificationFrequency frequency)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;y los valores que admite son: EVERY_EVENT, FIRST_EVENT, TRANSACTION_COMMIT. Por defecto, el valor de la frecuencia es &lt;/SPAN&gt;&lt;STRONG&gt;EVERY_EVENT&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Por tanto, explicación de por qué ocurre esto la hay&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Y entiendo que no es muy correcto (yo, por ejemplo, daría opción desde el RuleService o similar para poder establecer la frecuencia de notificación de un comportamiento…).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Las veces que he tenido que implementar un comportamiento, sí que tengo en cuenta estos detalles para que los "triggers" se disparen las veces que me interesa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Para las reglas que vienen predefinidas a través de Alfresco, veo difícil la modificación (no se me ocurre nada, salvo modificar las clases pertinentes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bueno, me sabe mal no conocer una solución directa y espero que te haya por lo menos ayudado a conocer los motivos.&amp;nbsp; &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Un truco que quizás te viene bien para "evitar" notificaciones extra es que al crear un contenido nuevo, aparece un check en algún momento del asistente de creación que es para "Modificar las propiedades una vez creado" si lo dejas marcado, además de la creación, realizará una actualización del contenido…por lo que tal como lo tienes, se enviará una notificación.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Saludos!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:27:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100178#M69371</guid>
      <dc:creator>ajv</dc:creator>
      <dc:date>2008-09-05T10:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: posible bug y duda en notificaciones</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100179#M69372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Muchas gracias!! Realmente es curioso el tema, al menos ya entiendo el porque pasa esto. Me alegro de haber preguntado y no haber rellenado una JIRa innecesaria.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Por cierto, ¿dónde podría encontrar algo más de info sobre los behaviours? He buscado en la wiki y no encuentro ningún artículo específico del tema.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;muchas gracias!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:17:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100179#M69372</guid>
      <dc:creator>jaime_martin</dc:creator>
      <dc:date>2008-09-05T11:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: posible bug y duda en notificaciones</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100180#M69373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buenas!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aquí puedes encontrar un documento pdf sobre comportamientos (aunque en inglés &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Que vaya bien!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 11:36:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100180#M69373</guid>
      <dc:creator>ajv</dc:creator>
      <dc:date>2008-09-05T11:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: posible bug y duda en notificaciones</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100181#M69374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;muchas gracias por el enlace!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 12:39:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/posible-bug-y-duda-en-notificaciones/m-p/100181#M69374</guid>
      <dc:creator>jaime_martin</dc:creator>
      <dc:date>2008-09-05T12:39:44Z</dc:date>
    </item>
  </channel>
</rss>

