I am submitting EDI 835 file to TN thru filepolling, So I have configured filepolling port with all the parameters. I am getting bizdoc, sender, receiver information via wrapper service which I configured in Action Tab in TN. Now I need EDI file information like Actual FileName, File Size, File Creation/Modified date from where it exactly this file pickedup.( I need to send this info to database for auditing purpose). I tried using pub.flow.getTransportInfo built-in service in the wrapper service(which configured in TN>Action Tab) to get the file statistics but I am not getting filepolling information from the pipeline, instead I am getting transport/HTTP info from the pipeline. Also I tried using pub.flow.getTransportInfo service other way like, invoked this service in the filepolling “Processing Service” before submitting edi file to TN. I called this service first and mapped getTransportInfo output transport/filepolling to tn.receive input TN_params. Nothing worked out!!!
You might use pub.tn:log service to log the filename information etc…this will show up in the Activity log window or you can create custom attribute (fileName) in TN and then programatically you can update the attribute value that you extract from the getTransportInfo service…
This way TN db has all the custom values used for any auditing purposes.
I have created new attribute called ‘fileName’ in Document Attributes, then specified this newly created attribute in processing rule, I selected Operator “Is not null”. Then Programatically updated this attribute from filepolling processing service as you suggested. Still I did not get any output in bizdoc attributes.
You may be stuck. Since the document is EDI, the document type configuration cannot be modified. And that’s what would extract the filename from the TN_parms variable. So I’m not sure what you’re trying to do is doable, though I may be overlooking something.
Are you trying to update EDI document attribute or custom doctype?? this solves the confusion…You cannot edit the EDI 835 document type
Also you don’t need to specify the document attribute in the processing rule…and the custom attribute will show up in the bizdoc once you created/populated…
I thot that I should add a new attribute in Document Attributes in TN and specify the document attribute in the processing rule. Then where should I add custom attributes(which menubar option I have to take). I selected DocumentTypes option then in the menu bar I selected Types option then clicked on Document Attributes. There I added Document Attribute called fileName and clicked OK. From my filepolling service I invoked setAttribute service to set fileName attribute and invoked updateAttribute to make effect the same.
I have attached the filepolling service package, please have a look over it and correct me where I am doing wrong. filePolling.zip (5.36 KB)
Now I can see the fileName attribute in the X12Envelope under attributes list, but still I am not getting this attribute in bizdoc? any suggestions how to get(read) X12Envelope attributes?
You will not see the fileName attb in the bizdoc pipeline,but you need this bizdoc object which input to setAttribute (name/value) input and then updateAttribute to work.
And then check in the Transaction Analysis section click on the the X12Envelope Document the Attribute display section will have attribute called “fileName” with its value that u updated above.
I did the same thing which you have mentioned above!!! I am able to see fileName in Transaction Analysis> X12Envelope>Attributes> ‘fileName’… but how do I get this value into pipeline inorder to use this value for further processing??
wm.tn.docattr:view is to view the properties of an attribute not the run time values I guess!
(This is seems like a simple task, dont know why I am not achieving this…!)
Yes, updateAttribute is worked and I am able to see the value in X12Envelope document in TN Console, I am not able to get the run time value into pipeline…