Execute Workflows
- Last UpdatedJun 10, 2024
- 1 minute read
The workflow can be executed from any application. The Client class executes the workflow. Select the Execute () method of the Client object depending on whether the latest version of the workflow has to be executed or a specific version of the workflow has to be executed.
In this section, you will see how to execute a workflow. Workflows can be executed either Asynchronously or Synchronously. This section has descriptions of both execution methods.
You can execute a workflow using the Workflow.NET.Engine.Client API.
public Client(string ApplicationName, string WorkflowName)
Note: By default the Client.Execute method executes the latest version of the workflow. To execute a particular version, specify the corresponding Version number as shown in the following example. Example: public int Execute( int Version, object UserID, string Data)