|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Event Scripts > RemoteAccess > OnRemoteAccessAction.LST script file |
This script is it is triggered when a Remote Access action is performed by DBWorks/DBInventor.
At the same time, a record in the DBW_REMOTE_ACCESS_LOG is inserted. This script may be replaced by a trigger on the insertions on this table
This script is invoked two times for each DOWNLOAD or TAKE_OWNERSHIP action, with an @EVENT_TYPE parameter to indicate if it is a PRE event or a POST event.
Options→Environment→Remote Access
@DOCUMENT_UNIQUE_ID |
the document unique id |
|---|---|
@COMPANY_ID |
the company id |
@USER |
the name of the user that made the action |
@ACTION |
the action name: it can be: TAKE_OWNERSHIP or DOWNLOAD |
@DATE |
a formatted string containing the GMT date in which the action has been performed |
@TIME |
a formatted string containing the GMT time in which the action has been performed |
@GMTIME |
an integer containing the GMT time in which the action has been performed; the time is represented as seconds elapsed since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC). |
@EVENT_TYPE |
0: pre-event |
@TARGET_COMPANY_ID |
The name of the target COMPANY necessary for actions like Transfer of Ownership and Upload. |
@OK_REMOTE_ACCESS_ACTION |
0 stop the action |
The @OK_REMOTE_ACCESS_ACTION is considered only when @EVENT_TYPE=0 (pre-event)
The OnRemoteAccessAction.LST is not responsable of transferring files, but only of allowing or not allowing specific actions, and eventually taking some more actions on specific Remote Access Mode actions.