Task 1-3: Defining the global aggregates
In this task, you define variables that store the calculated global aggregates for the solution.
About this task
Entity aggregates focus on an entity type in a model. The entity type in this scenario is the account type. Entity aggregates are run on a schedule, which you specify in its definition.
Event aggregates focus on event types. The event type in this scenario is the transaction type. Event aggregates do not have a schedule but are calculated every time that an event of the same type occurs.
In
this tutorial, you define and use two global aggregates:
- An entity aggregate that calculates daily the average balance of risky accounts so that you can monitor and respond to changes in the balance.
- An event aggregate that calculates the average amount of the transactions that occur within the past 24 hours.
Each global aggregate that you create is in its own .agg file.

