Skip to main content

Going Down to the Bottom with Code (Server)

using Bimser.Synergy.ServiceAPI.Models.Form;

public void Function1_Execute(object sender, OnExecuteEventArguments args) { var subflow = ServiceAPI.WorkflowManager.Create(_workflowData.General.ProjectName, "Flow2"). Result; subflow. Variables["vMainProcessId"] = _workflowData.General.ProcessId; Parameter subflow. Variables["vMainFormId"] = this. Document1.DocumentId;//Parameter subflow. StartingEvent = subflow. events[4];//flow start arm number var res = subflow. SaveAndContinue(). Result; }