|
|
|
BlueCielo TeamWork 2012 VBScript API Reference | BlueCielo ECM Solutions |
Most of the event procedures consist of four types for each event:
Within a single event, the event procedures are invoked in the above order. The Initialize and Terminate procedures are invoked once each for the entire batch and for most of the events only the Vault object is available. The Before and After procedures are invoked once for each object (document, folder, work area, and so on) affected by the event and during these events, the affected objects are available.
The command a user executes may also involve more than one type of event. The following example lists the NewDocument and CalculateFileName events and the order in which they occur when a new document is created:
The preceding example is a relatively simple one in which all of the events are in the DocGenericEvent category and only one document is involved. In the following example, events in the DocGenericEvent and DocCopyMoveEvent categories occur in the order listed when a batch of documents (some of which might have references) is copied:
Before the batch of documents is processed:
For each source document in the batch:
For each destination document (copy made) in the batch:
After the batch of documents has been processed:
These same events occur when documents are moved, derived, or replaced but with the corresponding events (DocCopyMoveEvent_InitializeMove, DocCopyMoveEvent_BeforeMove, and so on) instead of DocCopyMoveEvent_InitializeCopy, DocCopyMoveEvent_BeforeCopy, and so on. The only difference is that the source and destination documents are the same document.
Related concepts
Understanding TeamWork event procedures
Understanding the names of events
Related tasks
Creating and editing event procedures
Limiting events generated by VBScript
Related information
Copyright © 2000-2012 BlueCielo ECM Solutions |