Trusted Contributor.. BabuSH Trusted Contributor..
Trusted Contributor..
6995 views

How to Run a flow externally in HP OO 10

Jump to solution

I am using HP OO 10  and trying to execute the flow using the URL
https://localhost:8443/oo/trigger.html#984535a5-4965-4214-8968-32026aba37fa?username=admin&password=Connect@123
then the browser prompting for the credentional once again.

 

we know In HP OO 9x  we can execute the flow using "https://loalhost:8443/PAS/services/rest/run_async/<UUID>?username=admin&password=admin&"
without any issue.

could anybody guide how to Run a flow externally in HP OO 10x? with small examples

 

Hussain
Labels (1)
0 Likes
1 Solution

Accepted Solutions
Absent Member.. daniel_daraban Absent Member..
Absent Member..

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hi Babu,

 

In OO 9.x you could have started a flow by typing an Execution link in the browser.

 

In OO 10.x it is a bit different as 10.x uses REST APIs, so just typing the execution link will not actually create the run. (you can find more details about which API are discovered in OO 10.x in the <OO_install_folder>\docs\API_Guide.pdf)

 

In order to start flows outside of Central you will need to do a HTTP POST with the execution link (https://<central_IP>:<central_port>/oo/rest/executions/) and also provide the parameters that need to be passed to the flow in JSON format. The easiest way to test this is by downloading Chrome’s Application called DEV HTTP CLIENT

 

You can use the API Guide to better understand what can be done via the REST API in OO 10.x.

 

Here is a screenshot to summarize the procedure:

 

Best regards,

Daniel

9 Replies
SB_RRK Trusted Contributor.
Trusted Contributor.

Re: How to Run a flow externally in HP OO 10

Jump to solution

Check the "WebServices Wizard" & "Powershell Guide" documents.

 

Hope this helps.

0 Likes
Absent Member.. daniel_daraban Absent Member..
Absent Member..

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hi Babu,

 

In OO 9.x you could have started a flow by typing an Execution link in the browser.

 

In OO 10.x it is a bit different as 10.x uses REST APIs, so just typing the execution link will not actually create the run. (you can find more details about which API are discovered in OO 10.x in the <OO_install_folder>\docs\API_Guide.pdf)

 

In order to start flows outside of Central you will need to do a HTTP POST with the execution link (https://<central_IP>:<central_port>/oo/rest/executions/) and also provide the parameters that need to be passed to the flow in JSON format. The easiest way to test this is by downloading Chrome’s Application called DEV HTTP CLIENT

 

You can use the API Guide to better understand what can be done via the REST API in OO 10.x.

 

Here is a screenshot to summarize the procedure:

 

Best regards,

Daniel

Trusted Contributor.. BabuSH Trusted Contributor..
Trusted Contributor..

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hello Daniel,

 

Thanks alot for explaining it in detail.

It resolved my issue.

 

Thanks once again

 

Regards,

Babu

Hussain
0 Likes
vshivanna Super Contributor.
Super Contributor.

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hi Daniel,

 

It works for me also..

 

But I want to give this to end-users. At that time, I can't ask him to download this app and edit according to the flows.

 

Is there any better way to do..?

 

Once the user clicks, it should run... whether it is link or batch file, etc..

 

I have tried to use oosh.bat but if you run from different servers, it doesn't work..

 

 

Regards,

Soundarajan K.

0 Likes
Contributor.. Calvin_C Contributor..
Contributor..

Re: How to Run a flow externally in HP OO 10

Jump to solution

Sounds like you need to create a page and use a html form to do a post. Inputs could be dynamic with JavaScript.

0 Likes
JuanQ Absent Member.
Absent Member.

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hola Daniel,

Al intentar ejecutar el flujo en OO v10.7, me aparece el error:

Estado HTTP 403 - Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN'

Intente ejecutarlo desde la Extensión de Chrome "Insomnia" ya que no encontré DEV HTTP CLIENT.

Agradezco tu ayuda ya que el manual API_GUIDE (Pg23) indica  "Now provide the CSRF token on the request. Get the X-CSRF-TOKEN from the server response.You can use a simple dummy GET to give you the token value in the response cookies "

Pero no se a que se refiere como lograr estos pasos, ayuda porfavor

 

0 Likes
dani_c Respected Contributor.
Respected Contributor.

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hola Juan,

For the post/delete/put api methods as a security step you need to provide a CSRF token which you receive when you make any GET call.

For example if we want to trigger a flow we'll have to use POST method. So before that we have to make a GET call, let's say get version:Screen Shot 2017-04-19 at 10.59.19.png

 

 

This call, as you see above, will return in response header a X-CSRF-TOKEN which we'll need to provide to the POST call so we'll copy it and use it in the header like in the following exemple:

 

Screen Shot 2017-04-19 at 11.01.58.png

No hablo español, pero espero que me entiendas...

Daniel C.

mahdi_gara1 Valued Contributor.
Valued Contributor.

Re: How to Run a flow externally in HP OO 10

Jump to solution

what can i put into the script.bat as inputs. Can u provide an example please?

 

0 Likes
Super Contributor.. Giulio Soleni Super Contributor..
Super Contributor..

Re: How to Run a flow externally in HP OO 10

Jump to solution

Hello,

I am testing a HPE OO 10.70 version and I am still able to trigger workflow with a HTTP GET call in the usual way.

For example:
https://my.oo.server:8443/PAS/services/rest/run_async/Library/Utility%20Operations/Samples/Generate%20Random%20Number?max=8&min=1

which triggers the /Library/Utility Operations/Samples/Generate Random Number provided with the Base CP, perfectly works, (of course giving the required credentials).


HTH
Giulio

 

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.