Configuring the prereview process

Complete following steps to configure the process:

  1. Retrieve the ReviewCommentingAndApproval application. You require the ReviewContext-schema to retrieve values from the XML file variable.

  2. In PreHookAddWaterMark process create the following variables:

    Variable Name

    Data Type

    Input/Output None

    Purpose

    inReviewContext

    document

    Input

    Mandatory variable for a prereview process.

    inReviewDocument

    document

    Input

    Mandatory variable for a prereview process.

    outReviewDocument

    document

    Output

    Mandatory variable for a prereview process.

    reviewId

    string

    none

    Storing the Review ID.

    reviewContextXML

    xml

    none

    Storing the XML.

    assemblerResultOut

    AssemblerResult

    none

    Storing the result of using an Assembler operation and to retrieve resultant PDF file.

  3. Configure the following properties for the Execute operation:

    Location

    Expression

    /process_data/reviewContextXML

    /process_data/@inReviewContext

    /process_data/@reviewId

    /process_data/reviewContextXML/review_context/review_id

  4. Configure the following properties for the Invoke DDX operation:

    • Set Input DDX Document to the WatermarkDDX DDX file that was created in previously.

    • For Input Document Map, complete the following tasks: Click Scan DDX for required inputs.

      • Click Scan DDX for required inputs to retrieve the sourcePDF and watermarkString as DDX keys.

      • Select sourcePDF, add an Expression, and set it to /process_data/@inReviewContext

      • Select watermarkString, add an Expression, and set it to /process_data/@reviewId

    • Set Assembler Result to the assemblerResultOut variable.

  5. Configure the following properties in the second Execute operation:

    Location

    Expression

    /process_data/outReviewDocument

    /process_data/@inReviewContext

    /process_data/@reviewId

    /process_data/reviewContextXML/review_context/review_id

  6. Save the process and deploy the CustomHook application.

After you deploy your application, you can use the findProcessHooks operation to find your custom prereview process or configure your review template to use it. (See Configuring the review template to use a prereview process .)

// Ethnio survey code removed