DIGIT Works
Public FinanceSanitationUrbanHealth
Works v0.1
Works v0.1
  • Introducing DIGIT Works Platform
  • Platform
    • Release Notes
      • Service Build Updates
      • MDMS & Configuration Updates
      • Test cases
    • Platform Capabilities
    • Architecture
      • High Level Design
      • Low Level Design
        • Registries
          • Individual
          • Bank Account
          • Organisation
        • Services
          • Project
          • Estimates
          • Contracts
          • Attendance
          • Muster Roll
          • Expense
    • Functional Specifications
      • Project
      • Estimates
      • Organisation
      • Attendance Management
      • Muster Roll
      • Expenditure / Billing
      • Contracts
    • Platform Services
      • Project
      • Estimates
      • Contracts
      • Attendance
      • Muster Roll
      • Expense
      • Bank Account
      • Organisation
    • Source Code
    • Roadmap
    • Installation
    • Configuration
      • Service Configuration
        • Project
        • Estimate
        • Contract
        • Attendance
        • Muster Roll
        • Expense
        • Bank accounts
        • Organisation
        • Individual
  • Products
    • Works App
      • UX Design
      • Technical Design
      • Field App User Manual
      • Configuration Manual
      • Technical Manual
  • Programmes
    • MuktaSoft (v1.0)
      • Specifications
        • User Persona
        • Functional Requirements
          • Product Requirements Document
          • User Stories
            • User Creation & Role Mapping
            • Employee Login
            • Employee Home Page
            • Project User Stories
              • Create Project
              • Search Project
              • View Project Details
              • Modify Project Details
            • Estimate User Stories
              • Create Estimate
              • Estimate Workflow (Role Action Mapping)
              • Estimate Inbox
              • Estimate Create/Submit Workflow
              • Estimate Edit/Submit Workflow
              • Estimate Verify & Forward Workflow
              • Estimate Reject Workflow
              • Estimate Send Back Workflow
              • Estimate Send Back To Originator Workflow
              • Estimate Technical Sanction
              • Estimate Approve Workflow
              • Search Estimate
              • View Estimate
            • Contracts User Stories
              • Create Work Order
              • Work Order Workflow
              • Work Order Inbox Page
              • Create/ Submit Work Order
              • Edit/Submit Work Order
              • Verify & Forward
              • Send Back
              • Send Back To Originator
              • Reject Work Order
              • Approve
              • Work Order PDF
              • Search Work Order
              • View Work Order
            • Muster Roll User Stories
              • Inbox Page
              • Muster Roll Workflow
              • Muster Rolls - Verify & Forward
              • Muster Roll - Send Back
              • Muster Rolls - Send Back To CBO
              • Muster Roll - Edit/Submit
              • Muster Roll - Approve
              • Search Muster Roll
              • View Muster Roll
            • Bill User Stories
              • Create Purchase Bill
              • Create Wage Bill
              • Create Supervision Bill
              • Bill Workflow
              • Bill Inbox
              • Edit Purchase Bills
              • Verify & Forward
        • Roadmap
      • Deployment
        • Release Notes
          • Service Build Updates
          • MDMS & Configuration Updates
          • Gate 2 Release Checklist
          • Test Cases
        • MuktaSoft Services
          • IFMS Adapter
          • Expense Calculator
          • Works PDF
          • Works UI
            • UI Tech Flow Diagrams
          • Bill Scheduler
        • Deployment Guide
        • Configuration
          • Master Data Templates
            • Project Type
            • Target Demography
            • Unit Of Measurement (Units)
            • Overheads
            • Skill Category & Skills
            • Community-Based Organisation Roles
            • Scheme
            • Expense Heads
            • Standard Deductions
            • Organisation Type
            • Organisation Sub Type
            • Organisation Functional Category
            • Organisation Class/Rank
            • HRMS Sections/Departments
            • HRMS Designation
            • HRMS Employment Type
            • User Role
            • Organization
            • Wage Seeker
            • Tenants
            • Ward Boundary
            • Locality Boundary
            • Payment Advice Format
            • Users Data
          • Notifications & SMS Templates
          • Localisation
          • Service Configuration
          • UI Configuration
            • Common Configurations
              • Role Configuration
              • MDMS Configuration
              • APK Generation
            • Modules
              • Project
              • Estimate
              • Workorder
              • Muster Roll
              • Bill
              • Organization
              • WageSeeker
              • WageSeeker (CBO Application)
              • Attendance (CBO Application)
              • MusterRoll (CBO Application)
            • Drafts
              • Contracts
                • Create Contract
                • Contract Workflow
                • Modify Contract
              • Estimate
                • Create Estimate
                • Estimate Worflow
                • Modify Estimate
              • Attendance Management
                • Inbox
                • View Attendance
                • Modify Attendance
        • Customisation
          • UI Screens Customisation
            • Document Upload Container
            • CSS Customisation
            • Inbox/Search Screen
      • Implementation
        • Programme Details
          • Pilot Roll Out Plan
          • Pilot Go Live Definition
          • Pilot Sucess Metrics
          • Adoption Metrics
          • Implementation Plan
          • Implementation Checklist
          • Issue Management - Standard Operating Procedures
          • UAT Test Planning
            • Test Case Scenarios
            • UAT Test Case Scenarios
            • Issue Reporting Template
        • Training Resources
          • User Manual
            • Getting Started
            • CBO User Manual
              • CBO - Getting Started
              • My Works
              • Track Attendance
              • Muster Rolls
              • My Bills
            • Employee User Manual
              • Project
              • Estimate
                • Technical Sanctioner
              • Work Order
              • Workflow
              • Billing
              • Payment
              • Registries
              • Organizations
  • COMMUNITY
    • Discussion Board
    • Issues
Powered by GitBook

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

On this page
  • Overview
  • Dependency
  • Key Functionalities
  • Code
  • Configuration
  • Deployment
  • Update schedular

Was this helpful?

Export as PDF
  1. Programmes
  2. MuktaSoft (v1.0)
  3. Deployment
  4. MuktaSoft Services

Bill Scheduler

PreviousUI Tech Flow DiagramsNextDeployment Guide

Last updated 1 year ago

Was this helpful?

Overview

This bill scheduler is a cronjob scheduler for calculating the supervision bill. It runs based on environment configuration. It triggers multiple APIs to generate the supervision bill.

Dependency

  • MDMS

  • User

  • Contract

  • Expense Calculator

Key Functionalities

  • It creates supervision bills based on ACTIVE contracts using expense-calculate service /v1/_calculate API.

Code

Configuration

  • Create a role in ACCESSCONTROL-ROLES/roles.json MDMS like .

  • Create a SYSTEM user with BILL_CREATOR and SYSTEM roles. Find the curl below.

  • The same username will be used to generate bills BILL_GEN_CRONJOB, it’s defined in the environment config.

  • Cron job duration will be configured using environment variables from .

curl --location 'http://localhost:8082/user/users/_createnovalidate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "RequestInfo": {
        "api_id": "1",
        "ver": "1",
        "ts": null,
        "action": "create",
        "did": "",
        "key": "",
        "msg_id": "",
        "requester_id": "",
        "userInfo": {
            "userName": "BillCreator",
            "name": "BillCreator",
            "gender": "male",
            "mobileNumber": "9999999999",
            "active": true,
            "type": "EMPLOYEE",
            "tenantId": "{STATE_TANENT_ID}",
            "password": "eGov@123",
            "roles": [
                {
                    "code": "SUPERUSER",
                    "tenantId": "{STATE_TANENT_ID}"
                }
            ]
        }
    },
    "User": {
        "userName": "BILL_GEN_CRONJOB",
        "name": "Bill Generator",
        "gender": "male",
        "mobileNumber": "0000000000",
        "active": true,
        "type": "SYSTEM",
        "tenantId": "{STATE_TANENT_ID}",
        "password": "eGov@123",
        "roles": [
            {
                "code": "SYSTEM",
                "tenantId": "{STATE_TANENT_ID}"
            },
            {
                "code": "BILL_CREATOR",
                "name": "BILL_CREATOR",
                "tenantId": "{STATE_TANENT_ID}"
            }
        ]
    }
}'

Deployment

Update schedular

You can update the configuration of scheduler in two ways

  1. Add the config in the DevOps environment file, and restart the service it will trigger the scheduler based on the updated environment configuration, and restart the expense-cronjob service.

expense-cronjob:
  cron:
    schedule: "*/1 * * * *"
    suspend: "false"
  1. Using commands Change schedule - kubectl patch cronjobs expense-cronjob -p '{"spec" : {"schedule": "*/10 * * * *" }}'

    Pause cron job -

    kubectl patch cronjobs expense-cronjob -p '{"spec" : {"suspend" : true }}' Resume cron job -

    kubectl patch cronjobs expense-cronjob -p '{"spec" : {"suspend" : false}}' Create new cronjob scheduler - kubectl create job --from=cronjob/expense-cronjob expense-cronjob

Bill Scheduler
this
here
Helm Charts