Instead of looping and getting filenames after file listing...
i am thinking to use flow N.instead of while loop after filelisting..
i am able to find, different file names in the assign activity, before the invoke activity which is assigned to Sync get adapter.
but the sync get adapter is getting same file names in all the parallel flows.
i can see it can successfully transfer one file, but fails with rest of those.
is there any possibility, to pass file names dynamically to the sync get adapter..
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
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..
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