JavaBehaviour NotificationFrequency
Asked Answered
M

1

6

I use alfresco 4.2f community edition, and in the official documentation I don't understand for JavaBehaviour NotificationFrequency what is the difference among:

NotificationFrequency.EVERY_EVENT 
NotificationFrequency.FIRST_EVENT
NotificationFrequency.TRANSACTION_COMMIT

In particular between the first and the third.

Thanks in advance.

Moser answered 15/5, 2015 at 17:40 Comment(0)
D
6

Using NotificationFrequency you can decide when the behavior should be invoked by specifying the appropriate NotificationFrequency.

  1. NotificationFrequency.EVERY_EVENT
    *This will be called every time when event is occurred.*
  2. NotificationFrequency.FIRST_EVENT
    *This will be called only once.*
  3. NotificationFrequency.TRANSACTION_COMMIT
    *This will be called when transaction is committed.*

You will get more idea when you read content of below link.Also read the comment of Axel Faust.

http://alfresco.blog.redpill-linpro.com/2014/10/14/specialize-type-upon-content-creation-within-behaviour-can-result-in-invalid-version-history/

Devilish answered 16/5, 2015 at 5:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.