本文整理汇总了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);
}
}
示例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);
}