I have done the implementation for processing a inbound EDI document using Envelope process, getTemplate , getEDIString and then the converToValues. i have also done the validation with the 990 schema. The output EDIValues record also comes out properly.
I have a basic query in the way the processing should happen.
Actually my document is from a VAN source. The document is polled at regular interval. If a document is available the the processing starts.
Processing Type #1
So the sequnce must be getting the documnet using Scheduler service that invokes the VANFTP service. When a document arrives the scheduler will do the EDI conversion using the document. As all this process can be completed in the Developer as a service what should be the role of the TN.
Processing Type #2
Initially i thought that the scheduler service will pick up the doc from van and pass it to wm.tn.receive and proceess the document through TN . Then in the TN specify a processing action for each of the processing rule according to the specific case. Like proccess the EDI document and do mapping according to each document type.
But when i see the “content” object from the bizdoc object content type is same as the one submitted.
But it seems to me like it is a additionla step / layer for inound processing as we can also do a generic doument processing logic like the one specified for the “X12toEDI” service provided in the sample and then use 'invoke" to do a specific processing.
i regret if it is too much but i am new to to this area. I have gone through most of the documents. I could not get a clear picture how inbound documents should be generally processed. I have also gone through BI Process model for this type of processing.
As there are number of ways of implenetation i would like to know the optimal way of doing this.
Thanks for all your support.