Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Vehicle Registry is a system that enables ULB Employees to create and search Vehicle Entities and schedule Vehicle Trip for FSM Application and track the VehicleTrip. This document contains the details about new enhancements made to the Vehicle service as part of FSM v1.1 release and how to setup the Vehicle and describe the functionalities provided.

...

  • Java 8

  • Kafka server is up and running

  • egov-persister service is running and has vehicle-persister config path added in it

  • PSQL server is running and database is created to store FSM Application data

  • Following services should be up and running:

    • egov-perister

    • egov-mdms-service

    • egov-workflow-v2

    • egov-idgen

Key Functionalities

Deployment Details

  1. Deploy the latest version of vehicle

  2. Add vehicle-persister.yml file in config folder in DSO or ULB can create multiple vehicle trips based on the number of trips entered while submitting the FSM application.

  3. FSTPO can decline the vehicle trip with appropriate reason.

  4. Owner attribute has been added to the vehicle

  5. FSTPO Vehicle Log Inbox Enhancements to include Application No search filter so that FSTPO can view all the vehicle trips associated with the application.

  6. FSPTO vehicle log API upgraded to show trip numbers in case of multi-trip application

Deployment Details

  1. Deploy the latest version of vehicle

  2. Add vehicle-persister.yml file in config folder in git and add that path in persister . (The file path is to be added in environment yaml file in param called persist-yml-path ) and restart egov-persister-service.

...

Code Block
{
    "tenantId": "pb",
    "moduleName": "Vehicle",
    "VehicleMakeModel": [
        {
            "code": "MAHINDRA",
            "name": "Mahindra",
            "active": true
        },
        {
            "code": "MAHINDRA.BOLERO_PICKUP",
            "name": "Bolero Pickup",
            "active": true,
            "make": "MAHINDRA",
            "capacity": "5000",
            "amount": "500"
        },
        {
            "code": "TATA",
            "name": "TATA",
            "active": true
        },
        {
            "code": "TATA.LPT709/34",
            "name": "TATA LPT709/34",
            "active": true,
            "make": "TATA",
            "capacity": "2000",
            "amount": "200"
        },
        {
            "code": "TATA.407",
            "name": "TATA 407",
            "active": true,
            "make": "TATA",
            "capacity": "1000",
            "amount": "100"
        },
        {
            "code": "TAFE",
            "name": "TAFE",
            "active": true
        },
        {
            "code": "TAFE.TRACTOR_45DI",
            "name": "TAFE Tractor 45DI",
            "active": true,
            "make": "TAFE",
            "capacity": "10000",
            "amount": "1000"
        },
        {
            "code": "SONALIKA: "SONALIKA",
            "name": "Sonalika",
            "active": true
        },
        {
            "code": "SONALIKA.TRACTOR_35DI",
            "name": "Sonalika Tractor 35DI",
            "active": true,
            "make": "SONALIKA",
            "capacity": "8000",
            "amount": "1000"
        }
    ]
}

FSTPORejectionReason (Vehicle decline reason codes)

Code Block
{
    "tenantId": "pb",
    "moduleName": "Vehicle",
    "FSTPORejectionReason": [{
            "name": "Septage Source",
            "code": "SEPTAGE_SOURCE",
            "active": true
        },
        {
            "name": "Outside operational hours",
            "namecode": "SonalikaOUTSIDE_OPERATIONAL_HOURS",
            "active": true
        },
        {
            "codename": "SONALIKA.TRACTOR_35DIUnder Maintenance",
            "namecode": "Sonalika Tractor 35DIUNDER_MAINTENANCE",
            "active": true
        },
        {
            "makename": "SONALIKAOthers",
            "capacitycode": "8000OTHERS",
            "amountactive": "1000"true
        }
    ]
}

Business Service / Workflow Configuration

...

Workflow configuration for VehicleTrip of FSM

 

Code Block
{
      "tenantId": "pb",
      "businessService": "FSM_VEHICLE_TRIP",
      "business": "vehicle",
      "businessServiceSla": 172800000,
      "states": [
        {
          "sla": null,
          "state": null,
          "applicationStatus": null,
          "docUploadRequired": false,
          "isStartState": true,
          "isTerminateState": false,
          "isStateUpdatable": true,
          "actions": [
            {
              "action": "SCHEDULE",
              "nextState": "SCHEDULED",
              "roles": [
                "FSM_DSO"
              ]
            }
          ]
        },
        {
          "sla": null,
          "state": "SCHEDULED",
          "applicationStatus": "SCHEDULED",
          "docUploadRequired": false,
          "isStartState": true,
          "isTerminateState": false,
          "actions": [
            {
              "action": "READY_FOR_DISPOSAL",
              "nextState": "WAITING_FOR_DISPOSAL",
              "roles": [
                "FSM_DSO",
                "FSM_EDITOR_EMP"
              ]
            }
          ]
        },
        {
          "sla": null,
          "state": "WAITING_FOR_DISPOSAL",
          "applicationStatus": "WAITING_FOR_DISPOSAL",
          "docUploadRequired": false,
          "isStartState": true,
          "isTerminateState": false,
          "actions": [
            {
              "action": "DISPOSE",
              "nextState": "DISPOSED",
              "roles": [
                "FSM_EMP_FSTPO"
              ]
            },
            {
              "action": "DECLINEVEHICLE",
              "currentState": "WAITING_FOR_DISPOSAL",
              "nextState": "VEHICLE_DECLINED",
              "roles": [
                "FSM_EMP_FSTPO"
              ]
            }
          ]
        },
         {
          "sla": null,
          "state": "DISPOSED",
          "applicationStatus": "DISPOSED",
          "docUploadRequired": false,
          "isStartState": false,
          "isTerminateState": true,
          "isStateUpdatable": true
        },
       {
		 "tenantId": "pb",
		  "sla": null,
		  "state": "VEHICLE_DECLINED",
		  "applicationStatus": "VEHICLE_DECLINED",
		  "docUploadRequired": false,
		  "isStartState": false,
		  "isTerminateState": true,
		  "isStateUpdatable": true
		  "actions": null
	   }
      ]
    }

...

Title 

Link

 Workflow Technical Document

 Workflow Service

 User Technical Document

User Service  

MDMS Technical Document

NEEDS TO BE UPDATED

IDGen Technical Document

NEEDS TO BE UPDATED

Localization Technical Document

NEEDS TO BE UPDATED

Persister Technical Document

NEEDS TO BE UPDATED

SMS Notification Technical Document

NEEDS TO BE UPDATED

API Contract

API Contract

Postman Scripts

Postman Collection

API List

Title 

Link

vehicle/v1/_create

https://www.getpostman.com/collections/d2541409b9570e53ed266d99bb40022396f848b2

vehicle/v1/_search

https://www.getpostman.com/collections/d2541409b9570e53ed266d99bb40022396f848b2

/vehicle/v1/_plainsearch

https://www.getpostman.com/collections/8ad9bc0adf8a22d48ae56d99bb40022396f848b2

vehicle/trip/v1/_create

https://www.getpostman.com/collections/d2541409b9570e53ed266d99bb40022396f848b2

vehicle/trip/v1/_update

https://www.getpostman.com/collections/d2541409b9570e53ed266d99bb40022396f848b2

vehicle/trip/v1/_search

https://www.getpostman.com/collections/d2541409b9570e53ed266d99bb40022396f848b2

/vehicle/trip/v1/_plainsearch

https://www.getpostman.com/collections/8ad9bc0adf8a22d48ae56d99bb40022396f848b2