JBoss Community

JBPM: process with two consecutive nodes, each with an ActionHandler / commit transaction

created by Adrien Gorrell in jBPM - View the full discussion

Hello everyone,

 

I am quite new at JBPM since I have only been developing Action Handlers from an existing structure for now. But I am facing a problem : in my process graph, I have two consecutive nodes, each one has an Action Handler. Lets call (1) the first ActionHandler and (2) the second one.

 

(1) updates L1 in database.

(1) adds a new line L2 in database.

-- in database, nothing happens

(1) leaveNode(true)

(2) begins

(2) sees L1 updated (which seems weird to me and may be a false observation)

(2) doesn't see L2.

(2) leaveNode(true)

(2) exits the execute() method

(1) exist the execute method

-- database changes

 

Any idea of why this happens? I would really like (2) to get the updated database values... How should I do?

 

Lyth_o

Reply to this message by going to Community

Start a new discussion in jBPM at Community