2012-06-11 45 views
0

我使用Wso2 BPS編寫異步工作流。要關聯請求和回調,我使用請求中的元素和回調中的屬性。相關器的定義是:無法使用屬性關聯消息使用wso2 bpel

  • 對於請求

    <的bpws:屬性名= 「correlatorProp」 類型= 「XS:字符串」/> <的bpws:propertyAlias propertyName的=「TNS:correlatorProp 「爲messageType =」 WS-DRT:PUSHIN」份= 「PARAMS」>

    <的bpws:查詢> <![CDATA [/ DRT型:資源/ RES:資源/ RES:的uuid]]> </PWS :query>
    </bpws:p ropertyAlias>

  • 回調:

    <的bpws:propertyAlias propertyName的= 「TNS:correlatorProp」 爲messageType = 「WS-dpalert:PUSHIN」 份= 「PARAMS」> <的bpws:查詢> < [ CDATA [@conversationId]]> < /的bpws:查詢>
    < /的bpws:propertyAlias>

然後我測試這個工作流程與以下請求/回調

  • 請求 < soapenv:信封的xmlns:soapenv = 「http://schemas.xmlsoap.org/soap/envelope/」> < soapenv:車身> <類型:推的xmlns:RES =「HTTP ://esa.int/sais-dpc/schema/resource「timestamp =」2001-12-17T09:30:47.0Z「sequenceNumber =」1「lastResponse =」true「> < type:resources> < res :資源> < res:uuid> 40000 </res:uuid>
    < /類型:資源> < /類型:推> </soapenv:身體> </soapenv:信封>

  • 回調:

< soapenv:信封的xmlns:soapenv =「HTTP://模式。 xmlsoap.org/soap/envelope/「> < soapenv:Body> < p:push xmlns:p =」http://esa.int/sais-dpc/service/specification/dp-alert-provider/type「 conversationId =「40000」sequenceNumber =「0」lastResponse =「true」> <號碼:alertsRef> 40000 </P:alertsRef> </P:推> </soapenv:車身> </soapenv:信封>

但發動機沒有這兩條消息相關。有沒有任何機構有經驗的問題?

謝謝,

Minh三。

回答

2

我能夠重現此問題並創建了一個jira來跟蹤此問題。我們將在未來版本的WSO2 BPS中解決此問題。

目前唯一的解決方法是使用Element值作爲相關屬性別名。

+0

我在中繼線中解決了這個問題。您可以嘗試從最新的快照版本 - http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS – warunapww

相關問題