Solved
Read a WTPart and change his Number and WTDocuments (with the same info code) using JAVA
Some one know how to get programatically de EPMDocuments associated(s) to a WTPart?
What's the task:
1 Verifying if my WTPart is new and have a family field filded (i created a rule that the new WTParts have a "WC_" prefix this is working).
1.1 Been a WTPart, i need to change his Name and Number by a code getting by a ERP endpoint (it´s not working but i simulated). I able make it with some inside lines code on "workflow template" (didn't like, but could't work with java unit - and i'll had a new dificult ahead, i know it).
1.2 And need change the EMPDocument(s) too, if exists ones of (like .prt, .drw or .asm), with the same code getting by ERP.
Here is my problem. I couldn't get the objects with Java or code inside template (yet). Tryed a lot of java codes, but get a lot problems with "jar imports" that is not recognized.
2. And at last, if is not new or don´t has a specific family, do nothing (it´s working).
I has found a lot of solutions inverse, and try change the logical way without sucess.
If someone you have some code, config, idea or some trick to do this, i appreciate.
Thank you!


