Revising a review with updated content using the Java API

You can revision a review and update the review content using the Java API.

// serviceClientFactory is the Service Client Factory 
Properties connectionProps = new Properties(); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, 
"jnp://localhost:1099"); 
           
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);          
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, 
"apink"); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, 
"password"); 
// Review ID 
String reviewId = "R-20100917-023543-293-4434"; 
// Stage Number (starting from 1) 
Integer stageNo = 1; 
// New Content (Document) 
Document reviewDocument = getNewReviewDocument(); 
// Change Description 
String changeDescription = "Optional Change Description goes here"; 
ReviewCommentingAndApprovalServiceClient reviewCommentingAndApproval = new 
ReviewCommentingAndApprovalServiceClient(serviceClientFactory); 
reviewCommentingAndApproval.reviseReview(reviewId, stageNo, reviewDocument, changeDescription);

// Ethnio survey code removed