External Applications: Calling Flows

Last Updated: 12/10/2015 Introduced in Verision: 2.0
Summary
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
 
2013-03-04_1205
Get the URL to call for this newly generated service by clicking Actions>Run [Advanced]> View Service Call API.
 
2013-03-04_1217
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.
 
2013-03-04_1224
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