TN processing status change

Hi All,

Can you please share the information about how the TN is changing the processing status of document? From where the TN processing status service is invoked? I dont see anywhere we defined in a service to change the processing status. But the status of a message is being changed automaically to DONE or DONE W/ ERROR, or etc.

Kind Regards,
Preethi

System will change “Process Status” automatically.
You may invoke a service to change “User Status” for reference by invoking this service:

wm.tn.doc:changeStatus

Hello Rocky,

Thanks for for your reply!

How this is an automatic? What I am assuming is that the system status is changing form the Build in service like "tn.resubmit, rn.submit,…’. Can someone correct me?

Hi Preethi,

There are two types of status in TN one is Processing Status and other one is User Status.

Processing Status will be handled internally based on the output of the transaction. (Success/Failure)
User Status can be set at design time in Processing Rules.

Regards,
Syed Faraz Ahmed

Yes and

Processing Status will be handled internally based on the output of the transaction. (Success/Failure/un-recognized/unknown) by TN out-of-box functionality (check TN documentation pdf for more info)
TN Transactions…User Status can be set at design time in Processing Rules and also by using (WmTN) wm.tn.doc:changeStatus service in the flow.

HTH,
RMG

Hello Experts,

May I know how can I change the user status before sending it to TN?

Hi,
You will use service like wm.tn.doc.xml:routeXml to send data to TN that will return bizdoc as one of the output. You have to use bizdoc spec (wm.tn.rec:BizDocEnvelope) to update user status.

Hello Senthil,

Thank you for your response.
The thing is, the reason why I want to update this user status because I would like to use that as a checking in my processing rule in TN to know which service to invoke. On my case, I am creating EDIFACT and want to send to TN with user status “completed” before sending to TN. I am using wm.tn.doc.xml:routeXml to send data to TN. Do i need to add the wm.tn.rec:BizDocEnvelope before this step? or I need to add it inside the routeXml service to “ServiceOut”?

Hi Mor,

As Senthil mentioned you will need to have bizdoc (of the transaction) in the pipeline that you wanted to changeStatus… You cannot do preprocessing unless the particular TN transaction persisted already and wanted to changeStatus for that record/s.

You can also use doc:view (providing required I/p params) service to retrieve the bizdoc (already persisted) in the pipeline and call the changeStatus (to Completed)

HTH,
RMG

There is a service in WmTN folder which can be used the change the user status on the fly. Review TN services guide.

Thank you RMG and Mahesh for your response. I used routeXml and changeStatus as a solution for this.

OK perfect :slight_smile:

Hello Sir RMG / Sir Mahesh,

Could you help me on my new query on the below link:
http://tech.forums.softwareag.com/techjforum/posts/list/0/70034.page#239509

Thank you!