/// <summary> /// 增加会签 /// </summary> /// <param name="flowEngine">流程</param> /// <param name="funcEntry"></param> /// <param name="users"></param> private static void AddCountersign(FlowEngine flowEngine, FunctionEntity funcEntry, IList <UserEntity> users) { Step firstStep = flowEngine.FlowSteps.First(); Step newStep = null; foreach (var user in users) { newStep = new StepGeneral(); Participant participant = new Participant() { Department = -1, Category = 1, Reference = (long)funcEntry.Id }; newStep.Add(new Node(funcEntry.C_Name, participant) { Description = funcEntry.C_Name }); flowEngine.AddAfter(firstStep, newStep); firstStep = newStep; } }