Adding an approver to the review stage using the Java APIYou can add an approver to a review stage using the Java API. // serviceClientFactory is the Service Client Factory Properties connectionProps = new Properties(); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://locahost: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; // LC UM Domain of the Reviewer String domain = "Global Corp"; // LC UM Canonical name of the Reviewer String canonicalName = "apink"; ReviewCommentingAndApprovalServiceClient reviewCommentingAndApproval = new ReviewCommentingAndApprovalServiceClient(serviceClientFactory); reviewCommentingAndApproval.addApprover(reviewId, stageNo, domain, canonicalName); |
|
// Ethnio survey code removed