01: package org.enhydra.shark.api.client.wfmodel;
02:
03: import java.io.Serializable;
04:
05: /**
06: * Used to describe sets of states of various workflow objects:
07: * <p>
08: * completed - When an execution object has finished its task in the
09: * overall workflow process it enters the completed state; it
10: * is assumed that all execution objects associated with that
11: * execution object are completed when it enters this state.
12: * <p>
13: * terminated - Indicates that enactment of the execution object was
14: * stopped before normal completion. It is assumed that all
15: * execution objects depending on this execution object
16: * (i.e., WfActivities contained in a WfProcess or a
17: * WfProcess implementing a WfActivity) are either
18: * completed or are terminated when it enters this state.
19: * <p>
20: * aborted - Indicates that the enactment of the execution object has
21: * been aborted before normal completion. No assumptions
22: * on the state of execution objects depending on this
23: * execution object are made when it enters this state.
24: */
25: public class how_closedType implements Serializable {
26: private int __value;
27: private static int __size = 3;
28: private static how_closedType[] __array = new how_closedType[__size];
29:
30: public static final int _completed = 0;
31: public static final how_closedType completed = new how_closedType(
32: _completed);
33: public static final int _terminated = 1;
34: public static final how_closedType terminated = new how_closedType(
35: _terminated);
36: public static final int _aborted = 2;
37: public static final how_closedType aborted = new how_closedType(
38: _aborted);
39:
40: public int value() {
41: return __value;
42: }
43:
44: public static how_closedType from_int(int value) {
45: if (value >= 0 && value < __size)
46: return __array[value];
47: else
48: throw new org.omg.CORBA.BAD_PARAM();
49: }
50:
51: protected how_closedType(int value) {
52: __value = value;
53: __array[__value] = this ;
54: }
55: } // class how_closedType
|