Event Scripts
Event Scripts allow you to respond to events such as a file being checked in.
They give you the opportunity to validate that the event should take place based on some condition, such as:
- Can this DWG be checked in if the attribute has not been set to reviewed?
- Can this task be closed if a certain file does not exist or is in some state?
They also give you the opportunity to respond to an event, such as moving a file elsewhere once it has had its attribute state set appropriately.
Each event tends to have two API methods available - an OnBeforeEvent and an OnAfterEvent method.
For example,
OnBeforeFileCheckIn and OnAfterFileCheckIn
Getting Started
To get started with Event Scripting, you should override the SynergyServerScripting.ServerEventScript class and implement the appropriate methods.