本文整理汇总了Java中org.kuali.rice.kew.framework.postprocessor.ProcessDocReport.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java ProcessDocReport.getMessage方法的具体用法?Java ProcessDocReport.getMessage怎么用?Java ProcessDocReport.getMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kew.framework.postprocessor.ProcessDocReport
的用法示例。
在下文中一共展示了ProcessDocReport.getMessage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: invokePostProcessor
import org.kuali.rice.kew.framework.postprocessor.ProcessDocReport; //导入方法依赖的package包/类
/**
* Wraps PostProcessor invocation with error handling
* @param message log message
* @param invocation the callable that invokes the postprocessor
*/
protected void invokePostProcessor(String message, Callable<ProcessDocReport> invocation) {
if (!isRunPostProcessorLogic()) {
return;
}
LOG.debug(message);
try {
ProcessDocReport report = invocation.call();
if (!report.isSuccess()) {
LOG.warn(report.getMessage(), report.getProcessException());
throw new InvalidActionTakenException(report.getMessage());
}
} catch (Exception ex) {
processPostProcessorException(ex);
}
}
示例2: notifyNodeChange
import org.kuali.rice.kew.framework.postprocessor.ProcessDocReport; //导入方法依赖的package包/类
private void notifyNodeChange(Integer oldRouteLevel, Integer newRouteLevel, RouteNodeInstance oldNodeInstance, RouteNodeInstance newNodeInstance) throws InvalidActionTakenException {
try {
LOG.debug("Notifying post processor of route node change '"+oldNodeInstance.getName()+"'->'"+newNodeInstance.getName());
PostProcessor postProcessor = routeHeader.getDocumentType().getPostProcessor();
DocumentRouteHeaderValue routeHeaderValue = KEWServiceLocator.getRouteHeaderService().
saveRouteHeader(getRouteHeader());
setRouteHeader(routeHeaderValue);
DocumentRouteLevelChange routeNodeChange = new DocumentRouteLevelChange(routeHeader.getDocumentId(),
routeHeader.getAppDocId(),
oldRouteLevel, newRouteLevel,
oldNodeInstance.getName(), newNodeInstance.getName(),
oldNodeInstance.getRouteNodeInstanceId(), newNodeInstance.getRouteNodeInstanceId());
ProcessDocReport report = postProcessor.doRouteLevelChange(routeNodeChange);
setRouteHeader(KEWServiceLocator.getRouteHeaderService().getRouteHeader(getDocumentId()));
if (!report.isSuccess()) {
LOG.warn(report.getMessage(), report.getProcessException());
throw new InvalidActionTakenException(report.getMessage());
}
} catch (Exception ex) {
throw new WorkflowRuntimeException(ex.getMessage());
}
}
示例3: notifyStatusChange
import org.kuali.rice.kew.framework.postprocessor.ProcessDocReport; //导入方法依赖的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);
}
}