Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! 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."