Versions Compared

Key

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

This service is used to issue license to user after verification. The service is designed in such way that it can be used to serve different type of licenses. Currently used to issue trade licenses, perform stakeholder registration and issue lock down pass. The service is integrated with workflow where we can define the steps for approval of the application. Once the application is approved the license is generated.The module contains three API as describe below:

_create:

This Requirements:

  • Prior Knowledge of Java/J2EE.

  • Prior Knowledge of Spring Boot.

  • Prior Knowledge of REST APIs and related concepts like path parameters, headers, JSON etc.

  • Prior knowledge of Git.

  • Prior knowledge of eGov-mdms service, eGov-persister, eGov-user, eGov-location, eGov-localization, eGov-idgen, billing-service and eGov-URL-shortener

Functionalities:

1.Creation:

The /_create API is used to create an application for the license in the system. Whenever an application is created a application number is generated and assigned to the application for future reference.

2.Search

The /_search

...

This API is used to search the applications in the system based on various search parameters like mobile number, application number,status etc.

...

3.Updation:

The /_update API is used to update the application information or to forward the application from one state to another.

...

Following are the properties in application.properties file in trade license service which are configurable.

...

Property

Value

Remarks

egov.idgen.tl.applicationNum.format

PB-TL-[cy:yyyy-MM-dd]-[SEQ_EG_TL_APL]

The format of the application number

egov.idgen.tl.licensenumber.format

PB-TL-[cy:yyyy-MM-dd]-[SEQ_EG_PT_LN]

The format of the license number

egov.tl.max.limit

100

Max number of records to be returned

citizen.allowed.search.params

tenantId,applicationNumber,limit,offset,licenseNumbers

The search parameters on which citizen can search

employee.allowed.search.params

tenantId,applicationNumber,applicationType,status,mobileNumber,fromDate,toDate,licenseNumbers,oldLicenseNumber,limit,offset

The search parameters on which employee can search

persister.save.tradelicense.topic

save-tl-tradelicense

The name of kafka topic on which create request are published

persister.update.tradelicense.topic

update-tl-tradelicense

The name of kafka topic on which update request are published

persister.update.tradelicense.workflow.topic

update-tl-workflow

The name of kafka topic on which status update request are published

...

renewal.pending.interval

86400000

The interval (in milliseconds) before which we should be able to renew the license after expiration

egov.applicationcount.period

12

The interval (in months) till which application count is required

egov.application.validity

1

The validity(in years) of a trade license.

Postman Collection: https://www.getpostman.com/collections/99f98723c45f97024831

...

Web Sequence Diagram:

...

Workflow Configuration:

...

The workflow is similar to a state-machine comprising of various states and machines. The next state in the workflow is a function if the current state and the action. There are 3 business services in trade license NewTL, EDITRENEWAL, DIRECTRENEWAL. Each of these business services has a workflow associated to it. The following is an example of the NewTL workflow.

Code Block
{
  "ResponseInfo": {
    "tenantIdapiId": "pbRainmaker",
      
     "businessServicever": "NewTL.01",
       "ts": 1513579888683,
    "businessresMsgId": "tl-servicesuief87324",
       
    "businessServiceSlamsgId": 172800000"20170310130900|en_IN",
    "status": "successful"
   },
  "statesBusinessServices": [
    {
        "tenantId": "pb.amritsar",
  {    "uuid": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
        "businessService": "NewTL",
      "tenantIdbusiness": "pbtl-services",
      "businessServiceSla": 172800000,
      "states": [
    "sla": null,   {
          "auditDetails": {
     "state": null,      "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
             "applicationStatuslastModifiedBy": null,"33fcada3-984b-4906-a528-7336e3f03af1",
            "createdTime": 1554799584412,
            "docUploadRequiredlastModifiedTime": false,1631013999749
          },
          "isStartStateuuid": true"dfb54936-8e33-40c1-8fb7-2b78f835e1ba",
          "tenantId": "pb.amritsar",
          "isTerminateStatebusinessServiceId": false"dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": null,
          "isStateUpdatablestate": truenull,
          "applicationStatus": null,
          "actionsdocUploadRequired": [false,
          "isStartState": true,
          "isTerminateState": false,
{                  "isStateUpdatable": true,
          "tenantIdactions": "pb",[
             {
              "actionauditDetails": "INITIATE",{
                     "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
      "roles": [         "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
    "CITIZEN",            "lastModifiedTime": 1631013999749
              },
    "TL_CEMP"          "uuid": "c658b2b9-8d8c-4ce6-a63d-a924edc3d57d",
              "tenantId": "pb.amritsar",
 ]             "currentState": "dfb54936-8e33-40c1-8fb7-2b78f835e1ba",
          }    "action": "INITIATE",
               ]"nextState": "4d4fbfb7-8b47-43bd-b235-d4dcb90ac6c1",
              "roles": [
  },              "CITIZEN",
   {             "TL_CEMP"
       "tenantId": "pb",      ],
              "slaactive": true
 null,           }
         "state": "INITIATED", ]
        },
        {
  "applicationStatus": "INITIATED",       "auditDetails": {
            "docUploadRequiredcreatedBy": false"f6b0e1cf-5764-4570-9a95-5051d41ef468",
            "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
      "isStartState": true,        "createdTime": 1554799584412,
            "isTerminateStatelastModifiedTime": false,1631013999749
          },
          "isStateUpdatableuuid": true,"4d4fbfb7-8b47-43bd-b235-d4dcb90ac6c1",
          "tenantId": "pb.amritsar",
          "actionsbusinessServiceId": ["dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": null,
          "state": "INITIATED",
{                  "applicationStatus": "INITIATED",
          "tenantIddocUploadRequired": "pb"false,
               "isStartState": true,
            "actionisTerminateState": "INITIATE"false,
            "isStateUpdatable": true,
               "rolesactions": [
                 {
              "CITIZENauditDetails",: {
                  "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "TL_CEMPlastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
         ]          "lastModifiedTime": 1631013999749
              },
              "uuid": "0acfc6ab-029f-4ed6-aabe-3c3e551a9ff8",
        {              "tenantId": "pb.amritsar",
              "tenantIdcurrentState": "pb4d4fbfb7-8b47-43bd-b235-d4dcb90ac6c1",
              "action": "APPLY",
              "actionnextState": "APPLY0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
              "roles": [
            "roles": [   "CITIZEN",
                "TL_CEMP"
            "CITIZEN",  ],
              "active": true
            },
 "TL_CEMP"           {
              "auditDetails": {
 ]               "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
        }        "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
           ]     "createdTime": 1554799584412,
          },      "lastModifiedTime": 1631013999749
         {      },
              "tenantIduuid": "pbd499ff8f-9c7b-4526-9203-c61e847573ed",
     
              "slatenantId": null"pb.amritsar",
                    "state": "APPLIED",
 "currentState": "4d4fbfb7-8b47-43bd-b235-d4dcb90ac6c1",
                  "applicationStatusaction": "APPLIEDINITIATE",
     
              "docUploadRequirednextState": false,
 "4d4fbfb7-8b47-43bd-b235-d4dcb90ac6c1",
                  "isStartStateroles": false,[
                "CITIZEN",
   "isTerminateState": false,            "TL_CEMP"
        "isStateUpdatable": true,      ],
              "actionsactive": [true
            }
          ]
{        },
         {
          "tenantIdauditDetails": "pb",{
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
              "action"lastModifiedBy": "FORWARD33fcada3-984b-4906-a528-7336e3f03af1",
              "createdTime": 1554799584412,
             "roleslastModifiedTime": 1631013999749
[          },
          "uuid": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
          "TL_DOC_VERIFIERtenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": null,
   ]       "state": "APPLIED",
          "applicationStatus": "APPLIED",
    },      "docUploadRequired": false,
          "isStartState": false,
     {     "isTerminateState": false,
          "isStateUpdatable": true,
          "tenantIdactions": "pb",[
            {
               "actionauditDetails": "REJECT", {
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "roleslastModifiedBy": ["33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
                "TL_DOC_VERIFIERlastModifiedTime": 1631013999749
              },
            ]  "uuid": "ae513e6b-6c32-4f56-92b9-2ad4fd9291aa",
              "tenantId": "pb.amritsar",
     }         "currentState": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
          ]
    "action": "FORWARD",
               },"nextState": "fb207155-367e-4da3-9340-2ccfed531fa5",
              "roles": [
   {             "TL_DOC_VERIFIER"
       "tenantId": "pb",      ],
              "slaactive": null,true
            },
       "state": "REJECTED",    {
                "applicationStatusauditDetails": "REJECTED",
 {
                  "docUploadRequiredcreatedBy": false"746412f0-93cc-4da2-8aff-33301aad92fc",
                    "isStartStatelastModifiedBy": false"33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1626351117905,
   "isTerminateState": true,            "lastModifiedTime": 1631013999749
       "isStateUpdatable": false,      },
              "actionsuuid": null"e7ab7368-eb1e-4861-8fb5-bf044964adf2",
                }"tenantId": "pb.amritsar",
                {
"currentState": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
                   "tenantIdaction": "pbSENDBACKTOCITIZEN",
              "nextState": "c4a30c94-9a18-4f9f-888f-d78f601579d3",
    "sla": 86400000,         "roles": [
          "state": "FIELDINSPECTION",     "TL_DOC_VERIFIER"
               "applicationStatus": "FIELDINSPECTION",
      ],
              "docUploadRequiredactive": false,true
            },
       "isStartState": false,      {
              "isTerminateStateauditDetails": false,{
                    "isStateUpdatablecreatedBy": true,
"f6b0e1cf-5764-4570-9a95-5051d41ef468",
                   "actionslastModifiedBy": ["33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
      {          "lastModifiedTime": 1631013999749
                 "tenantId": "pb",},
              "uuid": "c7790280-1d26-4cb1-9e47-240a781806e6",
              "actiontenantId": "SENDBACKTOCITIZENpb.amritsar",
              "currentState": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
              "rolesaction": ["REJECT",
              "nextState": "9be5a925-7a05-4067-8c7d-3d712296f163",
              "roles": [
  "TL_FIELD_INSPECTOR"              "TL_DOC_VERIFIER"
              ],
              "active": true
            },
          ]
        },
    {    {
          "auditDetails": {
            "tenantIdcreatedBy": "pbf6b0e1cf-5764-4570-9a95-5051d41ef468",
              "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
             "actioncreatedTime": "REJECT"1554799584412,
            "lastModifiedTime": 1631013999749
          },
          "rolesuuid": ["9be5a925-7a05-4067-8c7d-3d712296f163",
          "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "TL_FIELD_INSPECTOR"sla": null,
          "state": "REJECTED",
          "applicationStatus": "REJECTED",
     ]     "docUploadRequired": false,
          "isStartState": false,
      },    "isTerminateState": true,
          "isStateUpdatable": false,
       {   "actions": null
        },
        {
      "tenantId":    "pbauditDetails",: {
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
             "actionlastModifiedBy": "SENDBACK33fcada3-984b-4906-a528-7336e3f03af1",
               "createdTime": 1554799584412,
            "roleslastModifiedTime": [1631013999749
          },
          "uuid": "fb207155-367e-4da3-9340-2ccfed531fa5",
          "TL_FIELD_INSPECTORtenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": 86400000,
   ]       "state": "FIELDINSPECTION",
          "applicationStatus": "FIELDINSPECTION",
    },      "docUploadRequired": false,
          "isStartState": false,
     {     "isTerminateState": false,
          "isStateUpdatable": true,
          "tenantIdactions": "pb",[
            {
               "actionauditDetails": "FORWARD",{
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
          "roles": [     "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
        "TL_FIELD_INSPECTOR"        "lastModifiedTime": 1631013999749
              },
    ]          "uuid": "761ca6c4-5980-4548-a85e-88343125fd1a",
             } "tenantId": "pb.amritsar",
              "currentState": "fb207155-367e-4da3-9340-2ccfed531fa5",
  ]            "action": "SENDBACK",
   },           "nextState": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
    {          "roles": [
         "tenantId": "pb",      "TL_FIELD_INSPECTOR"
              "sla": 43200000],
                    "state"active": "PENDINGAPPROVAL",true
            },
       "applicationStatus": "PENDINGAPPROVAL",      {
              "docUploadRequiredauditDetails": false,{
                    "isStartStatecreatedBy": false,
   "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "isTerminateStatelastModifiedBy": false,
   "33fcada3-984b-4906-a528-7336e3f03af1",
                "isStateUpdatablecreatedTime": false1554799584412,
                    "actionslastModifiedTime": [1631013999749
              },
         {         "uuid": "21a89337-a1c0-4b22-879b-4a25ac30f52b",
                   "tenantId": "pb.amritsar",
              "currentState": "fb207155-367e-4da3-9340-2ccfed531fa5",
              "action": "APPROVEFORWARD",
              "nextState": "92cb64ed-6d27-49d1-800e-2a79c46240e6",
              "roles": [
                "TL_FIELD_INSPECTOR"
              ],
"TL_APPROVER"              "active": true
            },
  ]          {
              },
"auditDetails": {
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
     {           "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "tenantIdcreatedTime": "pb",
           1577343048587,
                "actionlastModifiedTime": "SENDBACK",1631013999749
              },
              "rolesuuid": ["824971b4-ec99-4bde-95ed-f8635434d3b0",
                 "tenantId": "pb.amritsar",
              "TL_APPROVERcurrentState"
 : "fb207155-367e-4da3-9340-2ccfed531fa5",
              "action": "SENDBACKTOCITIZEN",
            ]  "nextState": "c4a30c94-9a18-4f9f-888f-d78f601579d3",
              "roles": [
     },           "TL_FIELD_INSPECTOR"
             { ],
              "active": true
           "tenantId": "pb" },
            {
               "actionauditDetails": "REJECT", {
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "roleslastModifiedBy": [ "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
                "TL_APPROVERlastModifiedTime": 1631013999749
              },
            ]  "uuid": "259bb7df-21ea-4a19-8f5d-b00dc3eae9b4",
              "tenantId": "pb.amritsar",
     }         "currentState": "fb207155-367e-4da3-9340-2ccfed531fa5",
          ]    "action": "REJECT",
           },   "nextState": "9be5a925-7a05-4067-8c7d-3d712296f163",
            {  "roles": [
                 "tenantIdTL_FIELD_INSPECTOR":
"pb",              ],
      "sla": 43200000,       "active": true
            "state": "PENDINGPAYMENT",}
          ]
          "applicationStatus": "PENDINGPAYMENT"},
        {
           "docUploadRequiredauditDetails": false,
  {
                 "isStartStatecreatedBy": false,
       "f6b0e1cf-5764-4570-9a95-5051d41ef468",
            "isTerminateStatelastModifiedBy": false,
   "33fcada3-984b-4906-a528-7336e3f03af1",
                "isStateUpdatablecreatedTime": false,
      1554799584412,
             "actionslastModifiedTime": [1631013999749
          },
          "uuid": "92cb64ed-6d27-49d1-800e-2a79c46240e6",
 {         "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "tenantIdsla": "pb"null,
                 "state": "PENDINGAPPROVAL",
          "actionapplicationStatus": "ADHOCPENDINGAPPROVAL",
                 "docUploadRequired": false,
          "rolesisStartState": false,
[          "isTerminateState": false,
          "isStateUpdatable": false,
          "TL_CEMPactions": [
            {
              ]"auditDetails": {
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
     },           "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            {       "createdTime": 1554799584412,
                     "tenantIdlastModifiedTime": 1631013999749
"pb",              },
              "actionuuid": "PAYd51c5a43-3046-4f8b-8764-ea3fb262aab0",
              "tenantId": "pb.amritsar",
              "rolescurrentState": ["92cb64ed-6d27-49d1-800e-2a79c46240e6",
              "action": "APPROVE",
              "nextState":  "CITIZEN"154d6f0d-e849-4ccd-ae5b-a599e264fdd9",
              "roles": [
                "TL_CEMPAPPROVER",
                 ],
              "SYSTEM_PAYMENTactive": true
            },
            {
 ]             "auditDetails": {
          }        "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
            ]    "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
           },     "createdTime": 1554799584412,
          {      "lastModifiedTime": 1631013999749
             "tenantId": "pb",
   },
                 "slauuid": null,
     "59a11357-b5ca-42ef-bc84-8373135c8ad9",
              "statetenantId": "APPROVEDpb.amritsar",

                   "applicationStatuscurrentState": "APPROVED92cb64ed-6d27-49d1-800e-2a79c46240e6",
     
              "docUploadRequiredaction": false"REJECT",

                   "isStartStatenextState": false"9be5a925-7a05-4067-8c7d-3d712296f163",
              "roles": [
    "isTerminateState": false,           "TL_APPROVER"
         "isStateUpdatable": false,      ],
              "actionsactive": [true
            },
            {
              "auditDetails": {
                "tenantIdcreatedBy": "pb",
           f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "actionlastModifiedBy": "CANCEL",
       33fcada3-984b-4906-a528-7336e3f03af1",
                    "rolescreatedTime": [1554799584412,
                "lastModifiedTime": 1631013999749
              "TL_APPROVER"},
                "uuid": "d15afbcd-496d-485e-bce2-783af0c91564",
           ]   "tenantId": "pb.amritsar",
              "currentState": "92cb64ed-6d27-49d1-800e-2a79c46240e6",
    },          "action": "SENDBACK",
             { "nextState": "fb207155-367e-4da3-9340-2ccfed531fa5",
              "roles":  [
         "tenantId": "pb",      "TL_APPROVER"
              ],
       "action": "EXPIRE",      "active": true
             }
       "roles": [  ]
        },
          {
          "SYSTEMauditDetails": {
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
             ]"lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            "createdTime": 1554799584412,
          }  "lastModifiedTime": 1631013999749
          },
      ]    "uuid": "154d6f0d-e849-4ccd-ae5b-a599e264fdd9",
           }"tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
    {      "sla": 43200000,
             "tenantIdstate": "pbPENDINGPAYMENT",
          "applicationStatus": "PENDINGPAYMENT",
          "sladocUploadRequired": nullfalse,
           "isStartState": false,
          "stateisTerminateState": "CANCELLED"false,
          "isStateUpdatable": false,
          "applicationStatusactions": "CANCELLED", [
            {
          "docUploadRequired": false,   "auditDetails": {
                "isStartStatecreatedBy": false,
   "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "isTerminateStatelastModifiedBy": true,
   "33fcada3-984b-4906-a528-7336e3f03af1",
                "isStateUpdatablecreatedTime": false1554799584412,
 
                  "actionslastModifiedTime": null
 1631013999749
              },
                {"uuid": "93860493-75f2-45f0-ae70-fe64b66b5bf3",
                    "tenantId": "pb.amritsar",
                    "sla"currentState": null,
 "154d6f0d-e849-4ccd-ae5b-a599e264fdd9",
                  "stateaction": "CITIZENACTIONREQUIREDADHOC",
     
              "applicationStatusnextState": "CITIZENACTIONREQUIRED154d6f0d-e849-4ccd-ae5b-a599e264fdd9",
              "roles": [
    "docUploadRequired": false,           "TL_CEMP"
         "isStartState": false,    ],
                "isTerminateStateactive": false,true
            },
       "isStateUpdatable": true,      {
              "actionsauditDetails": [{
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
      {             "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "tenantIdcreatedTime": "pb"1554799584412,
                "lastModifiedTime": 1631013999749
            "action": "RESUBMIT",  },
              "uuid": "066dbe57-0544-49b5-99ff-8a41db47fe4e",
              "rolestenantId": ["pb.amritsar",
              "currentState": "154d6f0d-e849-4ccd-ae5b-a599e264fdd9",
               "action": "TL_CEMPPAY",
              "nextState": "100b4f89-4919-4707-869c-27cdae233510",
            ]  "roles": [
                "CITIZEN",
    },            "TL_CEMP",
            {    "SYSTEM_PAYMENT"
              ],
         "tenantId": "pb",     "active": true
            }
         "action": "FORWARD", ]
        },
        {
          "rolesauditDetails": [{
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                  "CITIZEN"lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
               "TL_CEMP"
"lastModifiedTime": 1631013999749
          },
          "uuid": "100b4f89-4919-4707-869c-27cdae233510",
    ]      "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
      }    "sla": null,
          "state": "APPROVED",
   ]       "applicationStatus": "APPROVED",
        },  "docUploadRequired": false,
          "isStartState": false,
 {         "isTerminateState": false,
          "tenantIdisStateUpdatable": "pb"false,
              "actions": [
     "sla": null,      {
              "stateauditDetails": "EXPIRED",
   {
                "applicationStatuscreatedBy": "EXPIRED33fcada3-984b-4906-a528-7336e3f03af1",
   
                "docUploadRequired": false,
 lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1631013999749,
                "lastModifiedTime": 1631013999749
              },
              "isStartStateuuid": false,"34fdc858-0de7-458e-878e-de0687fd288d",
              "tenantId": "pb.amritsar",
              "isTerminateStatecurrentState": true,
                    "isStateUpdatable": false,
                    "actions": null
                }
            ]
        }
    ]"100b4f89-4919-4707-869c-27cdae233510",
              "action": "MANUALEXPIRE",
              "nextState": "46b6b561-8865-4430-8d87-125241959d44",
              "roles": [
                "TL_APPROVER"
              ],
              "active": true
            },
            {
              "auditDetails": {
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1582783848282,
                "lastModifiedTime": 1631013999749
              },
              "uuid": "9dc96dec-c765-4c4a-9117-0eda51464032",
              "tenantId": "pb.amritsar",
              "currentState": "100b4f89-4919-4707-869c-27cdae233510",
              "action": "EXPIRE",
              "nextState": "eca7b42f-098b-492c-bcae-d0172eea87ac",
              "roles": [
                "SYSTEM"
              ],
              "active": true
            },
            {
              "auditDetails": {
                "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
                "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1554799584412,
                "lastModifiedTime": 1631013999749
              },
              "uuid": "dc9db8fe-7d88-4f58-a936-ea9eed0f9cc8",
              "tenantId": "pb.amritsar",
              "currentState": "100b4f89-4919-4707-869c-27cdae233510",
              "action": "CANCEL",
              "nextState": "d2a67ae6-115c-47a0-90a9-06e1681838fd",
              "roles": [
                "TL_APPROVER"
              ],
              "active": true
            }
          ]
        },
        {
          "auditDetails": {
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
            "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            "createdTime": 1554799584412,
            "lastModifiedTime": 1631013999749
          },
          "uuid": "d2a67ae6-115c-47a0-90a9-06e1681838fd",
          "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": null,
          "state": "CANCELLED",
          "applicationStatus": "CANCELLED",
          "docUploadRequired": false,
          "isStartState": false,
          "isTerminateState": true,
          "isStateUpdatable": false,
          "actions": null
        },
        {
          "auditDetails": {
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
            "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            "createdTime": 1577343048587,
            "lastModifiedTime": 1631013999749
          },
          "uuid": "c4a30c94-9a18-4f9f-888f-d78f601579d3",
          "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": 10000,
          "state": "CITIZENACTIONREQUIRED",
          "applicationStatus": "CITIZENACTIONREQUIRED",
          "docUploadRequired": false,
          "isStartState": false,
          "isTerminateState": false,
          "isStateUpdatable": true,
          "actions": [
            {
              "auditDetails": {
                "createdBy": "746412f0-93cc-4da2-8aff-33301aad92fc",
                "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1626351791203,
                "lastModifiedTime": 1631013999749
              },
              "uuid": "22631b2f-cd9c-4c12-871e-fae3b5c70a78",
              "tenantId": "pb.amritsar",
              "currentState": "c4a30c94-9a18-4f9f-888f-d78f601579d3",
              "action": "FORWARD",
              "nextState": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
              "roles": [
                "CITIZEN",
                "TL_CEMP"
              ],
              "active": true
            },
            {
              "auditDetails": {
                "createdBy": "746412f0-93cc-4da2-8aff-33301aad92fc",
                "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
                "createdTime": 1626351791203,
                "lastModifiedTime": 1631013999749
              },
              "uuid": "1daf3475-2b3a-4515-8438-e5ca54159b5e",
              "tenantId": "pb.amritsar",
              "currentState": "c4a30c94-9a18-4f9f-888f-d78f601579d3",
              "action": "RESUBMIT",
              "nextState": "0ce1cd2e-1d9f-4f69-83db-cb94953d97de",
              "roles": [
                "TL_CEMP",
                "CITIZEN"
              ],
              "active": true
            }
          ]
        },
        {
          "auditDetails": {
            "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
            "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            "createdTime": 1582783848282,
            "lastModifiedTime": 1631013999749
          },
          "uuid": "eca7b42f-098b-492c-bcae-d0172eea87ac",
          "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": null,
          "state": "EXPIRED",
          "applicationStatus": "EXPIRED",
          "docUploadRequired": false,
          "isStartState": false,
          "isTerminateState": true,
          "isStateUpdatable": false,
          "actions": null
        },
        {
          "auditDetails": {
            "createdBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
            "createdTime": 1631013999749,
            "lastModifiedTime": 1631013999749
          },
          "uuid": "46b6b561-8865-4430-8d87-125241959d44",
          "tenantId": "pb.amritsar",
          "businessServiceId": "dcbab4f5-613b-4a4e-b242-3909e602c20f",
          "sla": null,
          "state": "MANUALEXPIRED",
          "applicationStatus": "MANUALEXPIRED",
          "docUploadRequired": false,
          "isStartState": false,
          "isTerminateState": true,
          "isStateUpdatable": false,
          "actions": null
        }
      ],
      "auditDetails": {
        "createdBy": "f6b0e1cf-5764-4570-9a95-5051d41ef468",
        "lastModifiedBy": "33fcada3-984b-4906-a528-7336e3f03af1",
        "createdTime": 1554799584412,
        "lastModifiedTime": 1631013999749
      }
    }
  ]
}

Persister file:

The following is the link to the persister file for the Trade License service
https://github.com/egovernments/DIGIT-Dev/blob/master/municipal-services/tl-services/src/main/resources/tradelicense.yml

External API URLs

Kafka Topics:

persister.save.tradelicense.topic=save-tl-tradelicense

persister.update.tradelicense.topic=update-tl-tradelicense

persister.update.tradelicense.workflow.topic=update-tl-workflow

persister.update.tradelicense.adhoc.topic=update-tl-adhoc-tradelicense

kafka.topics.receipt.create=egov.collection.payment-create

kafka.topics.notification.sms=egov.core.notification.sms

kafka.topics.notification.email=egov.core.notification.email

egov.usr.events.create.topic=persist-user-events-async

egov.tl.batch.reminder.error.topic=tl-batch-reminder-error-topic

egov.tl.batch.expire.error.topic=tl-batch-expire-error-topic

ID Gen Configs:

egov.idgen.path=egov-idgen/id/_generate

egov.idgen.tl.applicationNum.name=tl.aplnumber

egov.idgen.tl.applicationNum.format=PB-TL-[cy:yyyy-MM-dd]-[SEQ_EG_TL_APL]

egov.idgen.tl.licensenumber.name=tl.licensenumber

egov.idgen.tl.licensenumber.format=PB-TL-[cy:yyyy-MM-dd]-[SEQ_EG_PT_LN]

egov.idgen.bpareg.applicationNum.name=bpareg.aplnumber

egov.idgen.bpareg.applicationNum.format=PB-SK-[cy:yyyy-MM-dd]-[SEQ_EG_TL_APL]

egov.idgen.bpareg.licensenumber.name=bpareg.licensenumber

egov.idgen.bpareg.licensenumber.format=PB-SK-[cy:yyyy-MM-dd]-[SEQ_EG_PT_LN]

Search parameter configs:

citizen.allowed.search.params=tenantId,applicationNumber,limit,offset,licenseNumbers,mobileNumber,status,fromDate,toDate,applicationType

employee.allowed.search.params=tenantId,applicationNumber,applicationType,status,mobileNumber,fromDate,toDate,licenseNumbers,oldLicenseNumber,limit,offset

MDMS Data:

The MDMS data for the trade license module is saved in the following directory:
https://github.com/egovernments/egov-mdms-data/tree/UAT/data/pg/TradeLicense

The following is an example of ReminderPeriods.json file in mdms. This file configures reminder period(in milliseconds) for each tenant.

Code Block
{
    "tenantId": "pg.citya",
    "moduleName": "TradeLicense",
    "ReminderPeriods": [
      {
        "tenantId": "pg.citya",
        "reminderInterval": 12345
      },
      {
        "tenantId": "pg.cityb",
        "reminderInterval": 12345
      },
      {
        "tenantId": "pg.cityc",
        "reminderInterval": 12345  
      }
    ]
  }

Search Response:

The following is the sample search response when the search API of trade license services is hit.

Code Block
{
    "ResponseInfo": {
        "apiId": "Rainmaker",
        "ver": null,
        "ts": null,
        "resMsgId": "uief87324",
        "msgId": "1652949470097|en_IN",
        "status": "successful"
    },
    "Licenses": [
        {
            "comment": null,
            "id": "f805bc01-63ee-4897-a1cc-153b4cd5599f",
            "tenantId": "pb.amritsar",
            "businessService": "TL",
            "licenseType": "PERMANENT",
            "applicationType": "NEW",
            "workflowCode": "NewTL",
            "licenseNumber": "PB-TL-2022-04-21-002375",
            "applicationNumber": "PB-TL-2022-04-21-024662",
            "oldLicenseNumber": null,
            "propertyId": null,
            "oldPropertyId": null,
            "accountId": "22cc711c-b6a0-4dc1-8a2b-b99f8ead333e",
            "tradeName": "BusinessName",
            "applicationDate": 1650517445996,
            "commencementDate": 1686700800000,
            "issuedDate": 1650519301691,
            "financialYear": "2022-23",
            "validFrom": 1648751400000,
            "validTo": 1680287399000,
            "action": "PAY",
            "assignee": null,
            "wfDocuments": null,
            "status": "APPROVED",
            "tradeLicenseDetail": {
                "id": "74e375f8-a617-4e20-89f8-7604bc686083",
                "surveyNo": null,
                "subOwnerShipCategory": "INDIVIDUAL.MULTIPLEOWNERS",
                "structureType": "IMMOVABLE.PUCCA",
                "operationalArea": null,
                "noOfEmployees": null,
                "adhocExemption": null,
                "adhocPenalty": null,
                "adhocExemptionReason": null,
                "adhocPenaltyReason": null,
                "owners": [
                    {
                        "id": 48574,
                        "uuid": "944ca11e-aace-4451-b0b6-8fce1dc83a17",
                        "userName": "b30258d2-0a0d-4665-b25c-160bb318acd5",
                        "password": null,
                        "salutation": null,
                        "name": "TOwnerName",
                        "gender": "MALE",
                        "mobileNumber": "9222222222",
                        "emailId": null,
                        "altContactNumber": null,
                        "pan": null,
                        "aadhaarNumber": null,
                        "permanentAddress": "HouseNo 576, StreetName, Ajit Nagar - Area1, Amritsar, ",
                        "permanentCity": null,
                        "permanentPinCode": null,
                        "correspondenceCity": null,
                        "correspondencePinCode": null,
                        "correspondenceAddress": null,
                        "active": true,
                        "dob": null,
                        "pwdExpiryDate": 1658293446000,
                        "locale": null,
                        "type": "CITIZEN",
                        "signature": null,
                        "accountLocked": false,
                        "roles": [
                            {
                                "id": null,
                                "name": "Citizen",
                                "code": "CITIZEN",
                                "tenantId": "pb"
                            }
                        ],
                        "fatherOrHusbandName": "TGuardianName",
                        "bloodGroup": null,
                        "identificationMark": null,
                        "photo": null,
                        "createdBy": "15195",
                        "createdDate": 1650517446000,
                        "lastModifiedBy": "12032",
                        "lastModifiedDate": 1650519062000,
                        "otpReference": null,
                        "tenantId": "pb",
                        "isPrimaryOwner": null,
                        "ownerShipPercentage": null,
                        "ownerType": null,
                        "institutionId": null,
                        "documents": null,
                        "userActive": true,
                        "relationship": "FATHER"
                    }
                ],
                "channel": "CITIZEN",
                "address": {
                    "id": "a7aa5ed9-3dc4-4cb1-9a05-1cff079f7326",
                    "tenantId": "pb.amritsar",
                    "doorNo": "HouseNo 576",
                    "latitude": null,
                    "longitude": null,
                    "addressId": null,
                    "addressNumber": null,
                    "type": null,
                    "addressLine1": null,
                    "addressLine2": null,
                    "landmark": null,
                    "city": null,
                    "pincode": null,
                    "detail": null,
                    "buildingName": null,
                    "street": "StreetName",
                    "locality": {
                        "code": "SUN04",
                        "name": "Ajit Nagar - Area1",
                        "label": "Locality",
                        "latitude": null,
                        "longitude": null,
                        "children": [],
                        "materializedPath": null
                    }
                },
                "tradeUnits": [
                    {
                        "id": "042d9980-ee7a-4aa9-8f64-0ee2b8d4e4d0",
                        "tenantId": "pb.amritsar",
                        "active": true,
                        "tradeType": "GOODS.RETAIL.TST-118",
                        "uom": null,
                        "uomValue": null,
                        "auditDetails": null
                    }
                ],
                "accessories": [
                    {
                        "id": "a70998e7-0517-4c21-9756-1d89dd0fb37b",
                        "tenantId": "pb.amritsar",
                        "active": true,
                        "accessoryCategory": "ACC-1",
                        "uom": "HP",
                        "uomValue": "2",
                        "count": 5,
                        "auditDetails": null
                    }
                ],
                "applicationDocuments": [
                    {
                        "id": "1aa010d6-d347-4ff6-99ff-247518cc940f",
                        "active": true,
                        "tenantId": "pb.amritsar",
                        "documentType": "OWNERIDPROOF",
                        "fileStoreId": "4ba78876-3501-4328-825f-ca9258879e8b",
                        "documentUid": null,
                        "auditDetails": null
                    },
                    {
                        "id": "12ea690d-72fa-4cf8-869c-3a55680f589b",
                        "active": true,
                        "tenantId": "pb.amritsar",
                        "documentType": "OWNERSHIPPROOF",
                        "fileStoreId": "fee95769-ee6d-4b0d-adba-365581c80294",
                        "documentUid": null,
                        "auditDetails": null
                    }
                ],
                "verificationDocuments": null,
                "additionalDetail": {
                    "propertyId": "PB-PT-2022-04-20-027963"
                },
                "institution": null,
                "auditDetails": {
                    "createdBy": "22cc711c-b6a0-4dc1-8a2b-b99f8ead333e",
                    "lastModifiedBy": "4dc1010d-4b31-4b31-a596-cec2986ac04c",
                    "createdTime": 1650517445996,
                    "lastModifiedTime": 1650517445996
                }
            },
            "calculation": null,
            "auditDetails": {
                "createdBy": "22cc711c-b6a0-4dc1-8a2b-b99f8ead333e",
                "lastModifiedBy": "4dc1010d-4b31-4b31-a596-cec2986ac04c",
                "createdTime": 1650517445996,
                "lastModifiedTime": 1650519061850
            },
            "fileStoreId": "1934c8d1-3cfc-4853-848f-8c6bd720fb18"
        }
    ],
    "Count": 1,
    "applicationsIssued": 4006,
    "applicationsRenewed": 547,
    "applicationValidity": 1
}
  • Licenses : This is a list of the licenses in the database according to the search criteria defined.

  • Count : Total count of the licenses in the database which match the defined search criteria.

  • applicationsIssued : Total applications created in the respective tenant in the last 30 days.

  • applicationsRenewed : Total renewal applications in the respective tenant in the last 30 days.

Localization Messages:

The following is the curl for retrieving the localization messages.

Code Block
curl --location --request POST 'https://qa.digit.org/localization/messages/v1/_search?locale=en_IN&module=rainmaker-tl&tenantId=pb' \
--header 'Content-Type: application/json' \
--data-raw '{
 "RequestInfo": {
   "apiId": "Rainmaker",
   "ver": ".01",
   "ts": "",
   "action": "_create",
   "did": "1",
   "key": "",
   "msgId": "20170310130900|en_IN"
 }
}'