Initiating a review in Workbench
-
In Workbench, create a LiveCycle application CustomSolution.
-
Create a new short lived process called initiateMyReview
in the application.
-
In the newly created process, right click and configure.
-
Go to Advanced tab, and set the Transaction Timeout to 600
secs.
-
Add the following variables to the process:
Name
|
Type
|
Purpose
|
inTemplateName
|
string
|
Input
|
inReviewDocument
|
document
|
Input
|
inSupportingDocument
|
document
|
Input
|
inReviewTitle
|
string
|
Input
|
inReviewPurpose
|
string
|
Input
|
outReviewID
|
string
|
Output
|
supportingDocList
|
Type: List sub-type:RCADocumentsupportingRCADocument
|
|
supportingRCADocument
|
RCADocument
|
|
Initiator
|
User
|
|
templateXML
|
xml
|
Input
|
-
Import the asset ReviewCommentingAndApproval/resources/schemas/ReviewContext-schema.xsd
to the CustomSolution application.
-
Add Get Review Template operation from Review Commenting
& Approval Core to the initiateMyReview process.
-
Add Find User operation from Foundation category
-
In Filter, select Exact match and set the Universal ID to
an XPath expression, such as /process_data/@creator_id.
-
Add Set Value operation from Foundation category. Name the
operation, Set Review Parameters”
-
In the mappings in Set Value process properties, add following
mappings:
Location
|
Expression
|
/process_data/templateXML/review_context/title
|
/process_data/@inReviewTitle
|
/process_data/templateXML/review_context/purpose
|
/process_data/@inReviewPurpose
|
/process_data/templateXML/review_context/initiator/@domain
|
/process_data/initiator/object/@domainName
|
/process_data/templateXML/review_context/initiator/@canonical_name
|
/process_data/initiator/object/@canonicalName
|
-
Add Set Value operation from Foundation category. Name it
“add supporting documents”.
-
In the mappings in Set Value process properties, add following
mappings
Location
|
Expression
|
/process_data/supportingRCADocument/object/@document
|
/process_data/@inSupportingDocument
|
/process_data/supportingRCADocument/object/@type
|
'DOCUMENT'
|
/process_data/supportingRCADocument/object/@name
|
'Supporting Document.pdf'
|
/process_data/supportingDocList[1]
|
/process_data/supportingRCADocument
|
-
Add Initiate Review operation from ReviewCommentingAndApprovalService
-
Set Input “Review Context XML” to variable templateXML
-
Set input Review Document to inReviewDocument
-
Set Input Supporting Documents List<RCADocument> to
variable
supportingDocList
-
Set output Review ID to variable outReviewID
-
Save and deploy the application
|
|