imthekrish Respected Contributor.
Respected Contributor.
465 views

Dynamically Launch Flow

I'm using Dynamically Launch flow and getting flow status and waiting to see if the status is one among below using a string comparator

Runtime matchTo COMPLETED||SYSTEM_FAILURE||CANCELED||PENDING_CANCEL|| PAUSED||PENDING_PAUSE

 

The problem with this is, the status return by get run status operation is same(COMPLETED) for completed - Resolved and completed - Error. I have a decision to make based on flow status. I cannot go and do same thing for both of them. 

DId anyone do this before ? How do i look for completed error status?

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Dynamically Launch Flow

Hi,

If you want to find out the exact status of the execution instead of just getting the high level status use the following API  and just filter out the results. 

GET/executions/{executionIds}/summary

In fact you could get both the result of the get status and the detailed result you want with one API call.

If you want to get more than 1 execution id in one api call list in the executionIds paramater all the execution ids in a comma separated list.  

Hope this helps,

Vlad

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.