In the Oracle SOA 11g, we can add a preferences in composite.xml and use it in our BPEL process.
Where to add?
In the composite.xml, locate the component element.
<component name="SubmitHUPOrderWireless" version="2.0"><implementation.bpel src="SubmitHUPOrderWireless.bpel"/>
<property name="bpel.preference.timeout">PT240S</property>
</component>
In the BEPL, we can use it by the follow code.
<onAlarm><for>ora:getPreference('timeout')</for>
<assign name="AssignTimeoutFault">
<copy bpelx:insertMissingToData="yes">
<from>'System Timeout'</from>
<to>$fault_var/Body/Exception/ExceptionType</to>
</copy>
</assign>
</onAlarm>
No comments:
Post a Comment