Franklin Antony [
http://community.jboss.org/people/frankee787] created the discussion
"Re: jbpm5 transaction commit"
To view the discussion, visit:
http://community.jboss.org/message/616596#616596
--------------------------------------------------------------
Dear Tang,
Thanks for the response
I still am not able to get it correctly.
My application uses the the following to create a client.
client = new TaskClient(new MinaTaskClientConnector("client", new
MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
In a situation like the following
1)I insert into my database(Flight ticket booking : business specific data)
2)I call client.addTask(task, null, addTaskResponseHandler) (to create a task in jBPM)
3)I update my database saying the task has been created sucessfully in jBPM
How can I ensure steps 1 - 3 are in one transaction?
I hope my questions is clear now ?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/616596#616596]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]