<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trigger automation from catalog inputs? in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247502#M676</link>
    <description>&lt;P&gt;So a few things:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;This definitely shouldn’t be replacing any workflow that they have set. Assuming that they have a workflow configured as a policy, on the domain, or even set statically on the specific layout. That’s the way that any assigned and always needed to run workflow should be set.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If you’re going to offer a combination of many it might be best just to have a post-task always run as part of the default workflow. The post task would check for any of the Boolean options and then make the pertinent API call to make that workflow execute against that system. This way you could have all of your checks within one script in any language you desire.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 10 Feb 2023 03:19:50 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2023-02-10T03:19:50Z</dc:date>
    <item>
      <title>Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247496#M670</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I’m looking to have optional workflows/tasks accessible from the service catalog as options at request time for a customer doing VM provisioning. Something like a checkbox for agent-based backups that will cause an existing workflow to run that creates an additional nic and installs the backup agent.&lt;/P&gt;
&lt;P&gt;Is there a way to use an input in a catalog item to determine what automation runs during provisioning (or immediately after, as long as it’s not additional work for the requester)?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247496#M670</guid>
      <dc:creator />
      <dc:date>2023-02-09T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247497#M671</link>
      <description>&lt;P&gt;Thanks &lt;A class="mention" href="https://community.hpe.com/u/cbunge"&gt;@cbunge&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I see what you’re doing, and was able to get it to work for a single workflow. However, this then replaces the normal workflow that happens during provisioning. Is the process limited to a single workflow taskset, or is there a way to stack them? There’s a set of config tasks that will always be needed, but they’re hoping to add some optional ones that can be enabled at request time in addition.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 01:59:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247497#M671</guid>
      <dc:creator />
      <dc:date>2023-02-10T01:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247498#M672</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/markp"&gt;@markp&lt;/A&gt; This is road mapped and we’ll start to see early work towards this with the release of 6.0 in a few weeks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 12:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247498#M672</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-02-16T12:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247499#M673</link>
      <description>&lt;ASIDE class="quote group-Certified-Engineer" data-username="cbunge" data-post="4" data-topic="842"&gt;
cbunge:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The post task would check for any of the Boolean options and then make the pertinent API call to make that workflow execute against that system.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Is there a preferred/obvious approach for making this API call from the post task?  I tried using fetch/JavaScript, but the API call fails with a message fetch is not defined. Fetch was the default example generated by the API docs when I clicked JavaScript. Is there a preferred way to do this in JS or prereqs I missed?&lt;/P&gt;
&lt;P&gt;Not an urgent question, I’ve got it working in Python (and PowerShell in the homelab, because I’m a Windows guy at heart). I’m curious what it’d take to get it working in JS though.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 02:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247499#M673</guid>
      <dc:creator />
      <dc:date>2023-02-11T02:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247500#M674</link>
      <description>&lt;P&gt;This is where workflow logic could do with being enhanced a bit within Morpheus… have decisions made in a workflow task which determines the direction of travel (even just a true/false response would be advantageous). Also being able to have a workflow call another workflow would be useful.&lt;/P&gt;
&lt;P&gt;The way I’ve done this is had each task verify if a checkbox was ticked at the start and exit gracefully if it’s not checked. This doesn’t work for a workflow sadly, since the task itself will just end and the rest of the workflow continues. Ideally I wanted to have a generic “check” task that could take an input with the option name to validate. Perhaps in a future release this functionality will be enhanced.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 07:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247500#M674</guid>
      <dc:creator>mphe</dc:creator>
      <dc:date>2023-02-16T07:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247501#M675</link>
      <description>&lt;ASIDE class="quote group-Certified-Engineer" data-username="cbunge" data-post="2" data-topic="842"&gt;
cbunge:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I have not tested this, so you &lt;EM&gt;may&lt;/EM&gt; have to pass some value. Maybe a 0 or an empty workflow with an &lt;CODE style="background : #f0f1f2;"&gt;else {0}&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;And because I forgot to mention this previously. I tested, and it does want a value.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247501#M675</guid>
      <dc:creator />
      <dc:date>2023-02-10T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247502#M676</link>
      <description>&lt;P&gt;So a few things:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;This definitely shouldn’t be replacing any workflow that they have set. Assuming that they have a workflow configured as a policy, on the domain, or even set statically on the specific layout. That’s the way that any assigned and always needed to run workflow should be set.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If you’re going to offer a combination of many it might be best just to have a post-task always run as part of the default workflow. The post task would check for any of the Boolean options and then make the pertinent API call to make that workflow execute against that system. This way you could have all of your checks within one script in any language you desire.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 10 Feb 2023 03:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247502#M676</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-02-10T03:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247503#M677</link>
      <description>&lt;P&gt;Thanks Chris,&lt;/P&gt;
&lt;P&gt;RE: 1, we’ve got workflows set on the individual layouts. I’ll dig into that more if it’s unexpected. I’m not the only one in the environment, so sometimes there’s bonus changes I don’t find out about until something stops working.&lt;/P&gt;
&lt;P&gt;RE: 2, I think that’ll be what I do. There’s talk of eventually fronting the Morpheus builds with their ticketing system, so keeping the logic in tasks rather than the catalog would make that simpler down the road too.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247503#M677</guid>
      <dc:creator />
      <dc:date>2023-02-10T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger automation from catalog inputs?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247504#M678</link>
      <description>&lt;P&gt;On the catalog you would need to either add or modify this object in the json:&lt;BR /&gt;
&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150430i4E758EE7CD2DAB72/image-size/large?v=v2&amp;amp;px=2000" role="button" title="ef1ffa3e41c388895e8f79328d0855cad71bbf51.png" alt="ef1ffa3e41c388895e8f79328d0855cad71bbf51.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You probably only need to pass the taskSetId and it may allow a null value. So something like:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;"workflow": {
  "taskSetId": "&amp;lt;%= if (customOptions.backups == 'on') {274} %&amp;gt;"
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can write a post task that runs the applicable workflow you would like as well.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: I have not tested this, so you &lt;EM&gt;may&lt;/EM&gt; have to pass some value.  Maybe a 0 or an empty workflow with an &lt;CODE style="background : #f0f1f2;"&gt;else {0}&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 23:47:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/trigger-automation-from-catalog-inputs/m-p/7247504#M678</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-02-09T23:47:31Z</dc:date>
    </item>
  </channel>
</rss>

