View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kew.engine.node;
17  
18  import java.util.HashMap;
19  import java.util.Map;
20  
21  /**
22   * The current context of a search process within a node graph.
23   *
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   */
26  public class NodeGraphContext {
27  
28  	private RouteNodeInstance previousNodeInstance;
29      private RouteNodeInstance currentNodeInstance;
30      private RouteNodeInstance resultNodeInstance;
31      private Map<String, RouteNodeInstance> visited = new HashMap<String, RouteNodeInstance>();
32      private Map<String, Integer> splitState = new HashMap<String, Integer>();
33      
34      public RouteNodeInstance getCurrentNodeInstance() {
35          return currentNodeInstance;
36      }
37      public void setCurrentNodeInstance(RouteNodeInstance currentNodeInstance) {
38          this.currentNodeInstance = currentNodeInstance;
39      }
40      public RouteNodeInstance getPreviousNodeInstance() {
41          return previousNodeInstance;
42      }
43      public void setPreviousNodeInstance(RouteNodeInstance previousNodeInstance) {
44          this.previousNodeInstance = previousNodeInstance;
45      }
46      public RouteNodeInstance getResultNodeInstance() {
47          return resultNodeInstance;
48      }
49      public void setResultNodeInstance(RouteNodeInstance resultNodeInstance) {
50          this.resultNodeInstance = resultNodeInstance;
51      }
52      public Map<String, Integer> getSplitState() {
53          return splitState;
54      }
55      public void setSplitState(Map<String, Integer> splitState) {
56          this.splitState = splitState;
57      }
58      public Map<String, RouteNodeInstance> getVisited() {
59          return visited;
60      }
61      public void setVisited(Map<String, RouteNodeInstance> visited) {
62          this.visited = visited;
63      }
64  
65  }