锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产三级视频在线看,亚洲精品一区二区三区四区高清,久久久久久日产精品http://www.aygfsteel.com/junky/category/11523.htmlzh-cnTue, 27 Feb 2007 22:09:02 GMTTue, 27 Feb 2007 22:09:02 GMT60Work Flow 瀛︿範絎旇(浜?http://www.aygfsteel.com/junky/archive/2006/05/25/48177.htmljunkyjunkyThu, 25 May 2006 12:25:00 GMThttp://www.aygfsteel.com/junky/archive/2006/05/25/48177.htmlhttp://www.aygfsteel.com/junky/comments/48177.htmlhttp://www.aygfsteel.com/junky/archive/2006/05/25/48177.html#Feedback1http://www.aygfsteel.com/junky/comments/commentRss/48177.htmlhttp://www.aygfsteel.com/junky/services/trackbacks/48177.html闃呰鍏ㄦ枃

junky 2006-05-25 20:25 鍙戣〃璇勮
]]>
Work Flow 瀛︿範絎旇http://www.aygfsteel.com/junky/archive/2006/05/25/48176.htmljunkyjunkyThu, 25 May 2006 12:23:00 GMThttp://www.aygfsteel.com/junky/archive/2006/05/25/48176.htmlhttp://www.aygfsteel.com/junky/comments/48176.htmlhttp://www.aygfsteel.com/junky/archive/2006/05/25/48176.html#Feedback0http://www.aygfsteel.com/junky/comments/commentRss/48176.htmlhttp://www.aygfsteel.com/junky/services/trackbacks/48176.html 聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 聽聽聽聽 Work Flow 瀛︿範絎旇

1.聽聽聽 WfRequester

WfRequester is the interface that has a direct concern with the execution and results

of a workflow process - it represents the request for some work to be done. Its

performer, a WfProcess, is expected to handle its request and communicate significant

status changes; in particular to inform the requester when it has completed performing

the requested work. A single requester can have many processes associated with it.

聽聽

璇存槑錛?/span> WfRequester 鎺ュ彛鏄竴涓拰宸ヤ綔嫻佹祦紼嬬殑鎵ц鍙婄粨鏋滄湁鐩存帴鍏崇郴鐨勬帴鍙o紱瀹冧唬琛ㄤ簡瀵逛竴浜涘伐浣滄墽琛岀殑璇鋒眰錛涘畠鐨勪竴涓富瑕佸姛鑳芥槸鎶?/span> WfProcess 閾炬帴鍒頒竴涓叾瀹冨簲鐢紱鍏朵腑 WfRequester 浼氬叧鑱斿埌澶氫釜 WfProcee, 褰?/span> WfProcess 鍙戠敓 complete 銆?/span> terminate 銆?/span> abort 浜嬩歡鏃朵細閫氳繃鍥炶皟 receiveEvent() 鏂規硶鏉ラ氱煡 WfRequest 錛涘湪 receiveEvent(event) 鏂規硶涓紝鍙傛暟 event 鏄竴涓?/span> WfEventAudit 瀵硅薄錛屽叾涓?/span> WfEventAudit 涓湁涓涓柟娉?/span> source(), 閫氳繃榪欎釜鏂規硶鎴戜滑鍙互寰楃煡鏄摢涓?/span> WfExecutionObject 瀵硅薄瑙﹀彂浜嗕簨浠舵簮錛涘緱鍒頒簡 WfExcutionObject 鍗?/span> WfProcess 鎴戜滑涔熻繘鑰?/span> 寰楀埌浜嗗拰榪欎釜 WfProcess 鐩稿叧鑱旂殑鍏跺畠搴旂敤錛?/span>

涓昏姝ラ :

(1)聽聽聽 鑷畾涔変竴涓嚜宸辯殑綾繪垨鎺ュ彛錛屽 GenericRequester, 榪欎釜 GenericRequester 綾諱唬琛ㄧ敤鎴瘋嚜瀹氫箟鐨勪竴涓姹傝咃紱

(2)聽聽聽 鍦ㄥ惎鍔?/span> WfProcess 鏄紝鎶婅繖涓姹傝呭拰 WfProcess 榪涜緇戝畾娉ㄥ唽鍒?/span> WfRequester 涓紱

鍦?/span> WfReuester 鐨?/span> registerProcess() 灝辨槸鍋氳繖涓姛鑳斤紝涓昏浠g爜濡備笅

protected Map performers = null;

public void registerProcess(WfProcess process, Map context, GenericRequester requester){

聽聽聽聽聽聽聽聽聽聽聽聽聽聽 performers.put(process, requester);

}

(3)聽聽聽 褰撳伐浣滄祦紼嬪湪鎵ц鐨勮繃紼嬩腑鍙戠敓 complete 銆?/span> terminate 銆?/span> abort 浜嬩歡鏃朵細鍥炶皟 WfRequest 涓殑 receiveEvent() 鏂規硶錛?/span>

聽聽聽 requester.receiveEvent(audit);

(4) 聽聽 鍦?/span> receiveEvent() 涓鍏堟牴鎹?/span> WfEventAudit 鐨?/span> source() 鑾峰彇瑙﹀彂浜嬩歡鐨?/span> WfProcess 瀵硅薄錛?/span>

receiveEvent(WfEventAudit event){

聽聽聽聽聽聽聽 // 鑾峰彇浜嬩歡婧?/span> process 瀵硅薄

WfProcessprocess = (WfProcess) event.source();

// 鏍規嵁 prcocess 瀵硅薄鑾峰彇鍦ㄦ敞鍐屾椂緇戝畾鐨勮嚜瀹氫箟璇鋒眰鑰?/span> GenericRequester

GenericRequester req = (GenericRequester) performers.get(process);

// 鎵ц鑷畾涔夎姹傝呯殑鏂規硶

req.receiveResult(process.result());

}

鍏跺畠錛氬湪榪欓噷 GenericRequester 涔熷彲鏄竴涓?/span> WfProcess 鎴?/span> WfActivity 瀵硅薄錛岃繖鏍峰彲浠ュ湪 WfProcess 瀹屾垚鎿嶄綔鍚庡張鍚姩鍙︿竴涓瓙嫻佺▼鎴栨煇涓椿鍔紱 聽聽聽



junky 2006-05-25 20:23 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 宁河县| 桃江县| 富宁县| 睢宁县| 五峰| 深州市| 南康市| 滕州市| 三原县| 聂荣县| 重庆市| 大余县| 遵化市| 苍梧县| 通化市| 延长县| 抚远县| 内江市| 邯郸县| 横峰县| 武威市| 汤原县| 重庆市| 盘锦市| 安福县| 平江县| 始兴县| 黔西县| 毕节市| 游戏| 洮南市| 龙江县| 青冈县| 龙井市| 抚远县| 巍山| 永州市| 赣州市| 金湖县| 改则县| 昭觉县|