Hi Vivek,
The basic code to create WTPart.
WTPart part = WTPart. try {
part.setContainer(container);
Persistable persistable = PersistenceHelper.
} //
TODO Auto-generated catch block
e.printStackTrace();
}
{
part.setContainer(nmCommandBean.getContainer());
Persistable persistable = PersistenceHelper. manager.save(part);
For document use WTDocument.
If you want to create Subtype if WTPart.
use
you can also use the code in workflow.