We have to give the inbound path of the files to the BPEL process in 2 ways
- Physical path
- Logical Name
as shown in above figure
Physical path is nothing but the full path of the file where the file is present "eg:-c:\somepath\path"
logical name means we have to give the some name of our interest, like eg:- filepath but we have to configure it the deployment file i.e. in bpel.xml file
if you open the wsdl file of the read/write operation you will see something like this
<operation name="Read">
<jca:operation
LogicalDirectory="filepath"
ActivationSpec="oracle.tip.adapter.file.inbound.FileActivationSpec"
IncludeFiles=".*"
PollingFrequency="1"
MinimumAge="0"
DeleteFile="true"
OpaqueSchema="true" >
</jca:operation>
if you open the bpel.xml file it may look something like this
<?xml version = '1.0' encoding = 'UTF-8'?>
<BPELSuitcase>
<BPELProcess id="xyz" src="xyz.bpel">
<partnerLinkBindings>
<partnerLinkBinding name="abx">
<property name="wsdlLocation">xyz.wsdl</property>
</partnerLinkBinding>
<partnerLinkBinding name="writeoperation">
<property name="wsdlLocation">xyzwrite.wsdl</property>
</partnerLinkBinding>
</partnerLinkBindings>
<activationAgents>
<activationAgentclassName=
"oracle.tip.adapter.fw.agent.jca.JCAActivationAgent"partnerLink="xyz">
<property name="filepath">C:/folder/inputfile</property>
<property name="portType">Read_ptt</property>
</activationAgent>
</activationAgents>
/BPELProcess>
</BPELSuitcase>
you will see the activation agents in the above code there we have to configure or we have to give the property name as shown there in the above code
note:- we have to give the path of the directory of the FTP server from which the BPEL process can be accessible, if we specify the path which is not accessible to the BPEL process then it will give an error
No comments:
Post a Comment