Message Consumed from Source Notification Stream | Message To and From Oracle Utilities Customer Care and Billing | Message Published to Target Stream |
---|---|---|
{ "accountId": "123456789", "notificationType": "OUTAGE", "messageId": "111", "origin": "NMS", "notificationTemplate": "", "data": [ { "key": "REASON", "value": "STORM" }, { “key”: "ERT", "value": "12-10-2021T10:00AM" } ] } | Input: { "C1AccNtfPref": { "accounts": [ { "sequence": "10", "accountId": "123456789", "notificationType": " OUTAGE" } ] } } Output: { "C1AccNtfPref": { "accounts": [ { "sequence": "10", "accountId": "123456789", "notificationType": "OUTAGE", "notificationInstanceId":"00000000001", "cisDivision": "OH", "notificationPreferences": [ { “notificationPreferenceId”: "18384304332111", "customerContactId":"", "subscriptionOrPush":"", "isOptOutAllowed":"", "isCustomerContactRequired":"", "deliveryType": "EMAIL", "personContact": { "personId": "PerId123", "contactId": "Cont111", "language": "ENG", "firstName": "ABC Business”, "lastName": "", "contactValue": "abcbus@email.com", "template": "OUTEMAIL" } }, { "notificationPreferenceId": "18586367394027","customerContactId":"", "subscriptionOrPush":"", "isOptOutAllowed":"", "isCustomerContactRequired":"", "deliveryType": "SMS", "personContact": { "personId": "PerId123", "contactId": "Cont333", "language": "ENG", "firstName": "Ben", "lastName": "Baker", "contactValue": "19734445678", "template": "OUTSMS" } } ] } ] } } | Two messages are published in this sample. Message 1 { "messageId": "45303230363835333838363231373738 ", "origin": "NMS", "accountId": "123456789", "notificationType": "OUTAGE", "cisDivision": "OH", "contactId": "Cont111", "personId": "PerId123", "language": "ENG", "firstName": "ABC Business", "lastName": "", "deliveryChannel": "EMAIL", "deliveryValue": "abcbusemail.com", "notificationTemplate": "OUTEMAIL", "deliveryInstance": "RESP1", "CCId":"1234567890", "notifPreferenceId":"04878213560769", "optOutAllowed":"Yes", "custContactNeeded":"Yes", "subscriptionType":"Subscription", "notifEventInstanceId":"00000000001", "sourceMessageId":"111", "data": [ { "key": "REASON", "value": "STORM" }, { "key": "ERT", "value": "12-10-2021T10:00AM" } ] } Message 2 { "messageId":"570303230363835333838363231373738 ", "origin": "NMS", "accountId": "123456789", "notificationType": "OUTAGE", "cisDivision": "OH", "contactId": "Cont333", "personId": "PerId123", "language": "ENG", "firstName": "Ben", "lastName": "Banter", "deliveryChannel": "SMS", "deliveryValue": "19734445678", "notificationTemplate": "OUTSMS", "deliveryInstance": "RESP1", "CCId":"", |
"notifPreferenceId":"18586367394027", "optOutAllowed":"", "custContactNeeded":"", "subscriptionType":"", "notifEventInstanceId":"00000000001", "sourceMessageId":"111", "data": [ { “key”: "REASON", "value": "STORM" }, { "key": "ERT", "value": "12-10-2021T10:00AM" } ] } |
CCB Outbound Message | Message Published to TargetNotificationStream |
---|---|
{ "sendDetail": { "accountId": "4128974892", "cisDivision": "CA", "notificationType": "BILLDUE", "notificationInstanceId":"00000000001", "syncRequestId": null, "timezone" :"USEstern", "deliveryInfo": [ { "deliveryType": "SMS", "contactValue": "10000000000", "templateName": "BILLDUE-SMS", "dndStartTime": "", "dndEndTime": "", "firstName": "John", "lastName": "Doe", "language": "ENG", "personId": "9251189340", "contactId": "9252198992", "overrrideDND": "", "notificationPreferenceId": "04878213560769", "customerContactId":"1234567890", "subscriptionOrPush":"C1SU", "isOptOutAllowed":"true", "isCustomerContactRequired":"true" } ], “templateParm”: [ { “key”: "AMOUNT_DUE", "value": "6080.05" }, { "key": "BILL_DT", "value": "2022-01-01" }, { "key": "BILL_DUE_DATE", "value": "2022-01-17" }, { "key": "BILL_ID", "value": "412219634128" }, { "key": "CURRENCY_CODE", "value": "USD" }, { "key": "CURRENCY_SYMBOL", "value": "$" }, { "key": "MAIN_ACCOUNT_ADDRESS", "value": " Street, San Francisco, CA,94104, USA, Single family home,6206198576" }, { "key": "SERVICE_ADDRESS", "value": " Street, San Francisco, CA,94104, USA, Single family home,6206198576" } ] } } | { "messageId": "35303230363835333838363231373738 "null, "origin": "CCB", "accountId": "4128974892", "notificationType": "BILLDUE", "cisDivision": "CA", "contactId": "9252198992", "personId": "9251189340", "language": "ENG", "firstName": "John", "lastName": "Doe", "deliveryChannel": "SMS", "deliveryValue": "10000000000", "notificationTemplate": "BILLDUE-SMS", "deliveryInstance": "RESP1", "CCId":"1234567890", "notifPreferenceId":"04878213560769", "optOutAllowed":"Yes", "custContactNeeded":"Yes", "subscriptionType":"Subscription", "notifEventInstanceId":"00000000001", "sourceMessageId":"", "timezone":"EST" "eventCapturedDTTM":"15-07-2022 19:29:59" "data": [ { "key": "AMOUNT_DUE", "value": "6080.05" }, { "key": "BILL_DT", "value": "2022-01-01" }, { "key": "BILL_DUE_DATE", "value": "2022-01-17" }, { "key": "BILL_ID", "value": "412219634128" }, { "key": "CURRENCY_CODE", "value": "USD" }, { "key": "CURRENCY_SYMBOL", "value": "$" }, { "key": "MAIN_ACCOUNT_ADDRESS", "value": " Street, San Francisco, CA, 94104, USA, Single family home, 6206198576" }, { "key": "SERVICE_ADDRESS", "value": " Street, San Francisco, CA, 94104, USA, Single family home, 6206198576" } ] } |
NMS Notification Message (XML) | SourceNotificationStream (JSON) |
---|---|
<MYC_SPECIFIC_CUST_UNPLANNED_OUTAGE> <CNTROLAREA> . . . </CNTROLAREA> <DATAAREA> <POST_SRSOUTPUT> <CAUSE> </CAUSE> <CREWETA>0</CREWETA> <OUTAGETIME>1646767718</OUTAGETIME> <ESTRESTTIME>1646772518</ESTRESTTIME <COMPLETIONTIME>1646767814</COMPLETIONTIME> <CUSTOMERSOUT>1</CUSTOMERSOUT> <FEEDER>2414</FEEDER> <PARTITION>1043</PARTITION> <NUMB>113253</NUMB> <RULESET>omstest_1</RULESET> <DEVICEIDX>2139</DEVICEIDX> <DEVICEAPP>0</DEVICEAPP> <DEVICELOCATION/> <DEVICEALIAS/> <DEVICECLASSNAME/> <DESCRIPTION/> <TROUBLECODE/> <TROUBLEQUEUE/> <STATUS>NEW</STATUS> <OPERATORCOMMENT/> <TAGS>N</TAGS> <ESTSOURCE>I</ESTSOURCE> <EXTERNALID/> <CREWID/> <CREWETASTR/> <OUTAGETIMESTR/> <FIRSTINCTIME/> <FIRSTINCTIMESTR/> <ESTRESTTIMESTR/> <COMPLETIONTIMESTR/> <SRSCONDSTATUS>1</> <CONDPHASES>1</CONDPHASES> <USERCUSTOUT>1</USERCUSTOUT> <SRSPRIORITY>0</SRSPRIORITY> <CUSTCALL>1</CUSTCALL> <CUSTOMERNAME/> <ADDRBUILDING/> <ADDRSTREET/> <ADDRCITY/> <CUSTOMERPHONE/> <XREF>2272097.105982</XREF> <YREF>482359.865069</YREF> <DISPADDRESS/> <GROUPTYPE/> <DEVCLSNAME>Overhead Transformer</DEVCLSNAME> <EMERGENCY> </EMERGENCY> <INCIDENTTYPE>OUT</> </POST_SRSOUTPUT> <PARAMTRIGGERCODE>2</> <PARAMPLANNED>N</PARAMPLANNED> <PARAMVIOLATIONLIST> . . . </PARAMVIOLATIONLIST> <AFFECTEDCUSTOMERLIST> <AFFECTEDCUSTOMER> <CUSTOMERACCOUNT>7596864630</CUSTOMERACCOUNT> <CUSTOMERNAME>Hoffman,David</CUSTOMERNAME> <CUSTOMERADDRESS>10469 Newbury Ave NW, Uniontown, OH 44685</CUSTOMERADDRESS> </AFFECTEDCUSTOMER> </AFFECTEDCUSTOMERLIST> <PICKLIST> <ABN_FLAG/> <ACTION_TEXT/> <ADV_ENVIRON_OM>Unselected</ADV_ENVIRON_OM>> <ADV_WEATHER_OM>Unselected</ADV_WEATHER_OM> <BREAKER_TEXT/> <CAUSE_OM>Unselected</CAUSE_OM> <CLEAR_FLAG>Y</CLEAR_FLAG> <CONTROL_ZONE_TEXT>OPAL Stark Lake Lake Sub 2414</CONTROL_ZONE_TEXT> | { "accountId": "6386568150", "notificationType": "ZZ-UOUT", "messageId": "2088", "origin": "NMS", "notificationTemplate": "", "data": [ { "key": "CUSTOMERADDRESS1", "value": "10375 Newbury Ave NW,Uniontown, OH 44685" }, { "key": "CAUSE", "value": "TROUBLE_CALL" }, { "key": "CREWETA", "value": "0" }, { "key": "OUTAGETIME", "value": "1646921959" }, { "key": "ESTRESTTIME", "value": "1646926759" }, { "key": "COMPLETIONTIME", "value": "-1" }, { "key": "CUSTOMERSOUT", "value": "1" } ] } |
<CUST_CALL/> <DEF_EQUIP_OM>Unselected</> <DEVICE_TEXT>T10606</DEVICE_TEXT> <DISTRICT_TEXT/> <DIVISION_TEXT/> <DTR_TEXT/> <EMERG_SW_ORDER_TEXT/> <EST_OUT_OM/> <EXCEPTION_FLAG/> <FAILURE_OM>Unknown</FAILURE_OM> <FEEDER_TEXT/> <FOREIGN_INTERF_OM>Unselected</FOREIGN_INTERF_OM> <HUMAN_ELEM_OM>Unselected</HUMAN_ELEM_OM> <INTERRUPT_DEV_OM>Unselected</INTERRUPT_DEV_OM> <LAST_UPDATE_TIME>03/08/2022 13:30:15</LAST_UPDATE_TIME> <NO_DTR_FLAG>N</NO_DTR_FLAG> <OFFICE_TEXT/> <OTHER_CAUSE_OM>Unselected</OTHER_CAUSE_OM> <PRIMARY_CAUSE_OM>Defective Equipment</PRIMARY_CAUSE_OM> <READ_BY_DATAMART/> <REF_ID>1022</REF_ID> <REMEDY_OM>Component Replaced</REMEDY_OM> <REVISION>3</REVISION> <SCHEDULED_DEV_OM>Unselected</SCHEDULED_DEV_OM> <SYSTEM_OM>Unselected</SYSTEM_OM> <TRANS_TEXT/> <TYPE_OM>Unselected</TYPE_OM> <UPDATE_USER>nms7</UPDATE_USER> <VEGETATION_OM>Unselected</VEGETATION_OM> </PICKLIST> <NOTIFICATIONLIST> . . . </NOTIFICATIONLIST> </DATAAREA> </MYC_SPECIFIC_CUST_UNPLANNED_OUTAGE> |
Message Received from CCB API Call (C1-TemplateBasedNotifTypes) |
---|
{{ "notificationTypes": { "notificationType": [ { "notificationType": "BILL_DUE_TMPL", "notificationPushSub": "C1SU", "isCustomerContactRequired": false, "overrideDoNotDisturb": false, "hasOverrideDelivery": false, "descriptions": { "description": [ { "description": "Bill Due (Template Based)", "language": "ARA" }, { "description": "Bill Due (Template Based)", "language": "ENG" }, { "description": "Bill Due (Template Based)", "language": "ESA" }, { "description": "Bill Due (Template Based)", "language": "FRA" }, { "description": "Bill Due (Template Based)", "language": "POL" }, { "description": "Bill Due (Template Based)", "language": "ZHS" } ] }, "deliveryTypes": { "deliveryType": [ { "deliveryType": "EMAI", "isDefaultEnabled": false, "templateNames": { "templateName": [ { "language": "ENG", "templateName": "Bill Due - Email" } ] } }, { "deliveryType": "SMS", "isDefaultEnabled": false, "templateNames": { "templateName": [ { "language": "ENG", "templateName": "Bill Due - SMS" } ] } } ] } }, ] } } |