Fiscal Event Aggregator

Overview

Fiscal Event Aggregator is a java standalone application, which runs as Cron Job to aggregate the fiscal event data from the Druid data store to Postgres DB.

Version History

Current Version : 1.0.0

Prerequisites

Before you proceed with the configuration, make sure the following pre-requisites are met

  1. Java 8

  2. Druid DB & Postgres DB should be up and running

Features

Fiscal-Event-Aggregator computes the aggregate of data over a selected time period. Aggregator will apply the time range filter according to the following approach :

Fiscal periods will be picked up as per the current system time. The current year will be the current fiscal period starting from 1st of April of the current year to 31st March of (current year+1). And it will also aggregate the data of one previous fiscal year starting from 1st of April of (current year -1) to 31st March of the current year.

As per the fiscal time periods, The below steps are required to aggregate the final fiscal event data.

  1. Group the sum of amount based on project id, COA(chart of account) id, and event type.

  2. Difference of sum of the amount of "DEMAND" and "RECEIPT" event type with respect to distinct project id.

  3. Difference of sum of the amount of "BILL" and "PAYMENT" event type with respect to distinct project id.

Upsert the final aggregated fiscal event data into the Postgres DB.

Environment

Note: Below environment variables need to be configured with respect to the environment

Interaction Diagram

Configuration

Update all the configuration in the dev.yaml, qa.yml, prod.yaml file.

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.