This content has been marked as final. Show 11 replies
Set following property in invoke activity that is synchronously reading file.
<bpelx:inputProperty name="*jca.FTP.FileName*" variable="variable that contains file name"/>
At run time whatever the value of this variable is,same will be used.
Hope this helps.
Edited by: Karan Mann on Apr 17, 2013 10:57 PM
Edited by: Karan Mann on Apr 18, 2013 4:45 AM
Just a small change from the previous post.
Use <bpelx:inputProperty name="jca.FTP.FileName" variable="variable that contains file name"/> as it is for FTP adapter
sorry yar, the options provided will not work
the parameter jca.FTP.FileName will help to provide a dynamic file name, but if I understand, you want to assign for each loop the correct file...?
If so, try to use the index variable - in the xpath you are using to assign the file name, add the location of the file (put the assign within the flowN).
For example: 'fileList/record[indexVar]/fileName'.
i am able to use the logic in whileloop.. but now i want to use same logic using FLOWN...i am able to assign file name in assign activity, with in the flown.
.but the file names are not picked up by sync get adapter.. its always pics the same file..is there any possible way to assign file name to the adapter.
i want to confirm that, i dont want to use whileloop..
If you have the file name then go to the property tab in the invoke activity. Assign the variable that holds the file name to a property called jca.FTP.FileName
this property doesn't hold the dynamic filenames..its constantly picking up the same file...
Can you see in the EM if in the assign activty you can see diferent file name?
yes, i can see different file in assign activity, but the filename is not getting reflected in invoke activity of syn get adapter..
Just to be sure - you did populate the property in the invoke activity, with the same variable as in the assign activity (the one that you can see it's data from EM)?
If so, can you please copy the part in the source (with the assign and invoke)?
I want to conform you again, i want to use FLOW N instead of while..
In whileloop the logic works fine, but when it comes to FLOW N , its failing
as requested, code is fallows
where i in [position()=$i] is index variable declared in FLOW N