HPE Morpheus Enterprise Software
1856403 Members
6338 Online
104112 Solutions
New Discussion

Re: Looking guidances for triggering multiple automation tasks based on user inputs Yes/No in service catalog

 
AungKT
Regular Advisor

Looking guidances for triggering multiple automation tasks based on user inputs Yes/No in service catalog

Hi,

The service catalog will display Yes/No for user inputs such as Enable Security Agent Install, Enable Backup, and so on.
I’m just thinking about creating a master workflow in the service catalog that will call back to other automation activities via the Morpheus API.
or do you have a better idea based on your own experiences with such use cases?

I think, I might need to use conditional automation task type. Do we have any demo, recording or tutorial?

Appreciate for your guidances.

Thanks,
Aung

2 REPLIES 2
AungKT
Regular Advisor

Re: Looking guidances for triggering multiple automation tasks based on user inputs Yes/No in service catalog

Thank you for your guidance. I will explore both.

tyboyd
HPE Pro

Re: Looking guidances for triggering multiple automation tasks based on user inputs Yes/No in service catalog

Personally I would go with Ansible playbook(s) and/or build the tasks in a way they can all be placed in a single workflow but you can defiantly take a look at conditional workflows and see if it fits your needs.

Here is a example to get you started.

if (customOptions.installMySQL == "yes") {
    return true;
} else if (customOptions.installMySQL == "no") {
    return false;
}

If you go this route I would make sure you map this out ahead of time because it can become a lot to keep track of when you have more than a couple conditionals. :slight_smile:

Hope this helps!



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo