当前位置: 首页>>代码示例>>Java>>正文


Java DocumentService.routeDocument方法代码示例

本文整理汇总了Java中org.kuali.rice.krad.service.DocumentService.routeDocument方法的典型用法代码示例。如果您正苦于以下问题:Java DocumentService.routeDocument方法的具体用法?Java DocumentService.routeDocument怎么用?Java DocumentService.routeDocument使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.kuali.rice.krad.service.DocumentService的用法示例。


在下文中一共展示了DocumentService.routeDocument方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: editAccountTemporaryRestrictedRecordDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
public void editAccountTemporaryRestrictedRecordDocument(Account TRestrictedAccount) throws Exception {

        MaintenanceDocument accountMaintDoc = null;

        Account newAccountRecord = new Account();
        try {

            org.kuali.rice.krad.service.BusinessObjectService businessObjectService = SpringContext.getBean(org.kuali.rice.krad.service.BusinessObjectService.class);

            DocumentService documentService = new DocumentServiceImpl();
            accountMaintDoc = (MaintenanceDocument) documentService.getNewDocument(OLEConstants.DocumentTypeAttributes.ACCOUNTING_DOCUMENT_TYPE_NAME);
            accountMaintDoc.getDocumentHeader().setDocumentDescription(OleSelectNotificationConstant.OLE_ACCOUNT_TEMP_RESTRICTED_EDIT_DOCUMENT_DESCRIPTION);
            accountMaintDoc.getOldMaintainableObject().setBusinessObject(TRestrictedAccount);
            newAccountRecord = (Account) ObjectUtils.deepCopy(TRestrictedAccount);
            accountMaintDoc.getNewMaintainableObject().setBusinessObject(newAccountRecord);
            accountMaintDoc.getNewMaintainableObject().setMaintenanceAction(OLEConstants.MAINTENANCE_EDIT_ACTION);
            accountMaintDoc.getNewMaintainableObject().setDocumentNumber(accountMaintDoc.getDocumentNumber());
            accountMaintDoc.validateBusinessRules(new RouteDocumentEvent(accountMaintDoc));
            documentService.routeDocument(accountMaintDoc, null, null);

        } catch (WorkflowException ex) {
            throw new RuntimeException(ex);
        }
    }
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:25,代码来源:OleAccountTemporaryRestrictedStep.java

示例2: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
public static void routeDocument(Document document, DocumentService documentService) throws Exception {

        // Verify that the doc isn't yet routed.
        assertFalse("Document should not be already ENROUTE: " + document,DocumentStatus.ENROUTE.equals(document.getDocumentHeader().getWorkflowDocument().getStatus()));

        // Route the doc.
        try {
            documentService.routeDocument(document, "routing test doc", new Vector());
        } catch ( ValidationException e ) {
            // If the business rule evaluation fails then give us more info for debugging this test.
            fail(e.getMessage() + ", " + GlobalVariables.getMessageMap());
        }

        // Routing should be configured to go straight to final.
      //  assertTrue(FINAL_STATUS.equals(document.getDocumentHeader().getWorkflowDocument().getStatus()));
    }
 
开发者ID:kuali,项目名称:kfs,代码行数:17,代码来源:CloseServiceTest.java

示例3: testMultiSelectIntegration

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
/**
   * Test multiple value searches in the context of whole document search context
   */
  @Test
  public void testMultiSelectIntegration() throws Exception {
  	final DocumentService docService = KRADServiceLocatorWeb.getDocumentService();
//docSearchService = KEWServiceLocator.getDocumentSearchService();
DocumentType docType = KEWServiceLocator.getDocumentTypeService().findByName("AccountWithDDAttributes");
      String principalName = "quickstart";
      String principalId = KimApiServiceLocator.getPersonService().getPersonByPrincipalName(principalName).getPrincipalId();

      // Route some test documents.
docService.routeDocument(DOCUMENT_FIXTURE.NORMAL_DOCUMENT.getDocument(docService), "Routing NORMAL_DOCUMENT", null);

assertDDSearchableAttributeWildcardsWork(docType, principalId, "accountStateMultiselect",
		new String[][] {{"FirstState"}, {"SecondState"}, {"ThirdState"}, {"FourthState"}, {"FirstState", "SecondState"}, {"FirstState","ThirdState"}, {"FirstState", "FourthState"}, {"SecondState", "ThirdState"}, {"SecondState", "FourthState"}, {"ThirdState", "FourthState"}, {"FirstState", "SecondState", "ThirdState"}, {"FirstState", "ThirdState", "FourthState"}, {"SecondState", "ThirdState", "FourthState"}, {"FirstState","SecondState", "ThirdState", "FourthState"}},
		new int[] { 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1 });

assertDDSearchableAttributeWildcardsWork(docType, principalId, "accountOpenDate",
		new String[][] {{"10/15/2009"}, {"10/15/2009","10/17/2009"}, {"10/14/2009","10/16/2009"}},
		new int[] { 1, 1, 0 });

assertDDSearchableAttributeWildcardsWork(docType, principalId, "accountBalance",
		new String[][] {{"501.77"},{"501.77", "63.54"},{"501.78","501.74"}, {"502.00"}, {"0.00"} },
		new int[] { 1, 1, 0, 0, 0 });

assertDDSearchableAttributeWildcardsWork(docType, principalId, "accountNumber",
		new String[][] {{"1234567890"},{"1234567890", "9876543210"},{"9876543210","77774"}, {"88881"}, {"0"} },
		new int[] { 1, 1, 0, 0, 0 });
  }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:31,代码来源:DataDictionarySearchableAttributeTest.java

示例4: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
/**
 * Helper method to route the document.
 * 
 * @param document                 The assign contract manager document to be routed.
 * @param annotation               The annotation String.
 * @param documentService          The service to use to route the document.
 * @throws WorkflowException
 */
private void routeDocument(Document document, String annotation, DocumentService documentService) throws WorkflowException {
    try {
        documentService.routeDocument(document, annotation, null);
    }
    catch (ValidationException e) {
        // If the business rule evaluation fails then give us more info for debugging this test.
        fail(e.getMessage() + ", " + GlobalVariables.getMessageMap());
    }
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:18,代码来源:LineItemReceivingDocumentTest.java

示例5: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
private void routeDocument(Document document, String annotation, DocumentService documentService) throws WorkflowException {
    try {
        documentService.routeDocument(document, annotation, null);
    } catch (ValidationException e) {
        // If the business rule evaluation fails then give us more info for debugging this test.
        fail(e.getMessage() + ", " + GlobalVariables.getMessageMap());
    }
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:9,代码来源:PurapPerformanceDocumentTest.java

示例6: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
private void routeDocument(Document document, String annotation, DocumentService documentService) throws WorkflowException {
    try {
        documentService.routeDocument(document, annotation, null);
    }
    catch (ValidationException e) {
        e.printStackTrace();
        // If the business rule evaluation fails then give us more info for debugging this test.
        fail(e.getMessage() + ", " + GlobalVariables.getMessageMap());
    }
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:11,代码来源:BulkReceivingDocumentTest.java

示例7: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
public static void routeDocument(FinancialSystemTransactionalDocument document, String annotation, List<AdHocRouteRecipient> adHocRoutingRecipients, DocumentService documentService) throws WorkflowException {
    try {
        documentService.routeDocument(document, annotation, adHocRoutingRecipients);
    }
    catch (ValidationException e) {
        // If the business rule evaluation fails then give us more info for debugging this test.
        Assert.fail(e.getMessage() + ", " + dumpMessageMapErrors());
    }
}
 
开发者ID:VU-libtech,项目名称:OLE-INST,代码行数:10,代码来源:AccountingDocumentTestUtils.java

示例8: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
/**
 * Helper method to route the document.
 *
 * @param document                 The assign contract manager document to be routed.
 * @param annotation               The annotation String.
 * @param documentService          The service to use to route the document.
 * @throws WorkflowException
 */
private void routeDocument(Document document, String annotation, DocumentService documentService) throws WorkflowException {
    try {
        documentService.routeDocument(document, annotation, null);
    }
    catch (ValidationException e) {
        // If the business rule evaluation fails then give us more info for debugging this test.
        fail(e.getMessage() + ", " + GlobalVariables.getMessageMap());
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:18,代码来源:LineItemReceivingDocumentTest.java

示例9: routeDocument

import org.kuali.rice.krad.service.DocumentService; //导入方法依赖的package包/类
private void routeDocument(Document document, String annotation, DocumentService documentService) throws WorkflowException {
    try {
        documentService.routeDocument(document, annotation, null);
    }
    catch (ValidationException e) {
        // If the business rule evaluation fails then give us more info for debugging this test.
        fail(e.getMessage() + ", " + GlobalVariables.getMessageMap());
    }
}
 
开发者ID:kuali,项目名称:kfs,代码行数:10,代码来源:PurapPerformanceDocumentTest.java


注:本文中的org.kuali.rice.krad.service.DocumentService.routeDocument方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。