I am still a junior developer learning webMethods.
I believe I have a simple question.
I want to change the User Status of a document.
I invoke the service, wm.tn.doc.changeStatus and supply the bizdocid and the new user status. However the user status of the document does not change, the flow service wm.tn.doc.changeStatus just times out when I run it in Developer.
The user status of the document does not change?
I found the answer.
I was trying to modify the User Status of an existing document but I read in the webMethods TN Inbuilt Services manual you cannot use this service for an existing document.
This service can only be used for a new document.
To update an existing document you can use the wm.tn.doc:updateSystemAttributes.
But what are you trying to actual update ProcessingStatus or UserStatus of the Document??
You can indeed update the already persisted document…do you see the bizdoc object in the pipeline?? ChangeStatus needs this input to update the existing document.
You should be able to use the wm.tn.doc:changeStatus service for an existing document. But you may need to invoke wm.tn.doc:view first to get the bizdoc.