For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
I am working on two integrations the first one writes a file on a server using the file adapter and also inserts in a database table the name of the file that you just created.
In the integration two using the file adapter as trigger performs the operation 'File polling' here is where the interesting thing begins because I just want to get the file created in the first integration
That's why in the second integration after placing the trigger I invoke the database where I save the file name and add a switch object to make the comparison where I establish that if the name obtained from the file adapter is equal to the field of the database table then write your content in another FTP directory (filename and content file).
I do not get any errors when making this comparison however the comparison is only done once but according to my understanding the comparison should be made for each file that the file adapter is reading.
I tried adding a for-each to perform the comparison for each read file however it marks me an error (The select node (InboundFileHeaderType) is not repeating.)
Comment
The switch should be placed within for-each loop. And the for-each loop should be repeating element in trigger file adapter response.
Be the first to rate this
|
Sign in to rate this
The problem is that I can not assign in the for-each the element in trigger.
Be the first to rate this
|
Sign in to rate this
It seems you are using read operation where as you need to make use of List operation to list out the all the files from the given directory path and then compare with an entry in the DB Table.
Be the first to rate this
|
Sign in to rate this