[
https://jira.jboss.org/browse/JBPM-2815?page=com.atlassian.jira.plugin.sy...
]
Daniel Schiller commented on JBPM-2815:
---------------------------------------
I already tried myself to solve this problem without changing the source code. For this
purpose i wrote classes for suspend and resume, which extend AbstractCommand respectively
AtomicOperation. Everything works fine, as long as the processinstance isn't async. If
it's async, i always get an exception like this:
2010-07-07 15:51:48,352|ERROR | AbstractFlushingEventListener | Could not synchronize
database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect):
[org.jbpm.pvm.internal.model.ExecutionImpl#290001]
and
2010-07-07 15:51:48,367|ERROR | ExecuteJobCmd | exception while executing
'ExecuteActivityMessage[290002]'
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
(or unsaved-value mapping was incorrect):
[org.jbpm.pvm.internal.model.ExecutionImpl#290001]
Even using an selfimplented class for asynchronus message (extending MessageImpl)
didn't help.
Support suspend/resume/restart of process instances through the API
-------------------------------------------------------------------
Key: JBPM-2815
URL:
https://jira.jboss.org/browse/JBPM-2815
Project: jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: jBPM 4.3
Environment: Linux
Reporter: C Nayak
Fix For: jBPM 4.x
Provide the ability to suspend and resume process instances. Suspend/Resume behavior
would be similar to the process definition suspend.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira