* @return
*/
public static void initNextProcessNode(ProcessNode processNode) {
if (processNode != null) {
TaskNode currentNode = OperatFactory.getServiceObject(TaskService.class, DataProviderModel.FILE).getTaskNode(processNode.getNodeName());
Node node = null;
// 依次设定下一节点
String nodeName = currentNode.getNextNode();
if (!StringUtil.isEmpty(nodeName) ) {
node = OperatFactory.getServiceObject(NodeService.class, DataProviderModel.FILE).getNode(nodeName);
ProcessNode subNode = new ProcessNode();
subNode.setAutoFlag(node.isAutoFlag());
subNode.setNodeName(node.getNodeName());
subNode.setNodeDesc(node.getNodeDesc());
subNode.setNodeStatus(node.getNodeStatus());
processNode.setNext(subNode);
}
nodeName = currentNode.getParentNode();
// 依次设定父节点
if (!StringUtil.isEmpty(nodeName)) {
node = OperatFactory.getServiceObject(NodeService.class, DataProviderModel.FILE).getNode(nodeName);
ProcessNode parentNode = new ProcessNode();
parentNode.setAutoFlag(node.isAutoFlag());
parentNode.setNodeName(node.getNodeName());
parentNode.setNodeDesc(node.getNodeDesc());
parentNode.setNodeStatus(node.getNodeStatus());
processNode.setParent(parentNode);
}
}
}