锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩伦理一区,亚洲综合精品四区,警花av一区二区三区http://www.aygfsteel.com/junky/category/11523.htmlzh-cnTue, 27 Feb 2007 22:09:02 GMTTue, 27 Feb 2007 22:09:02 GMT60Work Flow 瀛︿範(fàn)絎旇(浜?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 瀛︿範(fàn)絎旇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 瀛︿範(fàn)絎旇

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 浼?xì)鍏宠仈鍒板涓?/span> WfProcee, 褰?/span> WfProcess 鍙戠敓 complete 銆?/span> terminate 銆?/span> abort 浜嬩歡鏃朵細(xì)閫氳繃鍥炶皟 receiveEvent() 鏂規(guī)硶鏉ラ氱煡 WfRequest 錛涘湪 receiveEvent(event) 鏂規(guī)硶涓紝鍙傛暟 event 鏄竴涓?/span> WfEventAudit 瀵硅薄錛屽叾涓?/span> WfEventAudit 涓湁涓涓柟娉?/span> source(), 閫氳繃榪欎釜鏂規(guī)硶鎴戜滑鍙互寰楃煡鏄摢涓?/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 浜嬩歡鏃朵細(xì)鍥炶皟 WfRequest 涓殑 receiveEvent() 鏂規(guī)硶錛?/span>

聽聽聽 requester.receiveEvent(audit);

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

receiveEvent(WfEventAudit event){

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

WfProcessprocess = (WfProcess) event.source();

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

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

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

req.receiveResult(process.result());

}

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



junky 2006-05-25 20:23 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 岳西县| 加查县| 阿图什市| 密山市| 农安县| 合肥市| 溆浦县| 太白县| 天津市| 虹口区| 菏泽市| 娱乐| 长春市| 淳化县| 宁夏| 于田县| 凤阳县| 宝清县| 鄂尔多斯市| 喜德县| 玉溪市| 天峨县| 谷城县| 琼海市| 高碑店市| 西吉县| 曲阜市| 土默特左旗| 宕昌县| 天台县| 共和县| 遂昌县| 遵义市| 墨玉县| 闸北区| 灌南县| 漳州市| 襄城县| 绥德县| 富宁县| 连平县|