简体   繁体   中英

JBPM - How to use CMT Command within a process

I am trying to create a merge tool to merge multiple different branches together through SVN.

I am wanting to use JBPM running through AS7. I am using JBPM 5.4 as it is the highest version that is compatible with my enviroment.

If it is run once, it works fine. However, when it is run more than once. If it gets to a human task, it will pause and wait for that human task to be complete. When the task is resolved it appears to look for a Ksession but it finds the first run throughs session and carries on from there using the first runs session.

It seems as if it isn't disposing of the ksessions.

I have come across CMTDispose . However I am not sure how to make it run in the AS7 as I need to call

ksession.execute(new CMTDisposeCommand());

Although I am not sure where I can call ksession within the process?

Any help would be good, thanks.

Container-managed transactions work by simply making sure a transaction is already active when invoking the jBPM engine, in which case the engine will join the existing transaction.

At the end of the transaction, the state of all process instances is stored in the database. If they are needed later, the state will be restored from the database again to continue where they left off.

It's unclear what's going wrong to give more concrete advice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM