WfAssignedActivity is not persistent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
WfAssignedActivity is not persistent
Hi.
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?
- Labels:
-
General Customization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello akosolapov,
I'm facing the same issue and I wonder if you get an answer for it ?
The workflow of some CT does not start randomly in our solution...
Thank you for your help !
