Thursday, March 20, 2014

Overwrite JCA properties in BPEL 1.1 and BPEL 2.0

JCA file/FTP adapter properties can be overridden by run time values.

This can be done by invoking the adapter with some properties.

In case of a BPEL 1.1 the call will be something like this

<invoke name="Invoke1"
inputVariable="Invoke1_SynchRead_InputVariable"
outputVariable="Invoke1_SynchRead_OutputVariable"
partnerLink="SyncRead" portType="ns4:SynchRead_ptt"
operation="SynchRead" bpelx:invokeAsDetail="no">
<bpelx:inputProperty name="jca.ftp.Directory" variable="Directory"/>
<bpelx:inputProperty name="jca.jndi" variable="JNDI"/>
</invoke>


Here jca.ftp.properties and jca.jndi are the properties already defined in the Oracle documentation

http://docs.oracle.com/cd/E14571_01/integration.1111/e10231/adptr_propertys.htm

there is a small change when you are making the same call in BPEL 2.0 i.e the call in BPEL 2.0 will be

<invoke name="Invoke1"
inputVariable="Invoke1_SynchRead_InputVariable"
outputVariable="Invoke1_SynchRead_OutputVariable"
partnerLink="SyncRead" portType="ns4:SynchRead_ptt"
operation="SynchRead" bpelx:invokeAsDetail="no">
<bpelx:toProperty name="jca.ftp.Directory" variable="Directory"/>
<bpelx:toProperty name="jca.jndi" variable="JNDI"/>
</invoke>


i.e the bpelx:inputProperty is converted to bpelx:toProperty

No comments: