Functional Configuration

Configuration of the DRISTI platform

The installation scripts provision default workflows & master data as part of the installation. This section documents the steps to configure the system post-installation.

Pre-requisites

  • Ensure you have access to the kubeconfig file. Copy it to the .kube directory in your system (the actual location differs from Windows to Mac. Please look at Kubernetes documentation for more information on this). Try running the below command to ensure you have access to the cluster.

    • kubectl config get-contexts

This command should return a list of clusters and namespaces the user can access.

  • Ensure you have the tenantId. This is the logical tenant that's set up during installation.

  • Ensure Python is installed locally and a virtual environment is created.

  • Install Postman.

Configuration Steps

Create Users

  1. List all the pods using the command below.

    1. kubectl get pods -n egov

    2. Locate the egov-user-xxxx pod in the list and copy the pod name

  2. Port forward the user pod.

    1. kubectl port-forward <egov-user-xxxxxx> -n egov

    2. This will port forward the user pod to the local system and all APIs are accessible via localhost.

  3. Call the user createnovalidate API and create a user with MDMS_ADMIN, EMPLOYEE roles

    1. //Replace the values within the curly braces

    curl --location 'http://localhost:8287/user/users/_createnovalidate' --header 'Content-Type: application/json' --data '{ "requestInfo": { "apiId": "Rainmaker", "ver": ".01", "ts": null, "action": "_create", "did": "1", "key": "", "msgId": "20170310130900|en_IN" }, "user": { "userName": "{{user display name}}", "name": "{{username}}", "gender": "Female", "mobileNumber": "{{mobile number}}", "type": "EMPLOYEE", "active": true, "password": "{{password}}", "tenantId": "{{tenantId}}", "roles": [ { "code": "EMPLOYEE", "name": "Employee", "tenantId": "{{tenantId}}" }, { "code": "MDMS_ADMIN", "name": "Mdms Admin", "tenantId": "{{tenantId}}" }

        ]
    }

    }'

  4. Call the user create API and create a user with WORKFLOW_ADMIN, EMPLOYEE roles.

    1. curl --location 'http://localhost:8287/user/users/_createnovalidate' --header 'Content-Type: application/json' --data '{ "requestInfo": { "apiId": "Rainmaker", "ver": ".01", "ts": null, "action": "_create", "did": "1", "key": "", "msgId": "20170310130900|en_IN" }, "user": { "userName": "{{user display name}}", "name": "{{username}}", "gender": "Female", "mobileNumber": "{{mobile number}}", "type": "EMPLOYEE", "active": true, "password": "{{password}}", "tenantId": "{{tenantId}}", "roles": [ { "code": "EMPLOYEE", "name": "Employee", "tenantId": "{{tenantId}}" }, { "code": "WORKFLOW_ADMIN", "name": "Workflow Admin", "tenantId": "{{tenantId}}" }

          ]
      }

      }'

  5. Call the user create API and create a user with LOC_ADMIN, EMPLOYEE roles

    1. curl --location 'http://localhost:8287/user/users/_createnovalidate' --header 'Content-Type: application/json' --data '{ "requestInfo": { "apiId": "Rainmaker", "ver": ".01", "ts": null, "action": "_create", "did": "1", "key": "", "msgId": "20170310130900|en_IN" }, "user": { "userName": "{{user display name}}", "name": "{{username}}", "gender": "Female", "mobileNumber": "{{mobile number}}", "type": "EMPLOYEE", "active": true, "password": "{{password}}", "tenantId": "{{tenantId}}", "roles": [ { "code": "EMPLOYEE", "name": "Employee", "tenantId": "{{tenantId}}" }, { "code": "LOC_ADMIN", "name": "Localisation Admin", "tenantId": "{{tenantId}}" }

          ]
      }

      }'

  6. Call the user create API and create a user with HRMS_ADMIN, EMPLOYEE roles

    1. curl --location 'http://localhost:8287/user/users/_createnovalidate' --header 'Content-Type: application/json' --data '{ "requestInfo": { "apiId": "Rainmaker", "ver": ".01", "ts": null, "action": "_create", "did": "1", "key": "", "msgId": "20170310130900|en_IN" }, "user": { "userName": "{{user display name}}", "name": "{{username}}", "gender": "Female", "mobileNumber": "{{mobile number}}", "type": "EMPLOYEE", "active": true, "password": "{{password}}", "tenantId": "{{tenantId}}", "roles": [ { "code": "EMPLOYEE", "name": "Employee", "tenantId": "{{tenantId}}" }, { "code": "HRMS_ADMIN", "name": "HRMS Admin", "tenantId": "{{tenantId}}" }

          ]
      }

      }'

Setup Localisation

  1. Download the localisation Excel sheet from herearrow-up-right. This contains the base localisation.

  2. Download the localisation script (python) from herearrow-up-right.

  3. Create a Python virtual environment and activate it.

  4. Run the localisation script and follow the input prompts.

    1. python update_localization_in_all_env.py

    2. Type in the https://{{domain name}}/digit-ui/employee in the browser to see the login page. All labels should be localised.

  5. Pass on the relevant credentials (HRMS_ADMIN, MDMS_ADMIN, WORKFLOW_ADMIN) to the system configurer.

Creating Employees

  1. Log into the system as HRMS_ADMIN

  2. To assign the proper roles to each persona, please refer to this persona to roles mapping document.

  3. Create Judge & other court staff via HRMS ensuring the appropriate roles are given to each user as per documentation.

Editing workflows

System has been configured with default workflowsarrow-up-right for all modules. To edit the workflows, please use the workflow update APIarrow-up-right. Please use the API playground arrow-up-rightto try this out.

Adding/editing master data

Default master data has been configured for the DRISTI platform. These will require to be changed depending on the implementation. Log in as MDMS_ADMIN to the workbench URL to create new master data schemas or edit existing master data.

https://{{url}}/workbench-ui/employee/arrow-up-right

Last updated