-
Open the Run MQL window:
-
From the compass, select Collaboration and
Approvals.
-
In the navigation pane, click .
To run an MQL command, enter the command in the
MQL Command box and click Run
or press Enter.
- To set the context for the MQL session, run this command:
set context user creator; -
To create an eService Trigger Program Parameters object with a revision of Purge, run this command:
add businessobject "eService Trigger Program Parameters" "TypeDOCUMENTSCheckInAction" "Purge"
vault "eService Administration"
"eService Program Name" emxCommonDocument
"eService Method Name" purgePreviousVersions
"eService Sequence Number" <SEQUENCE>
"eService Program Argument 1" ${OBJECTID}
"eService Program Argument 2" ${FILENAME_ORIGINAL} If you do not want to purge all types of documents, replace DOCUMENTS with the specific object type, which must be a derived from DOCUMENTS . <SEQUENCE> is used to order the program executions when more
than one trigger is found.
- To add the trigger to the Documents type, run this command:
modify type <TYPENAME> add trigger checkin action eTriggerManager <TRIGGERNAME>; Where <TYPENAME> is the document type, and <TRIGGERNAME> is the name of the eService Trigger Program Parameters object created above. For example: modify type type_Documents add trigger checkin action eTriggerManager TypeDOCUMENTSCheckInAction; -
To activate the trigger, run this command:
modify businessobject "eService Trigger Program Parameters" "TypeDOCUMENTSCheckInAction" "Purge"
current Active;
|