Examples of SplitResult


Examples of com.google.gwt.regexp.shared.SplitResult

    else {
      int index = responseText.lastIndexOf(SEPARATOR);
      if (index > read) {
        List<Serializable> messages = new ArrayList<Serializable>();
       
        SplitResult data = separator.split(responseText.substring(read, index), index);
        int length = data.length();
        for (int i = 0; i < length; i++) {
          if (disconnecting) {
            return;
          }
         
          String message = data.get(i);
          if (!message.isEmpty()) {
            parse(message, messages);
          }
        }
        read = index + 1;
View Full Code Here

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

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

      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

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

          log.error("annexType for work with doc number '" + context.getDocument().getDocumentId() "' is null");
        }
      }
    }
   
    return new SplitResult(branchNames);
  }
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.