001: package org.enhydra.shark.corba;
002:
003: import javax.transaction.UserTransaction;
004:
005: import org.omg.TimeBase.*;
006: import org.omg.WfBase.*;
007: import org.omg.WorkflowModel.*;
008:
009: /**
010: * WfEventAuditImpl - Workflow Event Audit implementation
011: */
012: public class WfAssignmentEventAuditCORBA extends
013: _WfAssignmentEventAuditImplBase {
014:
015: private org.enhydra.shark.api.client.wfmodel.WfAssignmentEventAudit ea;
016:
017: private Collective __collective;
018:
019: protected WfAssignmentEventAuditCORBA(
020: Collective toJoin,
021: org.enhydra.shark.api.client.wfmodel.WfAssignmentEventAudit ea) {
022: __collective = toJoin;
023: toJoin.__recruit(this );
024: this .ea = ea;
025: }
026:
027: public WfExecutionObject source() throws BaseException,
028: SourceNotAvailable {
029: UserTransaction ut = null;
030: boolean e = SharkCORBAServer.doesTransactionExist();
031: try {
032: ut = SharkCORBAUtilities.beginTransaction(e);
033: WfExecutionObject ret = new WfActivityCORBA(
034: __collective,
035: (org.enhydra.shark.api.client.wfmodel.WfActivity) ea
036: .source());
037: SharkCORBAUtilities.commitTransaction(ut, e);
038: return ret;
039: } catch (org.enhydra.shark.api.client.wfmodel.SourceNotAvailable sna) {
040: SharkCORBAUtilities.rollbackTransaction(ut, e);
041: throw new SourceNotAvailable();
042: } catch (Exception ex) {
043: SharkCORBAUtilities.rollbackTransaction(ut, e);
044: throw new BaseException();
045: }
046: }
047:
048: public UtcT time_stamp() throws BaseException {
049: UserTransaction ut = null;
050: boolean e = SharkCORBAServer.doesTransactionExist();
051: try {
052: ut = SharkCORBAUtilities.beginTransaction(e);
053: org.enhydra.shark.api.client.timebase.UtcT t = ea
054: .time_stamp();
055: UtcT ret = new UtcT(t.time, t.inacclo, t.inacchi, t.tdf);
056: SharkCORBAUtilities.commitTransaction(ut, e);
057: return ret;
058: } catch (Exception ex) {
059: SharkCORBAUtilities.rollbackTransaction(ut, e);
060: throw new BaseException();
061: }
062: }
063:
064: public String event_type() throws BaseException {
065: UserTransaction ut = null;
066: boolean e = SharkCORBAServer.doesTransactionExist();
067: try {
068: ut = SharkCORBAUtilities.beginTransaction(e);
069: String ret = ea.event_type();
070: SharkCORBAUtilities.commitTransaction(ut, e);
071: return ret;
072: } catch (Exception ex) {
073: SharkCORBAUtilities.rollbackTransaction(ut, e);
074: throw new BaseException();
075: }
076: }
077:
078: public String activity_key() throws BaseException {
079: UserTransaction ut = null;
080: boolean e = SharkCORBAServer.doesTransactionExist();
081: try {
082: ut = SharkCORBAUtilities.beginTransaction(e);
083: String ret = ea.activity_key();
084: SharkCORBAUtilities.commitTransaction(ut, e);
085: return ret;
086: } catch (Exception ex) {
087: SharkCORBAUtilities.rollbackTransaction(ut, e);
088: throw new BaseException();
089: }
090: }
091:
092: public String activity_name() throws BaseException {
093: UserTransaction ut = null;
094: boolean e = SharkCORBAServer.doesTransactionExist();
095: try {
096: ut = SharkCORBAUtilities.beginTransaction(e);
097: String ret = ea.activity_name();
098: SharkCORBAUtilities.commitTransaction(ut, e);
099: return ret;
100: } catch (Exception ex) {
101: SharkCORBAUtilities.rollbackTransaction(ut, e);
102: throw new BaseException();
103: }
104: }
105:
106: public String process_key() throws BaseException {
107: UserTransaction ut = null;
108: boolean e = SharkCORBAServer.doesTransactionExist();
109: try {
110: ut = SharkCORBAUtilities.beginTransaction(e);
111: String ret = ea.process_key();
112: SharkCORBAUtilities.commitTransaction(ut, e);
113: return ret;
114: } catch (Exception ex) {
115: SharkCORBAUtilities.rollbackTransaction(ut, e);
116: throw new BaseException();
117: }
118: }
119:
120: public String process_name() throws BaseException {
121: UserTransaction ut = null;
122: boolean e = SharkCORBAServer.doesTransactionExist();
123: try {
124: ut = SharkCORBAUtilities.beginTransaction(e);
125: String ret = ea.process_name();
126: SharkCORBAUtilities.commitTransaction(ut, e);
127: return ret;
128: } catch (Exception ex) {
129: SharkCORBAUtilities.rollbackTransaction(ut, e);
130: throw new BaseException();
131: }
132: }
133:
134: public String process_mgr_name() throws BaseException {
135: UserTransaction ut = null;
136: boolean e = SharkCORBAServer.doesTransactionExist();
137: try {
138: ut = SharkCORBAUtilities.beginTransaction(e);
139: String ret = ea.process_mgr_name();
140: SharkCORBAUtilities.commitTransaction(ut, e);
141: return ret;
142: } catch (Exception ex) {
143: SharkCORBAUtilities.rollbackTransaction(ut, e);
144: throw new BaseException();
145: }
146: }
147:
148: public String process_mgr_version() throws BaseException {
149: UserTransaction ut = null;
150: boolean e = SharkCORBAServer.doesTransactionExist();
151: try {
152: ut = SharkCORBAUtilities.beginTransaction(e);
153: String ret = ea.process_mgr_version();
154: SharkCORBAUtilities.commitTransaction(ut, e);
155: return ret;
156: } catch (Exception ex) {
157: SharkCORBAUtilities.rollbackTransaction(ut, e);
158: throw new BaseException();
159: }
160: }
161:
162: public String old_resource_key() throws BaseException {
163: UserTransaction ut = null;
164: boolean e = SharkCORBAServer.doesTransactionExist();
165: try {
166: ut = SharkCORBAUtilities.beginTransaction(e);
167: String ret = ea.old_resource_key();
168: SharkCORBAUtilities.commitTransaction(ut, e);
169: return ret;
170: } catch (Exception ex) {
171: SharkCORBAUtilities.rollbackTransaction(ut, e);
172: throw new BaseException();
173: }
174: }
175:
176: public String old_resource_name() throws BaseException {
177: UserTransaction ut = null;
178: boolean e = SharkCORBAServer.doesTransactionExist();
179: try {
180: ut = SharkCORBAUtilities.beginTransaction(e);
181: String ret = ea.old_resource_name();
182: SharkCORBAUtilities.commitTransaction(ut, e);
183: return ret;
184: } catch (Exception ex) {
185: SharkCORBAUtilities.rollbackTransaction(ut, e);
186: throw new BaseException();
187: }
188: }
189:
190: public String new_resource_key() throws BaseException {
191: UserTransaction ut = null;
192: boolean e = SharkCORBAServer.doesTransactionExist();
193: try {
194: ut = SharkCORBAUtilities.beginTransaction(e);
195: String ret = ea.new_resource_key();
196: SharkCORBAUtilities.commitTransaction(ut, e);
197: return ret;
198: } catch (Exception ex) {
199: SharkCORBAUtilities.rollbackTransaction(ut, e);
200: throw new BaseException();
201: }
202: }
203:
204: public String new_resource_name() throws BaseException {
205: UserTransaction ut = null;
206: boolean e = SharkCORBAServer.doesTransactionExist();
207: try {
208: ut = SharkCORBAUtilities.beginTransaction(e);
209: String ret = ea.new_resource_name();
210: SharkCORBAUtilities.commitTransaction(ut, e);
211: return ret;
212: } catch (Exception ex) {
213: SharkCORBAUtilities.rollbackTransaction(ut, e);
214: throw new BaseException();
215: }
216: }
217:
218: public boolean is_accepted() throws BaseException {
219: UserTransaction ut = null;
220: boolean e = SharkCORBAServer.doesTransactionExist();
221: try {
222: ut = SharkCORBAUtilities.beginTransaction(e);
223: boolean ret = ea.is_accepted();
224: SharkCORBAUtilities.commitTransaction(ut, e);
225: return ret;
226: } catch (Exception ex) {
227: SharkCORBAUtilities.rollbackTransaction(ut, e);
228: throw new BaseException();
229: }
230: }
231:
232: }
|