Question

About life cycle of OnRecordAdded signal

Hi,

I am doing a 

var result = entity.Save();

for an object(entity). And I have a business process that works on the signal OnRecordAdded for this object. My concern is, is the entity.Save() synchronous with the business process that runs for the entity? In other words, is the value for the "result" variable assigned only after this business process completes?

Like 0

Like

1 comments

Hi,

 

The result is accessible in the context of the business process execution and once the process completes its execution the result becomes unavailable.

 

You can also test it by debugging process execution in Visual Studio. You need to activate development in the file system and connect to the app via VS. Then you need to set breakpoints in the process schema and check when the result parameter receives the value and when it loses the value.

 

Best regards,

Oscar

Show all comments