VMware Cloud Community
mmonkman
Enthusiast
Enthusiast
Jump to solution

XaaS\Blueprint custom form - Request user to confirm input

Hi - noobie alert!

I'm looking to request user input, ie "Select VM", then prompt to confirm the selection, ie "Are you sure?" and handle the boolean true\false response using a Basic Decision in vRO to continue. I'd ultimately like to present this via a blueprint custom form.


Can anyone provide an overview of the steps I need to take to accomplish this?


Thanks,

1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

When you say you "published the workflow in vRA" you mean you created an XaaS blueprint out of it (name: test_decision_1), right?

Then you added this to another blueprint via ASD (advanced service designer) - the designer with the canvas. I recommend to use the XaaS designer instead, as you want to run only this vRO workflow. It is easier then embed the whole thing in another blueprint.

Just add an input with type VC:VirtualMachine to your vRO workflow, and in XaaS designer drag it to the form, you'll be presented a tree picker if you request the XaaS blueprint.

View solution in original post

0 Kudos
6 Replies
xian_
Expert
Expert
Jump to solution

I can't understand the point of that. What does it mean if a user selects a VM, does not confirm he is sure and submits the request? You do nothing?

IMHO by pressing the Submit button the user confirms he is "sure" of the input provided.

What you described can be done, I just think this is unnecessary.

0 Kudos
mmonkman
Enthusiast
Enthusiast
Jump to solution

The confirmation will trigger a decommission process, so its basically an "Are you sure?" prompt.

0 Kudos
xian_
Expert
Expert
Jump to solution

In XaaS you invoke a vRO workflow. Define a boolean input for the workflow and in the XaaS blueprint designer drag it onto the Request form.

In the vRO workflow use the decision element and assign the input variable to it to decide based on the user's selection.

Custom Forms are different in ASD, there you'll need to use custom properties to access user input.

mmonkman
Enthusiast
Enthusiast
Jump to solution

Hi Xian.  Thanks for the advice.  I think I follow you.

Here's an example of the vRO decision I've created which I believe is correct.  If Yes is selected I can continue on to a decommissioning workflow.

pastedImage_1.png

I'm a little less sure on the vRA side.

I've published the above workflow in vRA and dragged it on to the canvas;

pastedImage_4.png

Edited the custom form and made the visibility of the decision wf conditional on input in to the VM selection (all very basic atm).

Ideally I'd like the VM input to be of type VC:VirtualMachine, and once selected pull back and display properties of it to the user prior to confirmation.

pastedImage_6.png

I don't fully understand your last comment regarding custom forms in ASD?

Any feedback on this and some general guidance on next steps would be appreciated.


Thanks again.

0 Kudos
xian_
Expert
Expert
Jump to solution

When you say you "published the workflow in vRA" you mean you created an XaaS blueprint out of it (name: test_decision_1), right?

Then you added this to another blueprint via ASD (advanced service designer) - the designer with the canvas. I recommend to use the XaaS designer instead, as you want to run only this vRO workflow. It is easier then embed the whole thing in another blueprint.

Just add an input with type VC:VirtualMachine to your vRO workflow, and in XaaS designer drag it to the form, you'll be presented a tree picker if you request the XaaS blueprint.

0 Kudos
mmonkman
Enthusiast
Enthusiast
Jump to solution

Xian,

Yes, that's correct.  I'd published the XaaS blueprint, then dragged it on to the vra blueprint design canvas.  I've not used the XaaS designer to date but see why I need to use it for this.

You've been a great help and put me on the correct course to get this working, so thanks very much! Smiley Happy

0 Kudos