I need to make some changes to WfAssignedActivity.
The code runs from a separate thread (SessionThread) that starts in "Start" transition of activity.
I get exception "wt.pom.ObjectNotPersistentException: Object "wt.workflow.work.WfAssignedActivity:39876147" is not a persistent" when i try to save changes with PersistenceHelper.manager.save() method.
If i try to PersistenceHelper.manager.refresh so i get exception "Cannot restore Wf Assigned Activity because it no longer exists."
But if i suspend my thread for example for 2 minutes with Thread.sleep() method, after that PersistenceHelper.manager.save works fine (and PersistenceHelper.manager.refresh as well).
So how can i check that assigned activity is available for PersistenceHelper.manager methods?