Trading Networks 10.7 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc:resubmits
 
wm.tn.doc:resubmits
Extracts the document content from one or more BizDocEnvelopes in the database and resubmits the content of the documents to Trading Networks to be processed as a new documents.
To process each document Trading Networks invokes the same “receive” service that each original document used, if the ReceiveSvc field was set on the original BizDocEnvelope for the document. The “receive” service is the service the original document was sent to for processing, for example, a document gateway service.
For Trading Networks to know to which service it should resubmit a flat file document, the document gateway service must place its name in the TN_parms/$receiveSvc variable in the pipeline. Trading Networks then uses the value of the TN_parms/$receiveSvc variable to set the ReceiveSvc field of the BizDocEnvelope. For more information, see information about flat file document types in webMethods Trading Networks Administrator’s Guide and resubmitting flat file documents in webMethods Trading Networks User’s Guide.
Input Parameters
internalIds
String List The Trading Networks-generated internal ID of the documents to resubmit.
relationship
String (optional) A string that describes the type of relationship to create between each original document and its corresponding resubmitted document. The string can be 1-80 characters. The default relationship is “RESUBMIT”.
Output Parameters
bizdoc
Object List (optional) The new BizDocEnvelopes that Trading Networks created for each document content that was resubmitted. Each BizDocEnvelope in the Object List is an instance of com.wm.app.tn.doc.BizDocEnvelope.
originalDocs
Object List (optional) The BizDocEnvelopes for the original documents that were resubmitted and that were identified in the internalIDs input variable. Each BizDocEnvelope in the Object List is an instance of com.wm.app.tn.doc.BizDocEnvelope.
$tnReprocess
String List (optional) Internal variable that Trading Networks uses to distinguish a resubmission from an original submission.
TN_parms
Document List (optional) An array of IData objects (IS documents) holding internal data that Trading Networks uses.
Usage Notes
If the tn.resubmit.return.bizdocs system property is true, this service returns as output both the bizdoc and originalDoc. The default for the tn.resubmit.return.bizdocs property is false, which indicates that the wm.tn.doc:updateAttributes service should return neither the bizdoc nor originalDoc.