meallhour Contributor.
Contributor.
1351 views

How to check status of HPOO flow?

I want to check if the flow is running or passed or failed.

I have written the following query which always 

select execution_state from run_history where run_id =  ${RunId};

 

Please let me know if there is a better approach to know the current state of the flow.

0 Likes
3 Replies
dani_c Respected Contributor.
Respected Contributor.

Re: How to check status of HPOO flow?

You can check the execution status using REST API.  

GET<central_url>/rest/v2/executions/3332190961082830376,679861347442169334/summary 

This will return the following information in a json format:

[{

"executionId":"3332190961082830376", "branchId":null, "startTime":1371475041169, "endTime":null,

"status":"PAUSED", "resultStatusType":"RESOLVED", "resultStatusName":"HAHA", "pauseReason":"USER_PAUSED", "owner":"anonymous", "ownerDomain:null", "triggeredBy":"anonymous",

"flowUuid":"a8e8fc10-b584-4d39-921f-987b29c9dd19", "flowPath":null,

"executionName":"mock flow", "triggeringSource:central" "roi":null

},

{

"executionId":"679861347442169334", "branchId":null, "startTime":1371475041169, "endTime":null,

"status":"PAUSED", "resultStatusType":"RESOLVED", "resultStatusName":"HAHA", "pauseReason":"USER_PAUSED", "owner":"anonymous", "ownerDomain:null", "triggeredBy":"anonymous",

"flowUuid":"a8e8fc10-b584-4d39-921f-987b29c9dd19",

"flowPath":null, "executionName":"mock flow", "triggeringSource:central" "roi":null

}

]

For more information, please check the API guide on Get Execution Summary section

aslam_8070
New Member.

Re: How to check status of HPOO flow?

How can I get the output of the flow after execution of my flow? is there any API end point?

0 Likes
dani_c Respected Contributor.
Respected Contributor.

Re: How to check status of HPOO flow?

Sure, this would be the endpoint: 

Request: GET /executions/{executionId}/execution-log

(<protocol>://<central_url>/oo/rest/v2/executions/{executionId}/execution-log)

And this is the json object that will be received:

{

"executionSummary":{

"executionId":"348246628680024354",

"branchId":null,

"startTime":1371366300297,

"endTime":null,

"status":"PAUSED",

"resultStatusType":"RESOLVED",

"resultStatusName":"HAHA",

"pauseReason":"USER_PAUSED",

"owner":"anonymous",

"ownerDomain:null",

"triggeredBy":"anonymous",

"flowUuid":"a8e8fc10-b584-4d39-921f-987b29c9dd19",

"flowPath":null,

"executionName":"mock flow",

"triggeringSource:central"

"roi":null

},

"executionLogLevel": "STANDARD",

"flowVars":[

{

"name":"flowVar0",

"termName":"flowVar0TermName",

"value":"flowVar0Value"

},

{

"name":"flowVar1",

"termName":"flowVar1TermName",

"value":"flowVar1Value"

},

],

"flowOutput":{

"flowOutput4":"flowOutput4Value",

"flowOutput3":"flowOutput3Value",

"flowOutput0":"flowOutput0Value",

"flowOutput2":"flowOutput2Value",

"flowOutput1":"flowOutput1Value"

}

}

 

For more information you can check the API Guide on the Get Execution Log section.

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.