VMware Cloud Community
bdamian
Expert
Expert

Dynamic Types fake object and vRealize Automation

I want to create some Dynamic Types fake types (not connected to any http-rest host, just to store an id) in order to be provisioned with a vRealize Automation Advance Service Blueprint. But I can't find the correct way to do this.

Is there any tutorial or example I can use to create fake types with Dynamic Types plugin?

Thanks a lot,

D.

---
Damián Bacalov
vExpert 2017-2023 (7 years)
https://www.linkedin.com/in/damianbacalov/
https://tecnologiaimasd.blogspot.com/
twitter @bdamian
0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee

Strictly speaking, all dynamic types are 'fake' types Smiley Happy

You may start with the following article written by Christophe Decanini - http://www.vcoteam.info/articles/learn-vco/281-enabling-vcloud-automation-center-xaas-with-vco-dynam...

No matter where the actual objects will be fetched from (eg. REST calls to 3rd party system, or in your case no external connections at all), the main steps are always the same:

  • You use the configuration workflows from DT plug-in to define dynamic namespace(s), type(s) and optionally relations between types.
  • Each dynamic type has 4 binding workflows or actions, and you need to put your DT retrieval/construction logic there
  • In these binding workflows/actions, you receive various inputs (type, id, relation name). You need to process these inputs and return either a single DT object (in findById workflow/action) or array of DT objects (in findAll/findRelation workflows/actions). Each DT object is 'instantiated' using the scripting method DynamicTypesManager.makeObject(...)
  • Basically, that's all. You can now start using dynamic types you defined as any other plug-in types. When needed, the vCO platform will automatically call the bound workflows/actions.
0 Kudos