private void button7_Click(object sender, EventArgs e) { var workflow = WorkflowDefinitionModel.Load("1"); workflow.StartNew("frank", "1", new GetUser()); RiskMgr.Model.Menu m = new RiskMgr.Model.Menu(); }
private void button10_Click(object sender, EventArgs e) { RiskMgr.Model.Menu m = new RiskMgr.Model.Menu(); string workflowid = txbworkflowid.Text; string activityid = txbactivityid.Text; string taskid = txbtaskid.Text; var workflow = WorkflowModel.Load(workflowid); workflow.ProcessActivity(new Approval { ActivityID = activityid, WorkflowID = workflow.Value.ID, //Type = (int)ApprovalStatus.Agree, Status = (int)ApprovalStatus.Disagree, Remark = "不同意", }, "1", new GetUser() ); }