cancel
Showing results for 
Search instead for 
Did you mean: 

Can you force a transaction commit?

andreasa
Champ in-the-making
Champ in-the-making
Hi

I have a setup like this:

JMS Queue - > onMessage() -> Start ProcessInstance -> Reach Waitstate -> Commit | -> Continue Process Instance…
        <——- return <——————————————————-|
So I want to define when the control goes back to the calling application.
I basically want to remove the message from the queue as soon as the process instance has started.
Are there any other posibilities to achieve this other than inserting a "fake" short waitstate right after the start-node?
4 REPLIES 4

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
use the async functionality….

andreasa
Champ in-the-making
Champ in-the-making
How? Should I encapsulate the entire process in a subprocess and make it async?

trademak
Star Contributor
Star Contributor
Hi,

No you don't, just add an async attribute to the first automatic activity in your process definition.
So for example if the first activity is a service task, add it there.

Best regards,

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
oh and if you reach a wait state as mentioned in your example, it is automatically committed…