manageiq icon indicating copy to clipboard operation
manageiq copied to clipboard

[WIP] Fix inconsistent dialog input for Workflows

Open agrare opened this issue 6 months ago • 3 comments

Workflows run for a dynamic dialog have their dialog_values nested under a top-level {:dialog => {}} key, workflows run as a Service Template Entrypoint should have the same format.

Before this the input from a dialog would be passed like: Running state: [CloneTemplate] with input [{"dialog_vm_name"=>"ag-prov-test", "dialog_provider"=>4, "dialog_verify_ssl"=>"false", "dialog_source_template"=>"vm-64"}]...

Which would cause e.g. https://github.com/ManageIQ/workflows-examples/blob/master/provision-vm-service/provision-vm.asl#L19-L23 to fail to find the values.

This way the input format should be the same as workflows run via a dynamic dialog e.g. https://github.com/ManageIQ/workflows-examples/blob/master/provision-vm-service/list-providers.asl#L17

WIP pending specs

agrare avatar Aug 07 '24 20:08 agrare