External Applications Calling Flows
  • Updated on 09 Dec 2013
  • 1 minute to read
  • Print
  • Dark
    Light

External Applications Calling Flows

  • Print
  • Dark
    Light

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.png

Get the URL to call for this newly generated service by clicking  Actions>Run [Advanced]> Integration > View Integration Details .

2017-02-01_093718.png

Nest, choose WCF for display settings, then select the Show Service API button.

2017-02-01_093916.png

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.png

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

Was this article helpful?