We are creating a vRealize Orchestrator plugin for Storage automation.
Our plugin is based on the Model-driven archetype and vRO SDK 7.x. In our Model, we have defined objects like Volume and VolumeOpResult. Volume has a Finder defined while VolumeOpResult does not have a finder. In essence Volume is a Type, while VolumeOpResult is just a Scripting class. The VolumeOpResult has a property which returns a Volume.
We have a workflow GetVolume, which makes a call to the plugin method which returns a VolumeOpResult. We get the Volume object from the property of the VolumeOpResult and when we try to output the sane Volume object as an out param in the workflow we are getting the following error:
[2017-04-20 14:27:21.275] [E] Workflow:GetVolume / Scriptable task (item1) : ch.dunes.model.type.ConvertorException: Unable to convert object, 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]' plugin exception reason : convertToResult() --> Finder 'Storage:Volume' : unexpected error 'ch.dunes.model.sdk.SDKFinderException: convertToResult() --> Finder 'Storage:Volume' id 'getInternalId()' is null for the Finder object 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]''
[2017-04-20 14:27:21.307] [E] Workfow execution stack:
***
item: 'GetVolume/item1', state: 'failed', business state: 'null', exception: 'Unable to convert object, 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]' plugin exception reason : convertToResult() --> Finder 'Storage:Volume' : unexpected error 'ch.dunes.model.sdk.SDKFinderException: convertToResult() --> Finder 'Storage:Volume' id 'getInternalId()' is null for the Finder object 'Volume_Wrapper[_target=com.storage.model.Volume@47842112]'''
workflow: 'compo' (ecd93d26-180b-482b-9abf-6b1365e3a2b0)
| 'attribute': name=vol type=Storage:Volume value=null
| 'input': name=volName type=string value=NP.7
| 'input': name=connection type=Storage:Connection value=dunes://service.dunes.ch/CustomSDKObject?id='gQcDdjyISAiDNKY3r6anFw'&dunesName='Storage:Connection'
| 'no outputs'
--workflow: 'GetVolume' (9bafe882-ce1d-41ae-80ed-465620bd8718)
| 'attribute': name=vol type=Storage:Volume value=__NULL__
| 'input': name=volName type=string value=NP.7
| 'input': name=connection type=Storage:Connection value=dunes://service.dunes.ch/CustomSDKObject?id='gQcDdjyISAiDNKY3r6anFw'&dunesName='Storage:Connection'
| 'output': name=outVol type=Storage:Volume value=null
*** End of execution stack.
Any suggestions on how to resolve the above error. Thank you in advance.