Configuring the prereview process
Complete following steps to configure the process:
-
Retrieve the ReviewCommentingAndApproval application.
You require the ReviewContext-schema to retrieve values from the
XML file variable.
-
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.
|
-
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
|
-
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.
-
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
|
-
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
.)