Hello,
I end my task like this:
wfEngine.signal(wfTask.path.id, null);
wfEngine.endTask(taskInstanceId, null);
but i already solve my problem. What happened is this:
anonymous wrote : 7.7. Combining your hibernate classes
|
| In your project, you might use hibernate for your persistence. Combining your
persistent classes with the jBPM persistent classes is optional. There are two major
benefits when combining your hibernate persistence with jBPM's hibernate persistence:
|
| First, session, connection and transaction management become easier. By combining jBPM
and your persistence into one hibernate session factory, there is one hibernate session,
one jdbc connection that handles both yours and jBPM's persistence. So automatically
the jBPM updates are in the same transaction as the updates to your own domain model. This
can eliminates the need for using a transaction manager.
|
| Secondly, this enable you to drop your hibernatable persistent object in to the
process variables without any further hassle.
|
| The easiest way to integrate your persistent classes with the jBPM persistent classes
is by creating one central hibernate.cfg.xml. You can take the jBPM
src/config.files/hibernate.cfg.xml as a starting point and add references to your own
hibernate mapping files in there.
I perform an update to the persistence class in my domain model before it work fine. Now
my question is, do i have always perform an update or any transaction in my domain model
before committing the jbpm transaction? Is there a way that i dont have to perform
transaction in my domain model but still jbpm will work just fine?
Thanks a lot.
Cheers.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233902#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...