Versions Compared

Key

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

...

API contract: https://raw.githubusercontent.com/egovernments/egov-services/master/docs/rainmaker/trade-license/tl-service.yml

Web Sequence Diagram:

...

Workflow Configuration:

Code Block
"BusinessServices": [
        {
            "tenantId": "pb",
            "businessService": "NewTL",
            "business": "tl-services",
            "businessServiceSla": 172800000,
            "states": [
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": null,
                    "applicationStatus": null,
                    "docUploadRequired": false,
                    "isStartState": true,
                    "isTerminateState": false,
                    "isStateUpdatable": true,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "INITIATE",
                            "roles": [
                                "CITIZEN",
                                "TL_CEMP"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "INITIATED",
                    "applicationStatus": "INITIATED",
                    "docUploadRequired": false,
                    "isStartState": true,
                    "isTerminateState": false,
                    "isStateUpdatable": true,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "INITIATE",
                            "roles": [
                                "CITIZEN",
                                "TL_CEMP"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "APPLY",
                            "roles": [
                                "CITIZEN",
                                "TL_CEMP"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "APPLIED",
                    "applicationStatus": "APPLIED",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": false,
                    "isStateUpdatable": true,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "FORWARD",
                            "roles": [
                                "TL_DOC_VERIFIER"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "REJECT",
                            "roles": [
                                "TL_DOC_VERIFIER"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "REJECTED",
                    "applicationStatus": "REJECTED",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": true,
                    "isStateUpdatable": false,
                    "actions": null
                },
                {
                    "tenantId": "pb",
                    "sla": 86400000,
                    "state": "FIELDINSPECTION",
                    "applicationStatus": "FIELDINSPECTION",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": false,
                    "isStateUpdatable": true,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "SENDBACKTOCITIZEN",
                            "roles": [
                                "TL_FIELD_INSPECTOR"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "REJECT",
                            "roles": [
                                "TL_FIELD_INSPECTOR"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "SENDBACK",
                            "roles": [
                                "TL_FIELD_INSPECTOR"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "FORWARD",
                            "roles": [
                                "TL_FIELD_INSPECTOR"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": 43200000,
                    "state": "PENDINGAPPROVAL",
                    "applicationStatus": "PENDINGAPPROVAL",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": false,
                    "isStateUpdatable": false,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "APPROVE",
                            "roles": [
                                "TL_APPROVER"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "SENDBACK",
                            "roles": [
                                "TL_APPROVER"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "REJECT",
                            "roles": [
                                "TL_APPROVER"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": 43200000,
                    "state": "PENDINGPAYMENT",
                    "applicationStatus": "PENDINGPAYMENT",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": false,
                    "isStateUpdatable": false,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "ADHOC",
                            "roles": [
                                "TL_CEMP"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "PAY",
                            "roles": [
                                "CITIZEN",
                                "TL_CEMP",
                                "SYSTEM_PAYMENT"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "APPROVED",
                    "applicationStatus": "APPROVED",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": false,
                    "isStateUpdatable": false,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "CANCEL",
                            "roles": [
                                "TL_APPROVER"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "EXPIRE",
                            "roles": [
                                "SYSTEM"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "CANCELLED",
                    "applicationStatus": "CANCELLED",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": true,
                    "isStateUpdatable": false,
                    "actions": null
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "CITIZENACTIONREQUIRED",
                    "applicationStatus": "CITIZENACTIONREQUIRED",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": false,
                    "isStateUpdatable": true,
                    "actions": [
                        {
                            "tenantId": "pb",
                            "action": "RESUBMIT",
                            "roles": [
                                "TL_CEMP"
                            ]
                        },
                        {
                            "tenantId": "pb",
                            "action": "FORWARD",
                            "roles": [
                                "CITIZEN",
                                "TL_CEMP"
                            ]
                        }
                    ]
                },
                {
                    "tenantId": "pb",
                    "sla": null,
                    "state": "EXPIRED",
                    "applicationStatus": "EXPIRED",
                    "docUploadRequired": false,
                    "isStartState": false,
                    "isTerminateState": true,
                    "isStateUpdatable": false,
                    "actions": null
                }
            ]
        }
    ]