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


Java RouteNode.setNodeType方法代码示例

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


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

示例1: getSplitNode

import org.kuali.rice.kew.engine.node.RouteNode; //导入方法依赖的package包/类
/**
 * @param process
 * @return Route Node of the JoinNode that will be prototype for the split RouteNodeInstances generated by this component
 */
private static RouteNode getSplitNode(RouteNodeInstance process) {
    RouteNode dynamicNode = process.getRouteNode();
    RouteNode splitNode = new RouteNode();
    splitNode.setActivationType(dynamicNode.getActivationType());
    splitNode.setDocumentType(dynamicNode.getDocumentType());
    splitNode.setFinalApprovalInd(dynamicNode.getFinalApprovalInd());
    splitNode.setExceptionWorkgroupId(dynamicNode.getExceptionWorkgroupId());
    splitNode.setMandatoryRouteInd(dynamicNode.getMandatoryRouteInd());
    splitNode.setNodeType(SimpleSplitNode.class.getName());
    splitNode.setRouteMethodCode("FR");
    splitNode.setRouteMethodName(null);
    splitNode.setRouteNodeName(SPLIT_PROCESS_NAME);
    return splitNode;
    //SubRequests
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:HierarchyRoutingNode.java

示例2: getRequestNode

import org.kuali.rice.kew.engine.node.RouteNode; //导入方法依赖的package包/类
/**
 * @param process
 * @return RouteNode of RequestsNode that will be prototype for RouteNodeInstances having requets that are generated by this component
 */
private RouteNode getRequestNode(HierarchyProvider provider, RouteNodeInstance process) {
    RouteNode dynamicNode = process.getRouteNode();
    RouteNode requestsNode = new RouteNode();
    requestsNode.setActivationType(dynamicNode.getActivationType());
    requestsNode.setDocumentType(dynamicNode.getDocumentType());
    requestsNode.setFinalApprovalInd(dynamicNode.getFinalApprovalInd());
    requestsNode.setExceptionWorkgroupId(dynamicNode.getExceptionWorkgroupId());
    requestsNode.setMandatoryRouteInd(dynamicNode.getMandatoryRouteInd());
    requestsNode.setNodeType(RequestsNode.class.getName());
    requestsNode.setRouteMethodCode("FR");
    requestsNode.setRouteMethodName(process.getRouteNode().getRouteMethodName());
    requestsNode.setRouteNodeName(REQUEST_PROCESS_NAME);
    provider.configureRequestNode(process, requestsNode);
    return requestsNode;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:20,代码来源:HierarchyRoutingNode.java

示例3: installSimulationTerminationNode

import org.kuali.rice.kew.engine.node.RouteNode; //导入方法依赖的package包/类
private void installSimulationTerminationNode(RouteContext context, DocumentType documentType, RouteNodeInstance lastNodeInstance) {
	RouteNode terminationNode = new RouteNode();
	terminationNode.setDocumentType(documentType);
	terminationNode.setDocumentTypeId(documentType.getDocumentTypeId());
	terminationNode.setNodeType(NoOpNode.class.getName());
	terminationNode.setRouteNodeName("SIMULATION_TERMINATION_NODE");
	RouteNodeInstance terminationNodeInstance = helper.getNodeFactory().createRouteNodeInstance(lastNodeInstance.getDocumentId(), terminationNode);
	terminationNodeInstance.setBranch(lastNodeInstance.getBranch());
	lastNodeInstance.addNextNodeInstance(terminationNodeInstance);
	saveNode(context, lastNodeInstance);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:12,代码来源:SimulationEngine.java

示例4: getJoinNode

import org.kuali.rice.kew.engine.node.RouteNode; //导入方法依赖的package包/类
/**
 * @param process
 * @return Route Node of the JoinNode that will be prototype for the join RouteNodeInstances generated by this component
 */
private static RouteNode getJoinNode(RouteNodeInstance process) {
    RouteNode dynamicNode = process.getRouteNode();
    RouteNode joinNode = new RouteNode();
    joinNode.setActivationType(dynamicNode.getActivationType());
    joinNode.setDocumentType(dynamicNode.getDocumentType());
    joinNode.setFinalApprovalInd(dynamicNode.getFinalApprovalInd());
    joinNode.setExceptionWorkgroupId(dynamicNode.getExceptionWorkgroupId());
    joinNode.setMandatoryRouteInd(dynamicNode.getMandatoryRouteInd());
    joinNode.setNodeType(SimpleJoinNode.class.getName());
    joinNode.setRouteMethodCode("FR");
    joinNode.setRouteMethodName(null);
    joinNode.setRouteNodeName(JOIN_PROCESS_NAME);
    return joinNode;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:HierarchyRoutingNode.java

示例5: getNoChartOrgNode

import org.kuali.rice.kew.engine.node.RouteNode; //导入方法依赖的package包/类
/**
 * @param process
 * @return RouteNode of a no-op node which will be used if the user sends no Chart+Org XML to this routing component.
 */
private static RouteNode getNoChartOrgNode(RouteNodeInstance process) {
    RouteNode dynamicNode = process.getRouteNode();
    RouteNode noChartOrgNOde = new RouteNode();
    noChartOrgNOde.setActivationType(dynamicNode.getActivationType());
    noChartOrgNOde.setDocumentType(dynamicNode.getDocumentType());
    noChartOrgNOde.setFinalApprovalInd(dynamicNode.getFinalApprovalInd());
    noChartOrgNOde.setExceptionWorkgroupId(dynamicNode.getExceptionWorkgroupId());
    noChartOrgNOde.setMandatoryRouteInd(dynamicNode.getMandatoryRouteInd());
    noChartOrgNOde.setNodeType(NoOpNode.class.getName());
    noChartOrgNOde.setRouteMethodCode("FR");
    noChartOrgNOde.setRouteMethodName(null);
    noChartOrgNOde.setRouteNodeName(NO_STOP_NAME);
    return noChartOrgNOde;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:HierarchyRoutingNode.java

示例6: _importRouteNodeInstanceDTO

import org.kuali.rice.kew.engine.node.RouteNode; //导入方法依赖的package包/类
/**
* helper method for {@link #importRouteNodeInstanceDTO(org.kuali.rice.kew.api.document.node.RouteNodeInstance)} which does all
* the work.  The public method just wraps this one but hides the returned RouteNodeInstance,
* which is used for the recursive call to populate the nextNodeInstanceS inside our 
* RouteNodeInstanceS.
* 
* @param nodeInstanceDTO
* @return
*/
 	private RouteNodeInstance _importRouteNodeInstanceDTO(org.kuali.rice.kew.api.document.node.RouteNodeInstance nodeInstanceDTO) {
 		if (nodeInstanceDTO == null) {
 			return null;
 		}
 		RouteNodeInstance nodeInstance = new RouteNodeInstance();
 		nodeInstance.setActive(nodeInstanceDTO.isActive());

 		nodeInstance.setComplete(nodeInstanceDTO.isComplete());
 		nodeInstance.setDocumentId(nodeInstanceDTO.getDocumentId());
 		nodeInstance.setInitial(nodeInstanceDTO.isInitial());

 		Branch branch = getBranch(nodeInstanceDTO.getBranchId());
 		nodeInstance.setBranch(branch);

 		if (nodeInstanceDTO.getRouteNodeId() != null) {
 			RouteNode routeNode = routeNodeService.findRouteNodeById(nodeInstanceDTO.getRouteNodeId());

 			if (routeNode == null) {
 				routeNode = getRouteNode(nodeInstanceDTO.getRouteNodeId());
 				routeNode.setNodeType(nodeInstanceDTO.getName());
 			}

 			nodeInstance.setRouteNode(routeNode);

 			if (routeNode.getBranch() != null) {
     			branch.setName(routeNode.getBranch().getName());
     		} 
 		}

 		RouteNodeInstance process = getRouteNodeInstance(nodeInstanceDTO.getProcessId());
 		nodeInstance.setProcess(process);

 		nodeInstance.setRouteNodeInstanceId(nodeInstanceDTO.getId());

 		List<NodeState> nodeState = new ArrayList<NodeState>();
 		if (nodeInstanceDTO.getState() != null) {
	for (RouteNodeInstanceState stateDTO : nodeInstanceDTO.getState()) {
		NodeState state = getNodeState(stateDTO.getId());
		if (state != null) {
			state.setKey(stateDTO.getKey());
			state.setValue(stateDTO.getValue());
			state.setStateId(stateDTO.getId());
			state.setNodeInstance(nodeInstance);
			nodeState.add(state);
		}
	}
}
 		nodeInstance.setState(nodeState);

 		List<RouteNodeInstance> nextNodeInstances = new ArrayList<RouteNodeInstance>();


 		for (org.kuali.rice.kew.api.document.node.RouteNodeInstance nextNodeInstanceVO : nodeInstanceDTO.getNextNodeInstances()) {
 			// recurse to populate nextNodeInstances
 			nextNodeInstances.add(_importRouteNodeInstanceDTO(nextNodeInstanceVO));
 		}
         nodeInstance.setNextNodeInstances(nextNodeInstances);

 		routeNodeInstances.put(nodeInstance.getRouteNodeInstanceId(), nodeInstance);
 		return nodeInstance;
 	}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:71,代码来源:RouteLogAction.java


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