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: * An execution object is either in state ?open? (i.e., it is active)
08: * or in state ?closed? ( i.e., it has finished execution).
09: * <p>
10: * open - To reflect that the object is active and not finished.
11: * closed - Reflects that the object is finished and inactive.
12: */
13: public class workflow_stateType implements Serializable {
14: private int __value;
15: private static int __size = 2;
16: private static workflow_stateType[] __array = new workflow_stateType[__size];
17:
18: public static final int _open = 0;
19: public static final workflow_stateType open = new workflow_stateType(
20: _open);
21: public static final int _closed = 1;
22: public static final workflow_stateType closed = new workflow_stateType(
23: _closed);
24:
25: public int value() {
26: return __value;
27: }
28:
29: public static workflow_stateType from_int(int value) {
30: if (value >= 0 && value < __size)
31: return __array[value];
32: else
33: throw new org.omg.CORBA.BAD_PARAM();
34: }
35:
36: protected workflow_stateType(int value) {
37: __value = value;
38: __array[__value] = this ;
39: }
40: } // class workflow_stateType
|