External Applications: Calling Flows

Last Updated: 08/20/2018 Introduced in Version: 2.0
OVERVIEW
 
There are two ways that flow can be executed from an external application: (1) via call to a generated service (specific to this flow), or (2) via call to a generic Flow Execution Service.
 
Example
CALLING FLOW VIA SPECIFIC GENERATED SERVICE
Ensure that the flow you want to call has its external service enabled
 
 
2017-02-01_092905
 
 
Get the URL to call for this newly generated service by clicking Actions>Run [Advanced]> Integration > View Integration Details.
 
 
2017-02-01_093718
Nest, choose WCF for display settings, then select the Show Service API button.
 
 
2017-02-01_093916
 
 
In the document that opens, look for the How to call via WCF section to find the service URL. Use this URL to add a Service Reference in your calling application.
 
 
2017-02-01_094127
 
 
After adding a service reference, add code that calls your flow. An example is shown below:
            TestFlowViaServiceServiceClient client = new TestFlowViaServiceServiceClient(“BasicHttpBinding_ITestFlowViaServiceService”);
            client.Run(new PasswordCredentialsUserContext() { UserID = “admin@decisions.com”, Password = “admin” }, “testFromVS”);
            client.Close();
 
You can now run your code which will call your flow via WCF service.
 
CALLING FLOW VIA GENERIC FLOW EXECUTION SERVICE

Additional Resources