How to add a triggered business process into a queue to process one by one?

Hi all,

        As the subject, I want to process one by one the triggered business processes to prevent data conflicts.

       For example: I have a custom field "Current balance" in "contact" section, and new section is "Adjustment balance log". When there is a new log, system will calculate the "Current balance". Problem happens when I import too many logs, the business process can't get the latest of "current balance" sometime.

Thanks

Like 0

Like

3 comments

Dear Toan,

When you add/modify a big amount of data at once the corresponding processes are created for each record. If you change some value inside of these processes, the value gets locked so you shouldn't have any data losses because of the parallel execution of processes.

If you want to queue several processes that start on the signal of one record, you can start them as sub-processes of one process. However, if you want to prevent the process from starting until the same process for the other record is finished, unfortunately, it is not possible. 

Dennis Hudson,

Hi Dennis,

           Because they will run at the same time when I import many rows from MS Excel, I can't use sub-process. I don't understand what you mean in "If you change some value inside of these processes, the value gets locked so you shouldn't have any data losses because of the parallel execution of processes." The value is locked means it doesn't change until that process finishes or that process keeps current value at that moment, isn't it?

Thanks

Toan Mai,

 

What I meant is that if 2 processes work on 1 value simultaneously, they both will actually change the value. Could you please specify what you mean by "Problem happens when I import too many logs, the business process can't get the latest of "current balance" sometime."? What exact error do you get? 

Show all comments