【正文】
意義的作用域名稱。在運(yùn)行時(shí),門戶使用 () API 提取當(dāng)前 BPEL“作用域”的名稱向最終用戶顯示該進(jìn)度的信息?! ∽饔糜?按層次結(jié)構(gòu)組織,一個(gè)復(fù)雜的業(yè)務(wù)流程可以分為幾個(gè)作用域。它們?yōu)榛顒?dòng)提供了行為上下文。通過在 BPEL 流程中使用有意義的作用域名稱,合作伙伴可以跟蹤“短期”和“長期”業(yè)務(wù)流程的狀態(tài)?! ±缫韵?getOrderSubstatus 方法的實(shí)現(xiàn)。該方法使 ESS 合作伙伴可以使用在 bpel 文件中執(zhí)行的作用域的名稱獲取 BPEL 流程實(shí)例的當(dāng)前狀態(tài)。* call the Oracle BPEL API to get current status of the workflow instance, corresponding to* the ordered supplied at the input* @param ordered The order identified* @param workflowId The workflow name (or Id) that is processing the order stage.* Normally, there are two stages of an order:send(process)rfq and send(process) order* @param domain The domain that the order workflow belongs to* @param password The password used to login to the workflow domain* @return the current status of the workflow instance particularly, it is the name of the current* active scope in the workflow BPEL file. * @throws RemoteException* @throws WorkflowException*/public String getOrderSubstatus(String ordered, String workflowId, String domain, String password)throws RemoteException, WorkflowException {if(()) (Enter getOrderSubstatus(ordered = + ordered + , workflowId = + workflowId + , domain = + domain + , password = + password)。String status = 。try {Locator locator = new Locator(domain, password)。IinstanceHandle instance = (ordered + _ + workflowId)。if( () ) status = Completed。else status = ()。return status。} catch ( e) {// TODO Autogenerated catch block(())。if(()) ()。 throw new WorkflowException(1016, ())。}} 結(jié)論 ESA 在構(gòu)建其整個(gè)協(xié)作網(wǎng)絡(luò)時(shí)始終沒忘其靈活性。接口關(guān)系的靈活定義簡化了網(wǎng)絡(luò)的采用并促進(jìn)了網(wǎng)絡(luò)的發(fā)展。BPEL 域的采用提供一個(gè)獨(dú)立的工作區(qū),從而為服務(wù)提供商提供了廣泛的靈活性。服務(wù)提供商可以修改他們的業(yè)務(wù)流程且不會(huì)影響網(wǎng)絡(luò)的穩(wěn)定性。BPEL 作用域已經(jīng)使 ESA 可以從細(xì)節(jié)上跟蹤即時(shí)流程的狀態(tài)。該網(wǎng)絡(luò)還可代表服務(wù)供應(yīng)提供商自動(dòng)生成 BPEL 流程流。所有這些因素漸漸地使該網(wǎng)絡(luò)更易于合作伙伴使用,并最大限度地降低了合作伙伴的前期投資?! 〉€有一些網(wǎng)絡(luò)設(shè)計(jì)領(lǐng)域本文并未涉及,如分布式事務(wù)管理、安全性以及貿(mào)易合作伙伴管理。隨著 B2B 網(wǎng)絡(luò)規(guī)模的擴(kuò)大,BPEL 可以在編排專用流程方面處于領(lǐng)先地位。例如,Oracle 集成 B2B 產(chǎn)品(可以與 Oracle BPEL 流程管理器交互操作)解決了公共流程編排、握手協(xié)議支持(RosettaNet、ebXML、EDI、HIPAA)、消息格式處理(MIME、SMIME、ASXMLDSig)和貿(mào)易合作伙伴管理(認(rèn)可、服務(wù)級(jí)協(xié)議、合作伙伴協(xié)議)。閱讀關(guān)于的全部文章12 / 12