cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

WfAssignedActivity is not persistent

akosolapov-2
14-Alexandrite

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?

 

1 REPLY 1

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 !

Top Tags