View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-7-9 下午03:26:52
4    */
5   package gboat2.serviceflow.model;
6   
7   import java.util.ArrayList;
8   import java.util.Iterator;
9   import java.util.List;
10  import java.util.Map;
11  import java.util.Map.Entry;
12  
13  /**
14   * 
15   * 
16   * @author lysming
17   * @since jdk1.6
18   * @date 2013-7-14
19   *
20   */
21  public class ProcessInfo {
22  
23  	//包名
24  	private String processPackage;
25  
26  	//流程ID
27  	private String processId;
28  
29  	//流程名称
30  	private String processName;
31  
32  	//流程版本
33  	private String processVersion;
34  
35  	//节点列表
36  	private Map<String, NodeInfo> nodeCode_node_map;
37  
38  	//描述
39  	private Map<String, Object> metaData;
40  
41  	private String version;
42  
43  	public Map<String, NodeInfo> getNodeCode_node_map() {
44  		return nodeCode_node_map;
45  	}
46  
47  	public void setNodeCode_node_map(Map<String, NodeInfo> nodeCodeNodeMap) {
48  		nodeCode_node_map = nodeCodeNodeMap;
49  	}
50  
51  	public String getProcessPackage() {
52  		return processPackage;
53  	}
54  
55  	public void setProcessPackage(String processPackage) {
56  		this.processPackage = processPackage;
57  	}
58  
59  	public String getProcessId() {
60  		return processId;
61  	}
62  
63  	public void setProcessId(String processId) {
64  		this.processId = processId;
65  	}
66  
67  	public String getProcessName() {
68  		return processName;
69  	}
70  
71  	public void setProcessName(String processName) {
72  		this.processName = processName;
73  	}
74  
75  	public String getProcessVersion() {
76  		return processVersion;
77  	}
78  
79  	public void setProcessVersion(String processVersion) {
80  		this.processVersion = processVersion;
81  	}
82  
83  	public Map<String, Object> getMetaData() {
84  		return metaData;
85  	}
86  
87  	public void setMetaData(Map<String, Object> metaData) {
88  		this.metaData = metaData;
89  	}
90  
91  	public String getVersion() {
92  		return version;
93  	}
94  
95  	public void setVersion(String version) {
96  		this.version = version;
97  	}
98  
99  	public List<NodeInfo> getNodeInfoList() {
100 		if (nodeCode_node_map == null) {
101 
102 			return null;
103 		}
104 		List<NodeInfo> list = new ArrayList<NodeInfo>();
105 		Iterator<Entry<String, NodeInfo>> it = nodeCode_node_map.entrySet().iterator();
106 		while (it.hasNext()) {
107 			Entry<String, NodeInfo> entry = it.next();
108 			NodeInfo nodeInfo = entry.getValue();
109 			list.add(nodeInfo);
110 		}
111 		return list;
112 	}
113 
114 }