Why we use BPT over Server Actions?

Any particular reason why we use BPT over Server Actions?

Maybe this will enlighten you :)

https://www.outsystems.com/training/lesson/1750/introduction-to-business-process-technology/

And this is where I took this link and where you can check other answers

https://www.outsystems.com/forums/discussion/45332/bpt-basics/

Kind Regards,

Márcio

Champion

Hi Abhinav Shilwant

I don't undernstand your questions. BPT and Server Actions are very different concept. Also their use case are different. You can't simply compare thease.

Please maek sure you understand BPT's concept correctly by refert to urls such as below.

https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/Data_Migration_From_Production_to_Non-Production_Environment/Business_Process_Technology_(BPT)

Regards.


Hi Abhinav Shilwant,

BPT processes runs asynchronously which mean it runs in a different transaction

When a BPT process is triggered, it would run asynchronously on the background and the user doesn't need to wait for the process to finish to continue to work on the application.

Using the example above, when Process1 is launched, it would immediately run Action1 even if Process1 is not yet done. One of the use case for this is bulk operations. For example, when a button is click to send an email to multiple users, we will need to launch a process to send those emails asynchronously or "on the background" and with this the user won't need to wait for all the emails to be sent before proceeding to another action.

On the other hand, Server actions runs synchronously which means it runs in single transaction.

When a Server action is triggered, it would run synchronously and it would require one action to be finished before proceeding to the next action/node.

Using the same example above, when the flow is already on Action1, the application will need to wait for the Action1 to finished before proceeding to Action2.

There are more features in BPT (such as the LaunchOn attribute, and Taskbox) but I suggest you should look up to the links that Márcio and Tom provided for additional references. Additionally, you can visit this courses for BPT Processes:

Asynchronous Data Processing with Light Processes Course - Training | OutSystems
Building Your First Business Process Course - Training | OutSystems

This blog could also be helpful. It tackles the synchronous and asynchronous :) 


 hope this helps

Cheers!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.