Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I am starting to play with the new "PersistableAdapter" API, I am noob to java too.
My question is, how to update an attribute of the primaryBusinessObject using a workflow expression or transition?
If I try the code below directly I will receive an error cause the PBO was not checked out before running the code, but If I checkout the PBO before running it I receive the error stating that "1.1 is the original version of a working copy and cannot be modified"
Obviously I am missing something here... Any help?
com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(primaryBusinessObject,null,null,new com.ptc.core.meta.common.UpdateOperationIdentifier());
newValue);
obj.persist();
"A goal without a plan is just a wish."