Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc:updateSystemAttributes
 
wm.tn.doc:updateSystemAttributes
Updates system attributes of a document.
Input Parameters
bizdoc
Object The document for which you want to update system attribute values in the database. The document must be an instance of com.wm.app.tn.doc.BizDocEnvelope.
Output Parameters
None.
Usage Notes
*You can use this service to change any of the system attributes in the BizDocEnvelope: SenderId, ReceiverId, DocumentId, GroupId, ConversationId, SystemStatus, and UserStatus. Modify the values you want to change; then invoke this service. If the pre-processing actions indicate that the document attributes are to be saved to the database, the updateSystemAttributes service writes the changes to the database and creates a detailed record of the change in the Trading Networks Activity Log.
*SenderId and ReceiverId are Trading Networks-generated IDs for partner profiles. These values must match an existing partner profile ID. If you change either of these fields to an invalid ID value, the service will throw an exception.
*Trading Networks uses SystemStatus to control the processing of the BizDocEnvelope. This field is reserved for internal use only by Trading Networks and should not be modified by an application. If you attempt to set this value to null, an exception is thrown.