Versions Compared

Key

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

...

Code Block
breakoutModewide
ServiceMaps:
 serviceName: Sewerage Service - rainmaker
 version: 1.0.0
 mappings:
  - topic: save-sw-connection
    configKey: INDEX
    indexes:
      - name: sewerage-services
        type: general
        id: $.id,$.property.tenantId
        timeStampField: $.additionalDetailsauditDetails.appCreatedDatecreatedTime
        jsonPath: $.SewerageConnection
        customJsonMapping:
          indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"ownersmobileNos":[],"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","applicationType":"","dateEffectiveFrom":"","history":{}}}
          fieldMapping:
          - inJsonPath: $.applicationStatus.state
            outJsonPath: $.Data.workflow.state
          - inJsonPath: $.processInstance.action
            outJsonPath: $.Data.workflow.action
          - inJsonPath: $.processInstance.assignes.*.uuid
            outJsonPath: $.Data.workflow.assignes
          - inJsonPath: $.property.owners.*.mobileNumberapplicationNo
            outJsonPath: $.Data.applicationNo
          - inJsonPath: $.applicationStatus
            outJsonPath: $.Data.ownersmobileNosapplicationStatus
          - inJsonPath: $.applicationNostatus
            outJsonPath: $.Data.applicationNostatus
          - inJsonPath: $.applicationStatusconnectionNo
            outJsonPath: $.Data.applicationStatusconnectionNo
          - inJsonPath: $.statusoldConnectionNo
            outJsonPath: $.Data.statusoldConnectionNo
          - inJsonPath: $.connectionNoplumberInfo
            outJsonPath: $.Data.connectionNoplumberInfo
          - inJsonPath: $.oldConnectionNoroadCuttingInfo
            outJsonPath: $.Data.oldConnectionNoroadCuttingInfo  
          - inJsonPath: $.plumberInfoconnectionHolders
            outJsonPath: $.Data.plumberInfoconnectionHolders
          - inJsonPath: $.roadType
            outJsonPath: $.Data.roadType
          - inJsonPath: $.roadCuttingArea
            outJsonPath: $.Data.roadCuttingArea
          - inJsonPath: $.connectionExecutionDate
            outJsonPath: $.Data.connectionExecutionDate
          - inJsonPath: $.connectionCategory
            outJsonPath: $.Data.connectionCategory
          - inJsonPath: $.connectionType
            outJsonPath: $.Data.connectionType
          - inJsonPath: $.additionalDetails
            outJsonPath: $.Data.additionalDetails
          - inJsonPath: $.id
            outJsonPath: $.Data.id
          - inJsonPath: $.property.propertyId
            outJsonPath: $.Data.propertyId
          - inJsonPath: $.property.tenantId
            outJsonPath: $.Data.tenantId
          - inJsonPath: $.proposedWaterClosets
            outJsonPath: $.Data.proposedWaterClosets
          - inJsonPath: $.proposedToilets
            outJsonPath: $.Data.proposedToilets
          - inJsonPath: $.noOfWaterClosets
            outJsonPath: $.Data.noOfWaterClosets
          - inJsonPath: $.noOfToilets
            outJsonPath: $.Data.noOfToilets
          - externalUriMappinginJsonPath: $.applicationType
          -  pathoutJsonPath: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search$.Data.applicationType
          - inJsonPath: $.dateEffectiveFrom
            outJsonPath: $.Data.dateEffectiveFrom
          externalUriMapping:
          - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search
            queryParam: businessIds=$.applicationNo,history=true,tenantId=$.property.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":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}}
            uriResponseMapping:
            - inJsonPath: $.ProcessInstances
              outJsonPath: $.Data.history

  - topic: update-sw-connection
    configKey: INDEX
    indexes:
      - name: sewerage-services
        type: general
        id: $.id,$.property.tenantId
        timeStampField: $.additionalDetailsauditDetails.appCreatedDatelastModifiedTime
        jsonPath: $.SewerageConnection
        customJsonMapping:
          indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"ownersmobileNos":[],"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","applicationType":"","dateEffectiveFrom":"","history":{}}}
          fieldMapping:
          - inJsonPath: $.applicationStatus.state.state
            outJsonPath: $.Data.workflow.state
          - inJsonPath: $.processInstance.action
            outJsonPath: $.Data.workflow.action
          - inJsonPath: $.processInstance.assignes.*.uuid
            outJsonPath: $.Data.workflow.assignes
          - inJsonPath: $.applicationNo
            outJsonPath: $.Data.workflow.stateapplicationNo
          - inJsonPath: $.processInstance.actionapplicationStatus
            outJsonPath: $.Data.workflow.actionapplicationStatus
          - inJsonPath: $.processInstance.assignes.*.uuidstatus
            outJsonPath: $.Data.workflow.assignesstatus
          - inJsonPath: $.property.owners.*.mobileNumberconnectionNo
            outJsonPath: $.Data.ownersmobileNosconnectionNo
          - inJsonPath: $.applicationNooldConnectionNo
            outJsonPath: $.Data.applicationNooldConnectionNo
          - inJsonPath: $.applicationStatusplumberInfo
            outJsonPath: $.Data.applicationStatusplumberInfo
          - inJsonPath: $.statusroadCuttingInfo
            outJsonPath: $.Data.statusroadCuttingInfo  
          - inJsonPath: $.connectionNoconnectionHolders
            outJsonPath: $.Data.connectionNoconnectionHolders
          - inJsonPath: $.oldConnectionNoroadType
            outJsonPath: $.Data.oldConnectionNoroadType
          - inJsonPath: $.plumberInforoadCuttingArea
            outJsonPath: $.Data.plumberInforoadCuttingArea
          - inJsonPath: $.roadTypeconnectionExecutionDate
            outJsonPath: $.Data.roadTypeconnectionExecutionDate
          - inJsonPath: $.roadCuttingAreaconnectionCategory
            outJsonPath: $.Data.roadCuttingAreaconnectionCategory
          - inJsonPath: $.connectionExecutionDateconnectionType
            outJsonPath: $.Data.connectionExecutionDateconnectionType
          - inJsonPath: $.connectionCategoryadditionalDetails
            outJsonPath: $.Data.connectionCategoryadditionalDetails
          - inJsonPath: $.connectionTypeid
            outJsonPath: $.Data.connectionTypeid
          - inJsonPath: $.additionalDetailspropertyId
            outJsonPath: $.Data.additionalDetailspropertyId
          - inJsonPath: $.idtenantId
            outJsonPath: $.Data.idtenantId
          - inJsonPath: $.property.propertyIdproposedWaterClosets
            outJsonPath: $.Data.propertyIdproposedWaterClosets
          - inJsonPath: $.property.tenantIdproposedToilets
            outJsonPath: $.Data.tenantIdproposedToilets
          - inJsonPath: $.proposedWaterClosetsnoOfWaterClosets
            outJsonPath: $.Data.proposedWaterClosetsnoOfWaterClosets
          - inJsonPath: $.proposedToiletsnoOfToilets
            outJsonPath: $.Data.proposedToiletsnoOfToilets
          - inJsonPath: $.noOfWaterClosetsapplicationType
            outJsonPath: $.Data.noOfWaterClosetsapplicationType
          - inJsonPath: $.noOfToiletsdateEffectiveFrom
            outJsonPath: $.Data.noOfToiletsdateEffectiveFrom
          externalUriMapping:
          - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search
            queryParam: businessIds=$.applicationNo,history=true,tenantId=$.property.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":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}}
            uriResponseMapping:
            - inJsonPath: $.ProcessInstances
              outJsonPath: $.Data.history


  - topic: update-sw-workflow
    configKey: INDEX
    indexes:
      - name: sewerage-services
        type: general
        id: $.id,$.property.tenantId
        timeStampField: $.additionalDetailsauditDetails.appCreatedDatelastModifiedTime
        jsonPath: $.SewerageConnection
        customJsonMapping:
          indexMapping: {"Data":{"workflow": {"state": {}, "action": "", "assignes": []},"ownersmobileNos":[],"applicationNo":"","applicationStatus":"","status":"","connectionNo":"","oldConnectionNo":"","plumberInfo":[],"roadCuttingInfo":[],"connectionHolders":[],"roadType":"","roadCuttingArea":"","connectionExecutionDate":"","connectionCategory":"","connectionType":"","additionalDetails":{},"id":"","propertyId":"","tenantId":"","proposedWaterClosets":"","proposedToilets":"","noOfWaterClosets":"","noOfToilets":"","noOfWaterClosetsapplicationType":"","noOfToiletsdateEffectiveFrom":"","history":{}}}
          fieldMapping:
          - inJsonPath: $.applicationStatus.state
            outJsonPath: $.Data.workflow.state
          - inJsonPath: $.processInstance.action
            outJsonPath: $.Data.workflow.action
          - inJsonPath: $.processInstance.assignes.*.uuid
            outJsonPath: $.Data.workflow.assignes
          - inJsonPath: $.property.owners.*.mobileNumberapplicationNo
            outJsonPath: $.Data.applicationNo
          - inJsonPath: $.applicationStatus
            outJsonPath: $.Data.ownersmobileNosapplicationStatus
          - inJsonPath: $.applicationNostatus
            outJsonPath: $.Data.applicationNostatus
          - inJsonPath: $.applicationStatusconnectionNo
            outJsonPath: $.Data.applicationStatusconnectionNo
          - inJsonPath: $.statusoldConnectionNo
            outJsonPath: $.Data.statusoldConnectionNo
          - inJsonPath: $.connectionNoplumberInfo
            outJsonPath: $.Data.connectionNoplumberInfo
          - inJsonPath: $.oldConnectionNoroadCuttingInfo
            outJsonPath: $.Data.oldConnectionNoroadCuttingInfo  
          - inJsonPath: $.plumberInfoconnectionHolders
            outJsonPath: $.Data.plumberInfoconnectionHolders
          - inJsonPath: $.roadType
            outJsonPath: $.Data.roadType
          - inJsonPath: $.roadCuttingArea
            outJsonPath: $.Data.roadCuttingArea
          - inJsonPath: $.connectionExecutionDate
            outJsonPath: $.Data.connectionExecutionDate
          - inJsonPath: $.connectionCategory
            outJsonPath: $.Data.connectionCategory
          - inJsonPath: $.connectionType
            outJsonPath: $.Data.connectionType
          - inJsonPath: $.additionalDetails
            outJsonPath: $.Data.additionalDetails
          - inJsonPath: $.id
            outJsonPath: $.Data.id
          - inJsonPath: $.property.propertyId
            outJsonPath: $.Data.propertyId
          - inJsonPath: $.property.tenantId
            outJsonPath: $.Data.tenantId
          - inJsonPath: $.proposedWaterClosets
            outJsonPath: $.Data.proposedWaterClosets
          - inJsonPath: $.proposedToilets
            outJsonPath: $.Data.proposedToilets
          - inJsonPath: $.noOfWaterClosets
            outJsonPath: $.Data.noOfWaterClosets
          - inJsonPath: $.noOfToilets
            outJsonPath: $.Data.noOfToilets
          - inJsonPath: $.applicationType
            outJsonPath: $.Data.applicationType
          - inJsonPath: $.dateEffectiveFrom
            outJsonPath: $.Data.dateEffectiveFrom
          externalUriMapping:
          - path: http://egov-workflow-v2.egov:8080/egov-workflow-v2/egov-wf/process/_search
            queryParam: businessIds=$.applicationNo,history=true,tenantId=$.property.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":"pb.amritsar","roles":[{"name":"Employee","code":"EMPLOYEE","tenantId":"pb.amritsar"}]}}}
            uriResponseMapping:
            - inJsonPath: $.ProcessInstances
              outJsonPath: $.Data.history          

Notifications :

To enable or disable notifcation
notification.sms.enabled=true
egov.user.event.notification.enabled=true

...