Package org.kuali.rice.kew.engine.node

Examples of org.kuali.rice.kew.engine.node.SplitResult


   * Test method for {@link org.martinlaw.routing.AnnexTypeApprovalSplit#process(org.kuali.rice.kew.engine.RouteContext, org.kuali.rice.kew.engine.RouteHelper)}.
   * @throws Exception
   */
  @Test
  public void testProcess() throws Exception {
    SplitResult result = annexTypeApprovalSplit.process(null, null);
    assertNotNull("split result should not be null", result);
    assertTrue("branch list should be empty", result.getBranchNames().isEmpty());
   
    BusinessObjectService boSvc = mock(BusinessObjectService.class);
    annexTypeApprovalSplit.setBusinessObjectService(boSvc);
   
    RouteContext context = mock(RouteContext.class);
View Full Code Here


      throws Exception {
    List<String> branchNames = new ArrayList<String>();
    String initiatorPrincipalId = context.getDocument().getInitiatorPrincipalId();
    String approverPrincipalId = getActionPrincipalId(context.getDocument().getActionsTaken(), KewApiConstants.ACTION_TAKEN_APPROVED_CD);
    if (approverPrincipalId == null || StringUtils.equals(initiatorPrincipalId, approverPrincipalId)) {
      return new SplitResult(branchNames);
    } else {
      branchNames.add(MartinlawConstants.RoutingBranches.FYI_INITIATOR_IF_NOT_APPROVER);
      return new SplitResult(branchNames);
    }
  }
View Full Code Here

          log.error("annexType for work with doc number '" + context.getDocument().getDocumentId() "' is null");
        }
      }
    }
   
    return new SplitResult(branchNames);
  }
View Full Code Here

TOP

Related Classes of org.kuali.rice.kew.engine.node.SplitResult

Copyright © 2018 www.massapicom. 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.