當前位置: 首頁>>代碼示例>>Java>>正文


Java ClassDumper類代碼示例

本文整理匯總了Java中org.kuali.rice.kew.util.ClassDumper的典型用法代碼示例。如果您正苦於以下問題:Java ClassDumper類的具體用法?Java ClassDumper怎麽用?Java ClassDumper使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ClassDumper類屬於org.kuali.rice.kew.util包,在下文中一共展示了ClassDumper類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: generateRequests

import org.kuali.rice.kew.util.ClassDumper; //導入依賴的package包/類
protected List<ActionRequestValue> generateRequests(RouteContext routeContext) throws Exception {
      DocumentRouteHeaderValue document = routeContext.getDocument();
RouteNodeInstance nodeInstance = routeContext.getNodeInstance();
RouteNode node = nodeInstance.getRouteNode();
      if (LOG.isDebugEnabled()) {
          LOG.debug("RouteHeader info inside routing loop\n" + ClassDumper.dumpFields(document));
          LOG.debug("Looking for new actionRequests - routeLevel: " + node.getRouteNodeName());
      }
      boolean suppressPolicyErrors = isSuppressingPolicyErrors(routeContext);
      List<ActionRequestValue> requests = getNewActionRequests(routeContext);
      // determine if we have any approve requests for FinalApprover checks
      if (!suppressPolicyErrors) {
          verifyFinalApprovalRequest(document, requests, nodeInstance, routeContext);
      }
      return requests;
  }
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:17,代碼來源:RequestsNode.java

示例2: processCustom

import org.kuali.rice.kew.util.ClassDumper; //導入依賴的package包/類
/**
	 * @see org.kuali.rice.kew.engine.node.RequestsNode#processCustom(org.kuali.rice.kew.engine.RouteContext, org.kuali.rice.kew.engine.RouteHelper)
	 */
	@Override
	protected boolean processCustom(RouteContext routeContext, RouteHelper routeHelper) throws Exception {
		DocumentRouteHeaderValue document = routeContext.getDocument();
		RouteNodeInstance nodeInstance = routeContext.getNodeInstance();
		RouteNode node = nodeInstance.getRouteNode();
		// while no routable actions are activated and there are more
		// routeLevels to process
		if ( nodeInstance.isInitial() ) {
			if ( LOG.isDebugEnabled() ) {
				LOG.debug( "RouteHeader info inside routing loop\n"
						+ ClassDumper.dumpFields( routeContext.getDocument() ) );
				LOG.debug( "Looking for new actionRequests - routeLevel: "
						+ node.getRouteNodeName() );
			}
			boolean suppressPolicyErrors = isSuppressingPolicyErrors(routeContext);
			List<ActionRequestValue> requests = getNewActionRequests( routeContext );
// Debugging code to force an empty action request				
//				if ( document.getDocumentType().getName().equals( "SACC" ) ) {
//					LOG.fatal( "DEBUGGING CODE IN PLACE - SACC DOCUMENT ACTION REQUESTS CLEARED" );
//					requests.clear();
//				}
			// for mandatory routes, requests must be generated
			if ( requests.isEmpty() && !suppressPolicyErrors) {
				Responsibility resp = getFirstResponsibilityWithMandatoryRouteFlag( document, node );
				if ( resp != null ) {
					throw new RouteManagerException( "No requests generated for KIM Responsibility-based mandatory route.\n" +
							"Document Id:    " + document.getDocumentId() + "\n" +
							"DocumentType:   " + document.getDocumentType().getName() + "\n" +
							"Route Node:     " + node.getRouteNodeName() + "\n" + 
							"Responsibility: " + resp,
							routeContext );
				}
			}
			// determine if we have any approve requests for FinalApprover
			// checks
			if ( !suppressPolicyErrors ) {				
				verifyFinalApprovalRequest( document, requests, nodeInstance, routeContext );
			}
		}
		return true; // to indicate custom processing performed
	}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:45,代碼來源:RoleNode.java


注:本文中的org.kuali.rice.kew.util.ClassDumper類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。