1
尝试在BPEL中使用<switch>
元素时出现以下错误。BPEL <switch>元素不受支持。
BPEL element in namespace
"http://docs.oasis-open.org/wsbpel/2.0/process/executable"
is not supported by this implementation.
我需要使用别的东西吗?它是否从BPEL中删除?
尝试在BPEL中使用<switch>
元素时出现以下错误。BPEL <switch>元素不受支持。
BPEL element in namespace
"http://docs.oasis-open.org/wsbpel/2.0/process/executable"
is not supported by this implementation.
我需要使用别的东西吗?它是否从BPEL中删除?
<switch>
是BPEL 1.1的一部分,已在BPEL 2.0中删除。更换是<if>
活性,这可以如下使用:
<if xmlns:inventory="http://supply-chain.org/inventory" xmlns:FLT="http://example.com/faults">
<condition>
bpel:getVariableProperty('stockResult','inventory:level') > 100
</condition>
<flow>
<!-- perform fulfillment work -->
</flow>
<elseif>
<condition>
bpel:getVariableProperty('stockResult','inventory:level') >= 0
</condition>
<throw faultName="FLT:OutOfStock" variable="RestockEstimate" />
</elseif>
<else>
<throw faultName="FLT:ItemDiscontinued" />
</else>
</if>
(片断从BPEL 2.0规范借)