VMware Cloud Community
cjoshi
Enthusiast
Enthusiast
Jump to solution

How to get (workaround) vcacProperties in an Event state where vcacProperties are not available

I have a workflow event subscription configured for following state, phase & event:

State: CloneWorkflow.CloneMachine

Phase: EVENT

Event: CloneWorkflow.CloneMachine.EVENT.OnCloneMachineComplete

Now in there are no vcacProperties available within a vRO workflow during the CloneWorkflow.CloneMachine state.

Now I need to access custom property that I have set within the blueprint and I need to consume it within my workflow. The question is what are valid workaround to pass a blueprint property to vRO workflow.

Thanks.

Regards Shekhar

1 Solution

Accepted Solutions
eoinbyrne
Expert
Expert
Jump to solution

Here's how you can load all properties for a vCACVirtualMachine at any time. You need the vCACEntity (vCACVirtualMachine.entity) & a reference to the vCACHost

pastedImage_0.png

The Event should have the ID of the machine and/or the name so you will be able to to

Server.findAllForType("vCAC:vCACVirtualMachine") and then filter

I've used this extensively in the past with no issues

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

3 Replies
eoinbyrne
Expert
Expert
Jump to solution

Here's how you can load all properties for a vCACVirtualMachine at any time. You need the vCACEntity (vCACVirtualMachine.entity) & a reference to the vCACHost

pastedImage_0.png

The Event should have the ID of the machine and/or the name so you will be able to to

Server.findAllForType("vCAC:vCACVirtualMachine") and then filter

I've used this extensively in the past with no issues

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

cjoshi
Enthusiast
Enthusiast
Jump to solution

Thanks a lot. I will try it out and revert back.

Regards  / Shekhar

Reply
0 Kudos
cjoshi
Enthusiast
Enthusiast
Jump to solution

Worked like a charm. Thanks. once again.

Regards Shekhar