Creating a new TN document type from WM designer

Hi,

It should be very simple. I’m trying to create a TN document type using WMTN service,

wm.tn.doctype:add

For the input parameter, type (of Object type), i’ve created a document initially (document reference: wm.tn.rec:BizDocType) and populated the values necessary.

And i’ve converted that document to bytes,which is then passed as the input to the mentioned TN service < wm.tn.doctype:add> and i got the below error:

wm.tn.doctype:add

  • *
  •  <JavaClass>java.lang.ClassCastException</JavaClass>*
    
  •  <Message>[B cannot be cast to com.wm.app.tn.doc.BizDocType</Message>*
    
  •  <StackTrace>java.lang.ClassCastException: [B cannot be cast to com.wm.app.tn.doc.BizDocType*
    
  • at wm.tn.doctype.add(doctype.java:204)*

Hi Venkata,

if I have to create TN doc types via Designer, first I create a regular IS DocType.
Then I go to MWS (with TN UI applied) to create the TN variant there and point it to the IS DocType as a Reference.

See TN Users Guide for further informations.

Regards,
Holger