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
List all the pods using the command below.
kubectl get pods -n egov
Locate the egov-user-xxxx pod in the list and copy the pod name
Port forward the user pod.
kubectl port-forward <egov-user-xxxxxx> -n egov
This will port forward the user pod to the local system and all APIs are accessible via localhost.
Call the user createnovalidate API and create a user with MDMS_ADMIN, EMPLOYEE roles
//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}}" }
}'
Call the user create API and create a user with WORKFLOW_ADMIN, EMPLOYEE roles.
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}}" }
}'
Call the user create API and create a user with LOC_ADMIN, EMPLOYEE roles
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}}" }
}'
Call the user create API and create a user with HRMS_ADMIN, EMPLOYEE roles
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
Download the localisation Excel sheet from here. This contains the base localisation.
Download the localisation script (python) from here.
Create a Python virtual environment and activate it.
Run the localisation script and follow the input prompts.
python update_localization_in_all_env.py
Type in the
https://{{domain name}}/digit-ui/employee
in the browser to see the login page. All labels should be localised.
Pass on the relevant credentials (HRMS_ADMIN, MDMS_ADMIN, WORKFLOW_ADMIN) to the system configurer.
Creating Employees
Log into the system as HRMS_ADMIN
To assign the proper roles to each persona, please refer to this persona to roles mapping document.
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 workflows for all modules. To edit the workflows, please use the workflow update API. Please use the API playground to 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.
Last updated