GN4 distinguishes, by means of a workstate, the content to be archived from the content to be skipped.
You can define such workstates either as a parameter, assigned to a group or user, or by specifying it as a command line parameter. See Parameters for archiving for the list. See Assign parameters to groups or users for the procedure.
In Fred4, open the Editions tab, select an edition to archive, and then on File menu, click Archive. Only the pages with the workstate specified by the archiveWorkstateName user parameter. |
In the User Browser, select Editions tab, select an edition to archive, and then on Actions, click Archive. Only the pages with the workstate specified by the archiveWorkstateName user parameter. |
Archive workflow archives all the pages and documents (extDoc objects) of a certain edition that are in a workstate specified by the archiveWorkstateName user parameter: cmd4 wf -name archive -ids 129551 -username xxxx -password -yyyy where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password. Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples. The above archives all the pages of the edition with id 129551 that are in the workstate specified by the archiveWorkstateName. |
cmd4 wf -name archive -ids 129551 -pars "pageWorkstateName:5 - Ready" -username xxxx -password -yyyy where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password. Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples. archives all the pages of the edition with id 129551 that are in the workstate '5 - Ready'. Note: if the workstate "to be archived" is defined in group/user parameters, there's no need to specify it also in the command line parameters, unless you want to override the group/user parameters setting. |
You can launch archiving by URL. For example: ./do.ashx?Cmd=WF&Name=archive&Ids=129551&Progress=Txt archives all the pages of the edition with id 129551 that are in the workstate specified by the archiveWorkstateName. If needed, you can add parameters by means of &pars. |
•It is necessary to create the PDF variant(s) of the pages to archive in Fred4 using the 'PDFVariant' print queue. •The code is in Config\Global\GN4\wf_Archive.xml. •Archive workflow changes the workstate of pages and documents that have been archived successfully to the one specified by the archiveNewWorkstateName user parameter. |
See also
Archiving of individual objects