The service tree contains free-form domain data relating to the service instance. This data along with the service transaction properties make up the service instance data. Unlike the domainTree domain data, the service tree data is not copied across to new service instances

The service tree is where you put data that you don’t want to impact the long-living registry data. In other words data that is only relevant to this service instance.

The service tree has a ServiceInstance domain as its root and whilst this can contain free-form domain data – so any number of attributes and child domains (or even grandchild, great-grandchild, etc. domains) – similar to the properties there are some generic, top-level attributes that are populated for most service transactions. The example below illustrates these properties:

JSON Service Tree Representation

serviceTree" : {
    "_id" : "131cf0c762f608c4",
    "name" : "ServiceInstance",
    "attributes" : {
      "ServiceCode" : "heroRegister",
      "ServiceMode" : "Create",
      "FormCode" : "heroRegister",
      "CreatedDate" : "2020-05-20T17:34:32.653+0000",
      "CreatedByRequestId" : "975f368444eb9af9b57cb9fb78e1206c",
      "CreatedByUser" : "1a87b82c3129bfb9b30944c9182f45efc22b097b09a1b6789a7099fb8512d63c",
      "CreatedByUserName" : "External User",
      "LastUpdatedDate" : "2020-05-20T17:35:19.217+0000",
      "LastUpdatedByRequestId" : "05ef3d1bb26574fa32188b2563b27b59",
      "LastUpdatedByUser" : "1a87b82c3129bfb9b30944c9182f45efc22b097b09a1b6789a7099fb8512d63c",
      "LastUpdatedByUserName" : "External User",
      "Locale" : "en_NZ",
      "TimeZone" : "Pacific/Auckland",
      "IndIdentifier" : "1a87b82c3129bfb9b30944c9182f45efc22b097b09a1b6789a7099fb8512d63c",
      "SessionId" : "aa990dcbd08f4ee19ae8353fe41d81fd",
      "IpAddress" : "127.0.0.1",
      "SecurityToken" : "1e6041bfb3d76761a95790a593487e8c",
      "UserAgent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
    }
  },
0
0

Jump to Section