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: * not_started - Provides a state after creation where the object is active
09: * and ready to be initialized and started.
10: * <p>
11: * suspended - Provides a state to temporarily pause the execution of
12: * the object. When an execution object is suspended, no
13: * execution objects depending on this object may be
14: * started.
15: */
16: public class why_not_runningType implements Serializable {
17: private int __value;
18: private static int __size = 2;
19: private static why_not_runningType[] __array = new why_not_runningType[__size];
20:
21: public static final int _not_started = 0;
22: public static final why_not_runningType not_started = new why_not_runningType(
23: _not_started);
24: public static final int _suspended = 1;
25: public static final why_not_runningType suspended = new why_not_runningType(
26: _suspended);
27:
28: public int value() {
29: return __value;
30: }
31:
32: public static why_not_runningType from_int(int value) {
33: if (value >= 0 && value < __size)
34: return __array[value];
35: else
36: throw new org.omg.CORBA.BAD_PARAM();
37: }
38:
39: protected why_not_runningType(int value) {
40: __value = value;
41: __array[__value] = this ;
42: }
43: } // class why_not_runningType
|