01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.engine;
18:
19: import java.util.ArrayList;
20: import java.util.List;
21:
22: /**
23: * Maintains context of the main processing loop of the workflow engine. Essentially
24: * contains a List of node instances which need to be processed. After a node instance
25: * is processed from the context, the engine will check the status of the complete
26: * flag to determine whether processing should continue or halt.
27: *
28: * @author ewestfal
29: */
30: public class ProcessContext {
31:
32: private boolean complete = true;
33: private final List nextNodeInstances;
34:
35: public ProcessContext() {
36: this (true, new ArrayList());
37: }
38:
39: public ProcessContext(boolean complete, List nextNodeInstances) {
40: this .complete = complete;
41: this .nextNodeInstances = nextNodeInstances;
42: }
43:
44: public List getNextNodeInstances() {
45: return nextNodeInstances;
46: }
47:
48: public boolean isComplete() {
49: return complete;
50: }
51:
52: public void setComplete(boolean complete) {
53: this.complete = complete;
54: }
55:
56: }
|