Hiya Craig!!
I trust all is well with you. At first pass on this I am thinking "you can't do a grandparent relationship call." That is, from the workorder it is not possible to get the child of the child, specifically the meter info from the asset on the workorder in your case. Then I see the locoper reference to Failure code you site. Ah! yes, that is a difference though in that you are on the resource locoper and you are simply getting the failure code as defined on the operating location. It is only two levels not three.
In your modified workOrder details resource on the mapping side you are including a reference to the ASSETMETER object (which is fine from the OSLC side!) However in the Anywhere resource framework you cannot have a grandchild reference directly on the top level. The JSON resources do not support the grandchild reference structure. So you need the referenceResource attribute in the XML to link the grandchild. Since the AssetMeter belongs to the Asset and you reference the Asset on your custom object then you need the additonalAsset resource to then bring in the Asset information.
I am curious however why the current architecture is insufficient for you. The Asset and the Meterreadings objects and their resources are all in the WorkExecution app already, are you storing something else on your custom object? Also the custom object you are trying to link it directly to the workorder byut it appears it really belongs to the Asset. What is the relationship to the workorder for the TRJOBPLANMETERS object? Are you storing many meter readings for each asset on every workorder? How does that work when you have multiple assets on the workorder (i.e. multiassetlocci)?
------------------------------
Bradley K. Downing , MBA
IBM Certified Adv. Deployment Prof. Maximo v7.6.1
IBM
------------------------------
Original Message:
Sent: Fri May 07, 2021 02:17 AM
From: Craig Kokay
Subject: Complex resource attribute not showning in Maximo Anywhere
------------------------------
===============================
Craig Kokay,
Lead Senior Maximo/IoT Consultant
ISW
Sydney, NSW, Australia
Ph: 0411-682-040
=================================
#IBMChampion2021
------------------------------
#MaximoAnywhere
#AssetandFacilitiesManagement
#Maximo