How to get (lifecycle)state of a WTDocumentMaster object?
There is a BOM structure. The condition is that before a child is not at its RELEASED state, Parent cannot be released.
I have used wt.doc.WTDocumentHelper.service.getUsesWTDocumentMasters() to get the child document.
I want to get the state of the child document. SO I used,
WTDocumentMaster childPart = (WTDocumentMaster) childInfo;
wt.lifecycle.State childState = ((_LifeCycleManaged) childPart).getLifeCycleState();
ERROR is -> wt.doc.WTDocumentMaster cannot be cast to wt.lifecycle._LifeCycleManaged
I cannot get the state of the object. The above function does not work for WTDocumentMaster. Neither does object.getState().
How should I fetch the state of the object??

