JBoss Community

Re: jbpm5 transaction commit

created by Franklin Antony in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community