Suppose I have 3-4 aggregates at the screen. (mobile or web)

Will these run synchronously  , will these run in order from top to bottom , or run asynchronously  ?
Can anyone help me that what is process to run these multiple aggregates.

also Can I debug in aggregates.

Hello Manish,

These run in order from top to bottom, and yes, you can debug your aggregates.

about debug:

https://www.youtube.com/watch?v=jKcTIxARcyQ

Regards.

Hello Manish,


If you have 3 aggregates in the preparation, they will run from top to bottom, or from the start node to the end node.

And yes, you can debug the output of your aggregates, you just have to add a breakpoint on the aggregate or in the start node.


Best regards,

MP 

Manish Kumawat wrote:

Suppose I have 3-4 aggregates at the screen. (mobile or web)

Will these run synchronously  , will these run in order from top to bottom , or run asynchronously  ?
Can anyone help me that what is process to run these multiple aggregates.

also Can I debug in aggregates.

Hi Manish Kumawat,

Can you elaborate on your problem?

Aggregates basically allow you to perform query's such as "AdvanceQuery" component.

What are you trying to do?

Multiple Query's on preparation? 

If you have multiple Aggregates in your flow they will be executed according to their position.

Following the example above the aggregates will bu executed in the following order: 

aggregate1 

aggregate2

aggregate3

You can debug and see the inputs and the output of the aggregate. You can not debug the "aggregate" itself.

Hope this helps. 

Best Regards 

Rodrigo Henriques



Hi Manish,

Aggregates on web applications was already explain. In mobile is different and you should check this document. But basically the the initialize event ends the aggregates are fetch asynchronously and concurrently. and when they are done a after fetch event is triggered.

Regards,

Marcelo

Agno Silveira wrote:

Hello Manish,

These run in order from top to bottom, and yes, you can debug your aggregates.

about debug:

https://www.youtube.com/watch?v=jKcTIxARcyQ

Regards.


Hi Agno,


I think this is not a exact answer.

Let me have a scenario like -

I have a screen with list widget and 3 aggregates on the screen like

1. GetOrders,

2. GetCustomer,

3. GetCities


I have checked it and found the event "OnAfterFetch" runs on aggregates like in order GetCities,GetCustomer and then GetOrders. 

This is not from top to bottom.

I see that it runs asynchronously.


Kindly check and clear my answer if possible

Thanks & Regards

Manish




rodrigo henriques wrote:

Manish Kumawat wrote:

Suppose I have 3-4 aggregates at the screen. (mobile or web)

Will these run synchronously  , will these run in order from top to bottom , or run asynchronously  ?
Can anyone help me that what is process to run these multiple aggregates.

also Can I debug in aggregates.

Hi Manish Kumawat,

Can you elaborate on your problem?

Aggregates basically allow you to perform query's such as "AdvanceQuery" component.

What are you trying to do?

Multiple Query's on preparation? 

If you have multiple Aggregates in your flow they will be executed according to their position.

Following the example above the aggregates will bu executed in the following order: 

aggregate1 

aggregate2

aggregate3

You can debug and see the inputs and the output of the aggregate. You can not debug the "aggregate" itself.

Hope this helps. 

Best Regards 

Rodrigo Henriques




Hi rodrigo henriques,


I am not using web application and do not have preparation.

I am using Mobile application and I see that there is no preparation.

Only I can see multiple aggregates on the screen mobile . and do not have a flow chart for this.


I have a screen with list widget and 3 aggregates on the screen like

1. GetOrders,

2. GetCustomer,

3. GetCities


What would be the order to run those aggregates?

can you please help me



Best regards,

MK

Hi Manish,

In mobile and reactive web applications aggregates run asynchronously on screens. If you are calling them in any action then only they will run synchronously in the same order they are in flow.

Dear Manish,

As I understand your question, you are using 3 entities on screen using direct aggregates like below:



In above case, It will run asynchronously on the screen.

But if you have huge data, the best approach to achieve it will be using a single server action (Fetch Data from Other Sources) and use it as preparation of screen. (in above exaple, its ScreenPreparation).
In side that you can use multiple aggregates. and it will be synchronous single server action like below:


Hope your doubt is now clear using above example.

Regards,
Palak Patel