Cora Knowledge Center

Support

Create a New Workflow Instance

Use the API to create a workflow instance based on the template GUID.

public static int CreateWorkflowInstance(Guid workflowId)
{
    IWorkflowExecutionService exe =
     engine.GetService<IWorkflowExecutionService>();
     WorkflowInstance workflowInstance = exe.StartWorkflow(workflowId);
 
     return workflowInstance.Id;
}

Add the following section to the configuration file.

<workflowExecution redirectMode="Manual"></workflowExecution>