The code to host the WorkflowRuntime in a process will vary based on the application itself. For a Windows Forms application or a Windows Service, it is typical to construct the runtime at the start of the application and store this in a property of the main application class. application In response to some input in…