01: package org.enhydra.shark.api.common;
02:
03: import java.io.Serializable;
04:
05: /**
06: * This class represents the deadline information.
07: *
08: * @author Sasa Bojanic
09: */
10: public final class DeadlineInfo implements Serializable {
11: /** Process Id */
12: public String procId = null;
13:
14: /** Activity Id */
15: public String actId = null;
16:
17: /** Is executed */
18: public boolean isExecuted = false;
19:
20: /** Time limit */
21: public long timeLimit = -1;
22:
23: /** Exception name */
24: public String exceptionName = null;
25:
26: /** Synchronous deadline. */
27: public boolean isSynchronous = false;
28:
29: /**
30: * Creates instance with all object fields initialized to null, and primitive type fields to -1
31: * and false.
32: */
33: public DeadlineInfo() {
34: }
35:
36: /**
37: * Creates an instance with fields set to the given parameter values.
38: */
39: public DeadlineInfo(String _procId, String _actId,
40: boolean _isExecuted, long _timeLimit,
41: String _exceptionName, boolean _isSynchronous) {
42:
43: procId = _procId;
44: actId = _actId;
45: isExecuted = _isExecuted;
46: timeLimit = _timeLimit;
47: exceptionName = _exceptionName;
48: isSynchronous = _isSynchronous;
49: }
50:
51: public String toString() {
52: return "[procId=" + procId + ", actId=" + procId
53: + ", isExecuted=" + isExecuted + ", excName="
54: + exceptionName + ",timeLimit="
55: + new java.util.Date(timeLimit) + ",isSynchronous="
56: + isSynchronous + "]";
57: }
58:
59: }
|