Question

Force business process to be run synchronic

I have a business process that needs to be running synchronic, is there a way to set the business process to do so?

The business process is triggered with a signal of record added.

Thanks,

Chani

Like 0

Like

7 comments

Hello, Chani!

 

Can you please explain in detail the whole idea? What is your business goal?

 

Thank you.

Dean

my business goal is to concatenate the type of the product to a string in the order every time a product is added to the order.

The process is working perfectly for adding 1 product at a time, but if I add 2 products at the same time I don't get the first product's type product's type . I think it happens because the second process starts before the first one ends.

So, I'm looking for a way to force it run synchronic. 

Thanks.

dean parrett,

 

my business goal is to concatenate the type of the product to a string in the order every time a product is added to the order.

The process is working perfectly for adding 1 product at a time, but if I add 2 products at the same time I don't get the first product's type product's type . I think it happens because the second process starts before the first one ends.

So, I'm looking for a way to force it run synchronic. 

Thanks.

Hi Chani,

 

Can you please share some screenshots of your business process?

 

Thanks.

Dean

 

I'm trying to add screenshots and something looks wrong, I can't add pictures. Is this only me?

dean parrett,

Adding some screenshots, thanks!

It doesn't have to do with the script I added. I tried doing a simpler thing, I modify a field with the formula - [#read prodsType of order (added).First item of resulting collection.Discount $#]+1 (it's the field that being modified + 1, like: x=x+1.

This is the same idea of the script but simpler, to use the field itself for modifying.

Now, when I add a few products at the same time to an order using the page below (see screenshot) it doesn't count the first product.

For example, I add 3 products, the 'x' (there it's called discount $) field that was set to 0 before equals to 2 instead of 3. 

Can you help please me how to prevent this from happening?

Thanks,

Chani

Show all comments