VMware Cloud Community
ThomasBajec
Contributor
Contributor
Jump to solution

avoid running actions which are in the presentation layer at the start of the workflow

Hi all,

Is there a way to NOT execute actions, which are set on the presentation layer, at the start of a workflow?

On our provisioning workflow contains a step where we select the cluster to build the vm on. Once that has been selected all other required objects will get calculated automatically.

That means in the next drop-down you get now a list available of all hosts which are members of that selected cluster. We do the same with the networking and all the datastores we use for a vm.

All the actions are mainly bound to the “Predefined list of Elements”, “Data Binding” and “Default Value”

The problem is that when I start the workflow I get, for sure, a lot of error messages in the log file because I have not selected a cluster at this stage. Also it takes some time until the presentation layer will be shown.

Is that anything I can do to avoid running all those actions which are bound to the presentation at the start of the work flow? And just let them run when I selected a cluster object?

Thanks a lot!

0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

The best practice is that the first line of your action should do a if (cluster == null) return null;

This will speed up the presentation a lot.

Another more complex way is to use an ognl expression in the presentation field but these are hard to maintain and may not give any gain over running the action and returning null.

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
2 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

The best practice is that the first line of your action should do a if (cluster == null) return null;

This will speed up the presentation a lot.

Another more complex way is to use an ognl expression in the presentation field but these are hard to maintain and may not give any gain over running the action and returning null.

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
ThomasBajec
Contributor
Contributor
Jump to solution

HI cdecanini,

wow. that did the trick. many thanks for the really quick response!!

cu

tom

0 Kudos