This project has moved. For the latest updates, please go here.

Versioning Events

On the first generation of an item, the Before and After Add events are called.  For both events, the context item is the item to be added with the data to be added (or that was added).  Starting with the second generation (not just major revision), the Before and After Version events are called.  The Before Version event is passed the current metadata (e.g. ID, generation, major revision, etc.), but contains the new data that will be put in the item which is about to be created.  The After Version event is passed the current data and metadata (i.e. the metadata of the old item, not the item that was just created).

Event  Generation Context Item (Data)
Context Item (Metadata:
ID, Generation, Major Rev, etc.)
Action
onBeforeAdd 1 New Item New Item Add
onAfterAdd 1 New Item New Item  N/A
onBeforeVersion 2 New Item Current Item  Version
onAfterVersion 2 Current Item  Current Item N/A
onBeforeVersion 3 New Item Current Item  Version
onAfterVersion 3 Current Item  Current Item  N/A
... ... ... ...  

Last edited Sep 9, 2011 at 4:56 PM by erdomke, version 2

Comments

No comments yet.