<?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 Workflow Phase Detection in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249257#M2431</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;As you can see by the Subject line I’m wondering if there is a way to detect which phase its currently being ran. The reason being I’m working on a script for my job that has to be ran on &lt;CODE style="background : #f0f1f2;"&gt;Post-Provision&lt;/CODE&gt; but also &lt;CODE style="background : #f0f1f2;"&gt;Teardown &lt;/CODE&gt;. At the moment its two scripts but I would like to have it so it’s a single script. I tried searching around the Doc’s and did not see a whole lot unless i missed something. Any help would be apricated.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 17:18:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2024-04-11T17:18:59Z</dc:date>
    <item>
      <title>Workflow Phase Detection</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249257#M2431</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;As you can see by the Subject line I’m wondering if there is a way to detect which phase its currently being ran. The reason being I’m working on a script for my job that has to be ran on &lt;CODE style="background : #f0f1f2;"&gt;Post-Provision&lt;/CODE&gt; but also &lt;CODE style="background : #f0f1f2;"&gt;Teardown &lt;/CODE&gt;. At the moment its two scripts but I would like to have it so it’s a single script. I tried searching around the Doc’s and did not see a whole lot unless i missed something. Any help would be apricated.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 17:18:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249257#M2431</guid>
      <dc:creator />
      <dc:date>2024-04-11T17:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Phase Detection</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249258#M2432</link>
      <description>&lt;P&gt;&lt;A class="mention" href="https://community.hpe.com/u/tyler_boyd"&gt;@Tyler_Boyd&lt;/A&gt;  Thank you! This helps a lot.  I talked with my team and I think we’re just going to go with the two separate scripts. Thanks for the quick reply.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 13:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249258#M2432</guid>
      <dc:creator />
      <dc:date>2024-04-12T13:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Phase Detection</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249259#M2433</link>
      <description>&lt;P&gt;You can use the &amp;lt;%= instance.status %&amp;gt; variable&lt;/P&gt;
&lt;P&gt;During the Post-Provisioning phase it will be set to provisioning&lt;BR /&gt;
During the Teardown phase it will be set to removing&lt;/P&gt;
&lt;P&gt;One thing to keep in mind is if something where to fail during another phase (Ex. The Pre-Provision or Provision phase) this variable is set to “failed”. If you where to then retry the task it would not be set to the expected value.&lt;/P&gt;
&lt;P&gt;For that reason I would probably keep it two separate tasks unless completely necessary.&lt;/P&gt;
&lt;P&gt;Hope this helps &lt;IMG src="https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 03:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/workflow-phase-detection/m-p/7249259#M2433</guid>
      <dc:creator>tyboyd</dc:creator>
      <dc:date>2024-04-12T03:19:23Z</dc:date>
    </item>
  </channel>
</rss>

