Open APIs

 View Only
  • 1.  TMF640 service state for service

    TM Forum Member
    Posted May 03, 2020 04:21
    Hi, 

    i trying to expose on the TMF640 to expose API for consumer to subscribe to VAS content. 
    Understand that the serviceState is referring to the state of the service whereby for my case, the mobile service should be ACTIVE by the time of VAS subscription. 
    As i exposing the service as async, how do i return the state of the service (in-progress) while the VAS is process of activation when the service is being query (GET)
    Assuming that the activation might take a while. 

    {
    	"id": "6580008000",
    	"requestId": "1116a666-6761-41fe-ab7c-ea4624b8fe15",
    	"category": "mobile",
    	"serviceType": "video-on-demand",
    	"serviceDate": "2020-05-26T12:10:29.100+0000",
    	"startDate": "2020-05-26T12:10:34.100+0000",	
    	"serviceCharacteristic": [
    		{
    			"name": "service-partner",
    			"value": "abc"
    		},
    		{
    			"name": "subscription-period",
    			"value": "30"
    		}
    	]
    }


    ------------------------------
    Chio Chuan Ooi
    SingTel Optus
    ------------------------------


  • 2.  RE: TMF640 service state for service

    TM Forum Member
    Posted May 04, 2020 07:44
    Hello Chio Chua,

    Probably this is related to another conversation in this board :)

    Because it might take a while and probably it could not everytime succeed I will prefer (if I have to manage this UC) to use the monitor pattern. This will allow to distinguish the service and service state from the request & request state.  The POST (or PATCH depending of your UC) will answer with an accepted request and a monitor resource creation. Delivery progress could be follow thru the monitor and monitor allows also to keep track of the request.

    Hope it helps

    Ludovic

    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------