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


Java DocumentRouteHeaderValue.getAppDocId方法代码示例

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


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

示例1: notifyStatusChange

import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue; //导入方法依赖的package包/类
protected void notifyStatusChange(DocumentRouteHeaderValue routeHeader, String newStatusCode, String oldStatusCode) throws InvalidActionTakenException {
    DocumentRouteStatusChange statusChangeEvent = new DocumentRouteStatusChange(routeHeader.getDocumentId(), routeHeader.getAppDocId(), oldStatusCode, newStatusCode);
    try {
        LOG.debug("Notifying post processor of status change "+oldStatusCode+"->"+newStatusCode);
        PostProcessor postProcessor = routeHeader.getDocumentType().getPostProcessor();
        ProcessDocReport report = postProcessor.doRouteStatusChange(statusChangeEvent);
        if (!report.isSuccess()) {
            LOG.warn(report.getMessage(), report.getProcessException());
            throw new InvalidActionTakenException(report.getMessage());
        }
    } catch (Exception ex) {
        LOG.warn(ex, ex);
        throw new WorkflowRuntimeException(ex);
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:ExceptionRoutingServiceImpl.java

示例2: getEDLControllerUsingDocumentId

import org.kuali.rice.kew.routeheader.DocumentRouteHeaderValue; //导入方法依赖的package包/类
public EDLController getEDLControllerUsingDocumentId(String documentId) {
	DocumentRouteHeaderValue document = KEWServiceLocator.getRouteHeaderService().getRouteHeader(documentId);
	String edlName = document.getAppDocId();//components working with workflow docs will need to know this, perhaps through a document utils.
	if (edlName == null) {
		edlName = document.getDocumentType().getName();
	}
	EDocLiteAssociation edlAssociation = this.dao.getEDocLiteAssociation(edlName);
       if (edlAssociation == null) {
           throw new WorkflowRuntimeException("No document association active for EDL: " + edlName);
       }
       initEDLGlobalConfig();
	return EDLControllerFactory.createEDLController(edlAssociation, edlGlobalConfig.get(), document);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:14,代码来源:EDocLiteServiceImpl.java


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