Running as Separate Application
This example shows how to start a runtime engine instance when it is running as a separate application.
WorkflowRuntime runtime = null; try { runtime = new WorkflowRuntime(); runtime.Run(typeof(WorkflowEngine)); IWorkflowEngine engine = WorkflowRuntime.Engine; } finally { runtime.Shutdown(); }
Running Under the Web Application
This example shows how to start a runtime engine instance when it is running under the Web application (Flowtime or Administration), or as a custom assembly that is executed as an external service consumer or under the BRS.
IWorkflowEngine engine = WorkflowRuntime.Engine