Package org.kuali.rice.kew.api

Examples of org.kuali.rice.kew.api.WorkflowDocument.saveDocument()


   * @return the created work flow document, loaded by the initiator
   * @throws WorkflowException
   */
  public WorkflowDocument testWorkflowRoutingOnly(String docTypeName, String initiator, String approver) throws WorkflowException {
    WorkflowDocument doc = WorkflowDocumentFactory.createDocument(getPrincipalIdForName(initiator), docTypeName);
    doc.saveDocument("saved");
    doc = WorkflowDocumentFactory.loadDocument(getPrincipalIdForName(initiator), doc.getDocumentId());
    assertTrue("document should be saved but is '" + doc.getStatus() + "'", doc.isSaved());
    doc.approve("routing");
    // final String approver = "lawyer1";
    doc = WorkflowDocumentFactory.loadDocument(getPrincipalIdForName(approver), doc.getDocumentId());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.