Hello Vishal
In fact...both UC can be managed. See examples based on Trouble Ticket but logic is the same.
If you POST a Hub with following:
POST {api_url}/HUB
Accept: application/json
{"callback": http://in.listener.com,
"query":"eventType = TicketStateChangeNotification"
}
You'll received notification for
all trouble ticket when TT state change.
If you do:
Accept: application/json
{"callback": http://in.listener.com,
"query":"eventType = TroubleTicketStateChangeNotification"&troubleTicket.id=452-45k
}
You're subscribing only to TT state change for TT #452-45k.
In my experience the first case is more often use... subscribing for one instance is for very specific UC (never saw implemented on my experience).
But restricting the query is nevertheless vey useful:
Accept: application/json
{"callback": http://in.listener.com,
"query":"eventType = TroubleTicketStateChangeNotification"&troubleTicket.Status=COMPLETED
}
Here I just want to receive notification when TT are completed.
hope it helps,
Ludovic
------------------------------
Ludovic Robert
Orange
My answer are my own & don't represent necessarily my company or the TMF
------------------------------
Original Message:
Sent: May 19, 2020 07:06
From: Vishal Thakur
Subject: Async Message handling
Hi Folks
I am currently working on implementing a solution for handling asynchronous notifications for ServiceOrder resources, and was going through the TMG guidelines laid out in TMF630 Part 1. I've got a question that I would like to clarify or learn from anyone who has implemented similar solution in their organization.
Does the listener need to subscribe on a per resource basis or specifically for every instance of a resource that its interested in? For ex. If I have a ServiceOrderA and ServiceOrderB resources, both inheriting their properties from the parent resource class ServiceOrder, then can I just subscribe for ServiceOrder resource, and I will be notified of all the events happening on ServiceOrderA & ServiceOrderB sub-resources, or do I need to subscribe for them individually?
Appreciate your thoughts.
Kind Regards
------------------------------
Vishal Thakur
BT Group plc
------------------------------