Skip to content

Commit

Permalink
tl-inbox indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
palak-egov authored Dec 16, 2024
1 parent 5f5c671 commit 9585f40
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions egov-indexer/tl-inbox-indexer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
ServiceMaps:
serviceName: tl-Event indexer
version: 1.0.0
mappings:
- topic: inbox-tl-events
configKey: INDEX
indexes:
- name: tl-inbox
type: _doc
id: $.id, $.tenantId
jsonPath: $.tl
timeStampField: $.auditDetails.createdTime
isBulk: false
customJsonMapping:
indexMapping: { "Data": { "id": "","tenantId": "", "applicationNo": "","applicationStatus": "","status": "","possibleServiceDate": "","mobileNumber": "","@timestamp": "timestamp","auditDetails": {},"locality": "","currentProcessInstance": {}}}
fieldMapping:
- inJsonPath: $.processInstance
outJsonPath: $.Data.currentProcessInstance
- inJsonPath: $.id
outJsonPath: $.Data.id
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.applicationNo
outJsonPath: $.Data.applicationNo
- inJsonPath: $.applicationStatus
outJsonPath: $.Data.applicationStatus
- inJsonPath: $.status
outJsonPath: $.Data.status
- inJsonPath: $.possibleServiceDate
outJsonPath: $.Data.possibleServiceDate
- inJsonPath: $.citizen.mobileNumber
outJsonPath: $.Data.mobileNumber
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.address.locality.code
outJsonPath: $.Data.locality

- topic: inbox-tl-events-legacyindex
configKey: LEGACYINDEX
indexes:
- name: tl-inbox
type: _doc
id: $.id, $.tenantId
jsonPath: $.tl.*
timeStampField: $.auditDetails.createdTime
isBulk: true
customJsonMapping:
indexMapping: { "Data": { "id": "","tenantId": "", "applicationNo": "","applicationStatus": "","status": "","possibleServiceDate": "","mobileNumber": "","@timestamp": "timestamp","auditDetails": {},"locality": "","currentProcessInstance": {}}}
fieldMapping:
- inJsonPath: $.id
outJsonPath: $.Data.id
- inJsonPath: $.tenantId
outJsonPath: $.Data.tenantId
- inJsonPath: $.applicationNo
outJsonPath: $.Data.applicationNo
- inJsonPath: $.applicationStatus
outJsonPath: $.Data.applicationStatus
- inJsonPath: $.status
outJsonPath: $.Data.status
- inJsonPath: $.possibleServiceDate
outJsonPath: $.Data.possibleServiceDate
- inJsonPath: $.citizen.mobileNumber
outJsonPath: $.Data.mobileNumber
- inJsonPath: $.@timestamp
outJsonPath: $.Data.@timestamp
- inJsonPath: $.auditDetails
outJsonPath: $.Data.auditDetails
- inJsonPath: $.address.locality.code
outJsonPath: $.Data.locality
externalUriMapping:
- path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search
queryParam: businessIds=$.applicationNo,history=true,tenantId=$.tenantId
apiRequest: {"RequestInfo":{"apiId":"org.egov.pt","ver":"1.0","ts":1502890899493,"action":"asd","did":"4354648646","key":"xyz","msgId":"654654","requesterId":"61","authToken":"d9994555-7656-4a67-ab3a-a952a0d4dfc8","userInfo":{"id":1,"uuid":"1fec8102-0e02-4d0a-b283-cd80d5dab067","type":"EMPLOYEE","tenantId":"pg.citya","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pg.citya"}]}}}
uriResponseMapping:
- inJsonPath: $.ProcessInstances[0]
outJsonPath: $.Data.currentProcessInstance

0 comments on commit 9585f40

Please sign in to comment.