The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Operations Orchestration Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Run a flow externally in HP OO 10

SOLVED
Go to solution
BabuSH
Occasional Contributor

How to Run a flow externally in HP OO 10

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

 

8 REPLIES
SB_RRK
Frequent Visitor

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

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

 

Hope this helps.

Highlighted
daniel_daraban
HPE Expert
Solution

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

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

BabuSH
Occasional Contributor

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

Hello Daniel,

 

Thanks alot for explaining it in detail.

It resolved my issue.

 

Thanks once again

 

Regards,

Babu

vshivanna
Regular Collector

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

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.

Calvin_C
Acclaimed Contributor

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

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

JuanQ
Acclaimed Contributor

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

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

 

dani_c
Super Collector

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

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
Super Collector

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

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

 

//Add this to "OnDomLoad" event