mGramSeva - eChallan Service
Overview
eChallan system enables employees to generate the challans for Adhoc services so that the payment can be recorded into the system along with service-specific details.
Pre-requisites
Before you proceed with the documentation, make sure the following pre-requisites are met -
Java 8
Kafka server is up and running
egov-persister service is running and has workflow persister config path added in it
PSQL server is running and database is created to store workflow configuration and data
Key Functionalities
Allow employee to capture service details for miscellaneous services and mark as paid
Allow employee to update / cancel challan.
Environment Variables | Description |
| This variable is to check the event Notification enabled or not. |
| This variable is to get the default limit value |
| This variable to check the max limit value. |
| This variable will give the business service name while creating the workflow. |
| This variable is to check the SMS notifications are enabled or not. |
| This variable is used to check the localizations are state level or not. |
| variable for collection list screen link for notifications |
| variable for monthly summary screen link for notifications |
| variable for new expenditure screen link |
| variable for paid expenditure screen link |
| variable for mnaul bulk demand generation screen link |
| variable for today’s collection screen link |
Interaction Diagram
Configuration Details
Mdms configuration:
Actions & Role Action Mapping
Actions
[
{
"id": {{PLACEHOLDER1}},
"name": "Expense Create",
"url": "/echallan-services/eChallan/v1/_create",
"parentModule": "",
"displayName": "EChallan Create",
"orderNumber": 0,
"enabled": false,
"serviceCode": "echallan-services",
"code": "null",
"path": ""
},
{
"id": {{PLACEHOLDER2}},
"name": "Expense Search",
"url": "/echallan-services/eChallan/v1/_search",
"parentModule": "",
"displayName": "EChallan Create",
"orderNumber": 0,
"enabled": false,
"serviceCode": "echallan-services",
"code": "null",
"path": ""
},
{
"id": {{PLACEHOLDER3}},
"name": "Expense Update",
"url": "/echallan-services/eChallan/v1/_update",
"parentModule": "",
"displayName": "EChallan Create",
"orderNumber": 0,
"enabled": false,
"serviceCode": "echallan-services",
"code": "null",
"path": ""
},
{
"id": {{PLACEHOLDER4}},
"name": "Vendor Create",
"url": "/vedor/v1/_create",
"parentModule": "",
"displayName": "Vendor Create",
"orderNumber": 0,
"enabled": false,
"serviceCode": "vendor",
"code": "null",
"path": ""
},
{
"id": {{PLACEHOLDER5}},
"name": "Vendor Search",
"url": "/vendor/v1/_search",
"parentModule": "",
"displayName": "Vendor Create",
"orderNumber": 0,
"enabled": false,
"serviceCode": "vendor",
"code": "null",
"path": ""
},
{
"id": 2007,
"name": "Update Password",
"url": "/user/password/_update",
"parentModule": "",
"displayName": "Password Update",
"orderNumber": 4,
"enabled": false,
"serviceCode": "ADMIN",
"code": "null",
"path": ""
},
{
"id": {{PLACEHOLDER7}},
"name": "Expense Update",
"url": "/echallan-services/eChallan/v1/_expenseDashboard",
"parentModule": "",
"displayName": "get Expense Dashboard",
"orderNumber": 0,
"enabled": false,
"serviceCode": "echallan-services",
"code": "null",
"path": ""
},
{
"id": {{PLACEHOLDER8}},
"name": "Expense Update",
"url": "/echallan-services/eChallan/v1/_chalanCollectionData",
"parentModule": "",
"displayName": "get Expense Dashboard",
"orderNumber": 0,
"enabled": false,
"serviceCode": "echallan-services",
"code": "null",
"path": ""
},
]
Role Action Mapping
[
{
"rolecode": "EXPENSE_PROCESSING",
"actionid": {{PLACEHOLDER1}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "EXPENSE_PROCESSING",
"actionid": {{PLACEHOLDER2}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "DASHBOARD_VIEWER",
"actionid": {{PLACEHOLDER2}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "GP_ADMIN",
"actionid": {{PLACEHOLDER2}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "EXPENSE_PROCESSING",
"actionid": {{PLACEHOLDER3}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "SUPERUSER",
"actionid": {{PLACEHOLDER4}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "EXPENSE_PROCESSING",
"actionid": {{PLACEHOLDER4}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "EXPENSE_PROCESSING",
"actionid": {{PLACEHOLDER5}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "SUPERUSER",
"actionid": {{PLACEHOLDER5}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "SUPERUSER",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "GP_ADMIN",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "COLLECTION_OPERATOR",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "BULK_DEMAND_PROCESSING",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "EXPENSE_PROCESSING",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "DASHBOARD_VIEWER",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "PROFILE_UPDATE",
"actionid": {{PLACEHOLDER6}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "GP_ADMIN",
"actionid": {{PLACEHOLDER7}},
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "GP_ADMIN",
"actionid": {{PLACEHOLDER8}},
"actioncode": "",
"tenantId": "pb"
}
]
Roles to be available:
{
"code": "GP_ADMIN",
"name": "GP Admin",
"description": "Who has a access to ws-services"
},
{
"code": "COLLECTION_OPERATOR",
"name": "Collection Operator",
"description": "Who has a access to ws-services,demand, bill and payment"
},
{
"code": "BULK_DEMAND_PROCESSING",
"name": "Bulk Demand Processing",
"description": "Who has a access to bulk demand generation,raise bill, downloa bill and receipts"
},
{
"code": "EXPENSE_PROCESSING",
"name": "Expense Processing",
"description": "Who has a access to create and update expenses"
},
{
"code": "DASHBOARD_VIEWER",
"name": "Dashbaord Viewer",
"description": "Who has a access to dashboard of revenue and expenditure"
}
Deployment Details
Add mdms configs required for eChallan Service and calculator and restart mdms service.
Deploy the latest version of eChallan Service and calculator.
Add eChallan Service persister yaml path in persister configuration and restart persister service
Add Role-Action mapping for API’s.
Add pdf configuration file for challan and bill.
Integration
Integration Scope
The eChallan service is used to generate e-challans / bill for all miscellaneous / adhoc services .
Integration Benefits
Can perform service-specific business logic without impacting the other module.
Provides the capability of capturing the unique identifier of the entity for which the challan is generated.
In the future, if we want to expose the application to citizen then it can be done easily.
Workflow or Service-specific workflow can be enabled at the challan service level at any time without changing the design.
Allow employee to update / cancel challan
Steps to Integration
To integrate, host of echallan-services module should be overwritten in helm chart.
echallan-services/eChallan/v1/_create
should be added as the create endpoint for creating eChallan in the systemechallan-services/eChallan/v1/_search
should be added as the search endpoint .This method handles all requests to search existing records depending on different search criteriaechallan-services/eChallan/v1/_update
should be added as the update endpoint. This method is used to update fields in existing records or to update status of application based on workflow./echallan-services/eChallan/v1/_expenseDashboard
Is added in echallan-service to show the data of expenses in metrix format./echallan-services/eChallan/v1/_chalanCollectionData
it is added to get the main monthly dashboard data for the expense.
Reference Docs
Doc Links
Title | Link |
API Swagger Documentation |
API List
Title | Link |
echallan-services/eChallan/v1/_create | |
echallan-services/eChallan/v1/_update | |
echallan-services/eChallan/v1/_search | |
echallan-services/eChallan/v1/_chalanCollectionData | |
echallan-services/eChallan/v1/_chalanCollectionData |
(Note: All the API’s are in the same postman collection therefore same link is added in each row)