Auto-set a page workstate after successful printing

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 18:44

In the GN4 version 2.4 or newer, the printing workflows can optionally set a specific workstate to the pages successfully printed.

In this way, the user can visually check the pages that have been printed without errors.

You can define in the printQueue object both the success workstate ('successWorkstateName' parameter) and the error workstate ('errorWorkstateName' parameter).

The printing workflow sets the workstate of the page to the success workstate if the page is printed without errors: otherwise, it sets the workstate to the error workstate.

If the workstate names are not defined into the printQueue, then the printing workflow looks for the 'printSuccessWorkstateName' and 'printErrorWorkstateName' user parameters.

You must reimport the following workflow (using 'cmd4 config -in ...'):

..\config\global\gn4\wf_PrintTemplate.xml

and the following object (using 'cmd4 import -in ...')

..\config\data\gn4\dataSrcTemplate_GeneratePDF.xml

You can optionally reimport the following objects (they contain the definition of the workstate parameter):

..\config\data\gn4\securityScope_Default.xml

..\config\data\gn4\printTemplate_PrintFile.xml

..\config\data\gn4\printTemplate_Variant.xml

..\config\data\gn4\printTemplate_VariantArchive.xml