Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
LWCNormalizedObject is supported server side only, so I'm getting the exception reminding me of that when attempting to use in a remote client (Java class invoked from the Windchill Shell).
Is there something I can use without needing to run a "fake" workflow to get the code to execute "server side"? My preference is a Customer visible API or a really detailed usage, syntax etc.
Hi Keir,
Why don't you use RemoteMethodServer. Try in this way.
RemoteMethodServer rms = RemoteMethodServer.getDefault();
rms.setUserName("wcadmin");
rms.setPassword("wcadmin");
Class argTypes[] = new Class[] {};
Object argValues[] = new Object[] {};
rms.invoke("yourMethod", YourClass.getName(), null, argTypes, argValues);
yourMethod() has to have those LWCNormalized API's.
Let me know if any additional details needed.
Thanks Vino,
I'll give that a try. Am I reading correctly in that argTypes[] and argValues[] are empty Vectors?
Thanks!
Hi Keir,
Did you have luck with Vino's suggestion? I believe your reading of the code and the empty vectors is correct.