• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java BlanketApproveAction类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.kuali.rice.kew.actions.BlanketApproveAction的典型用法代码示例。如果您正苦于以下问题:Java BlanketApproveAction类的具体用法?Java BlanketApproveAction怎么用?Java BlanketApproveAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

BlanketApproveAction类属于org.kuali.rice.kew.actions包,在下文中一共展示了BlanketApproveAction类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: blanketApproval

点赞 2

import org.kuali.rice.kew.actions.BlanketApproveAction; //导入依赖的package包/类
public DocumentRouteHeaderValue blanketApproval(String principalId, DocumentRouteHeaderValue routeHeader, String annotation, Integer routeLevel) throws InvalidActionTakenException {
	RouteNode node = (routeLevel == null ? null : CompatUtils.getNodeForLevel(routeHeader.getDocumentType(), routeLevel));
	if (node == null && routeLevel != null) {
		throw new InvalidActionTakenException("Could not locate node for route level " + routeLevel);
	}
	Set<String> nodeNames = new HashSet<String>();
	if (node != null) {
		nodeNames = Collections.singleton(node.getRouteNodeName());
	}
	Principal principal = loadPrincipal(principalId);
	ActionTakenEvent action = new BlanketApproveAction(routeHeader, principal, annotation, nodeNames);
	action.performAction();
	return finish(routeHeader);
}
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:15,
代码来源:WorkflowDocumentServiceImpl.java

示例2: orchestrateDocument

点赞 2

import org.kuali.rice.kew.actions.BlanketApproveAction; //导入依赖的package包/类
@Override
  public void orchestrateDocument(String documentId, String principalId, OrchestrationConfig orchestrationConfig,
          DocumentProcessingOptions documentProcessingOptions) {
      if (StringUtils.isBlank(principalId)) {
          throw new RiceIllegalArgumentException("principalId is null or blank");
      }

      if (StringUtils.isBlank(documentId)) {
          throw new RiceIllegalArgumentException("documentId is null");
      }

      if (orchestrationConfig == null) {
          throw new RiceIllegalArgumentException("orchestrationConfig is null");
      }
      if (documentProcessingOptions == null) {
          documentProcessingOptions = DocumentProcessingOptions.createDefault();
      }

      LOG.info("Performing document orchestration on documentId=" + documentId);
      KEWServiceLocator.getRouteHeaderService().lockRouteHeader(documentId);
      DocumentRouteHeaderValue document = KEWServiceLocator.getRouteHeaderService().getRouteHeader(documentId);
ActionTakenValue actionTaken = KEWServiceLocator.getActionTakenService().findByActionTakenId(orchestrationConfig.getActionTakenId());
Principal principal = KEWServiceLocator.getIdentityHelperService().getPrincipal(principalId);
BlanketApproveAction blanketApprove = new BlanketApproveAction(document, principal, "", orchestrationConfig.getNodeNames());
try {
	blanketApprove.performDeferredBlanketApproveWork(actionTaken, documentProcessingOptions);
} catch (Exception e) {
          if (e instanceof RuntimeException) {
              throw (RuntimeException)e;
          }
	throw new WorkflowRuntimeException(e);
}
if (documentProcessingOptions.isIndexSearchAttributes()) {
          DocumentAttributeIndexingQueue queue = KewApiServiceLocator.getDocumentAttributeIndexingQueue(document.getDocumentType().getApplicationId());
          queue.indexDocument(documentId);
}
      LOG.info("Document orchestration complete against documentId=" + documentId);
  }
 

开发者ID:kuali,
项目名称:kc-rice,
代码行数:39,
代码来源:DocumentOrchestrationQueueImpl.java

示例3: setUp

点赞 2

import org.kuali.rice.kew.actions.BlanketApproveAction; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
    super.setUp();
    Logger.getLogger(ChangeMonitor.class).setLevel(Level.DEBUG);
    Logger.getLogger(BlanketApproveAction.class).setLevel(Level.DEBUG);
    changeCurrentUser(UserNameFixture.khuntley);
}
 

开发者ID:VU-libtech,
项目名称:OLE-INST,
代码行数:8,
代码来源:TransferOfFundsDocumentTest.java

示例4: orchestrateDocument

点赞 2

import org.kuali.rice.kew.actions.BlanketApproveAction; //导入依赖的package包/类
@Override
  public void orchestrateDocument(String documentId, String principalId, OrchestrationConfig orchestrationConfig,
          DocumentProcessingOptions documentProcessingOptions) {
      if (StringUtils.isBlank(principalId)) {
          throw new RiceIllegalArgumentException("principalId is null or blank");
      }

      if (StringUtils.isBlank(documentId)) {
          throw new RiceIllegalArgumentException("documentId is null");
      }

      if (orchestrationConfig == null) {
          throw new RiceIllegalArgumentException("orchestrationConfig is null");
      }
      if (documentProcessingOptions == null) {
          documentProcessingOptions = DocumentProcessingOptions.createDefault();
      }

      LOG.info("Performing document orchestration on documentId=" + documentId);
      KEWServiceLocator.getRouteHeaderService().lockRouteHeader(documentId, true);
      DocumentRouteHeaderValue document = KEWServiceLocator.getRouteHeaderService().getRouteHeader(documentId);
ActionTakenValue actionTaken = KEWServiceLocator.getActionTakenService().findByActionTakenId(orchestrationConfig.getActionTakenId());
Principal principal = KEWServiceLocator.getIdentityHelperService().getPrincipal(principalId);
BlanketApproveAction blanketApprove = new BlanketApproveAction(document, principal, "", orchestrationConfig.getNodeNames());
try {
	blanketApprove.performDeferredBlanketApproveWork(actionTaken, documentProcessingOptions);
} catch (Exception e) {
          if (e instanceof RuntimeException) {
              throw (RuntimeException)e;
          }
	throw new WorkflowRuntimeException(e);
}
if (documentProcessingOptions.isIndexSearchAttributes()) {
          DocumentAttributeIndexingQueue queue = KewApiServiceLocator.getDocumentAttributeIndexingQueue(document.getDocumentType().getApplicationId());
          queue.indexDocument(documentId);
}
      LOG.info("Document orchestration complete against documentId=" + documentId);
  }
 

开发者ID:aapotts,
项目名称:kuali_rice,
代码行数:39,
代码来源:DocumentOrchestrationQueueImpl.java

示例5: setUp

点赞 2

import org.kuali.rice.kew.actions.BlanketApproveAction; //导入依赖的package包/类
@Override
protected void setUp() throws Exception {
    super.setUp();
    Logger.getLogger(ChangeMonitor.class).setLevel(Level.DEBUG);
    Logger.getLogger(BlanketApproveAction.class).setLevel(Level.DEBUG);
}
 

开发者ID:kuali,
项目名称:kfs,
代码行数:7,
代码来源:TransferOfFundsDocumentTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)