Configuring the review template to use a prereview processAfter you create a custom prereview or postreview process and deploy it, use the findProcessHooks operation to retrieve the list of hooks. A string value delimited by "|" is returned that you can parse in your custom application to retrieve the names of the custom applications. You use set the name of the process in the review context. For example, using the findProcessHooks operation returns the following string value when the Managed Review & Approval samples are deployed: ManagedReviewAndApproval-Sample/processes/PostHookArchiveDocInCS| ManagedReviewAndApproval-Sample/processes/PreHookConvertImageToPDF| ManagedReviewAndApproval-Sample/processes/PreHookConvertDocToPDF| ManagedReviewAndApproval-Sample/processes/ArchiveDocAndTrackingSheetInCS| CustomHooks/PreHookAddWaterMark You can also use the findCustomRCAProcesses operation (Review Commenting & Approval Util service). The method has no input arguments and it returns a map of strings containing a list of approval routing slips, review tracking sheets, prereview processes, and postreview processes. (See Find Custom Assign Task Processes operation in LiveCycle Workbench 9.5 Help .) You can set the review template for a stage in the XML by setting the <pre-process-hook> element as shown in the following example: <?xml version="1.0" encoding="UTF-8"?> <review_context xmlns="http://adobe.com/solutions/rca/reviewcontext"> <initiator email="admin@sampleorganization.com" name="Super Administrator" domain="DefaultDom" oid="AD05A59B-56C5-102D-9E00-0000C0A82180" canonical_name="SuperAdmin" id="administrator"/> <review_id>R-20100720-115628-140-7822</review_id> <revision>1</revision> <title>test</title> ... ... <stages> <stage non_expiring_stage="false" wait_for_expiry="false" duration_unit="DAYS" duration="1" taskType="WORKSPACE" type="SEQUENTIAL_REVIEW" name="Review by owners"> <status>PENDING</status> <pre_process_hook>CustomHooks/PreHookAddWaterMark</pre_process_hook> <disposition>PENDING</disposition> <reviewers> <reviewer created_at="INITIATION" oid="AD05A59B-56C5-102D-8A00-0000D9D82180" name="Akira Tanaka" isGroup="false" id="atanaka" email="atanaka@@sampleorganization.com" domain="DefaultDom" canonical_name="AkiraTanaka" isOptional="false"> <status>PENDING</status> <no_of_comments>0</no_of_comments> </reviewer> </reviewers> </stage> </stages> <supporting_documents/> </review_context> |
|
// Ethnio survey code removed