VMware Cloud Community
bdamian
Expert
Expert
Jump to solution

Modify workflow attribute by code

I want to change the value of many workflows attributes. There are pointing to one resource and I want to change it.

Is there any way to change workflows attributes values from code?

Thanks a lot,

D.

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

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

This is what configuration elements are for. Create a config element, add required attributes, set them then edit your workflows attributes to use the config element (many attributes can point to a single config element attribute)

Then you will be able to change the config element attributes from the client or from the scripting.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

0 Kudos
3 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

This is what configuration elements are for. Create a config element, add required attributes, set them then edit your workflows attributes to use the config element (many attributes can point to a single config element attribute)

Then you will be able to change the config element attributes from the client or from the scripting.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

Like this :

config.setAttributeWithKey(attributeName , attributeValue);

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
bdamian
Expert
Expert
Jump to solution

Excelent!

It involves more work but it's worth it.

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