/// <summary> /// 获取流程步骤列表 /// </summary> /// <param name="processInstanceId">流程实例ID.</param> public void GetProcessInstanceTraceXml(String processInstanceId) { DesignerServiceClient dsc = new DesignerServiceClient(new BasicHttpBinding(), new EndpointAddress(address)); dsc.GetProcessInstanceTraceXmlCompleted += new EventHandler <GetProcessInstanceTraceXmlCompletedEventArgs>(dsc_GetProcessInstanceTraceXmlCompleted); dsc.GetProcessInstanceTraceXmlAsync(processInstanceId); }
/// <summary> /// 根据数据存储ID获取流程Xml字符串 /// </summary> /// <param name="id">数据存储ID</param> public void GetWorkflowProcessXml(String id) { DesignerServiceClient dsc = new DesignerServiceClient(new BasicHttpBinding(), new EndpointAddress(address)); dsc.GetWorkflowProcessXmlCompleted += new EventHandler <GetWorkflowProcessXmlCompletedEventArgs>(dsc_GetWorkflowProcessXmlCompleted); dsc.GetWorkflowProcessXmlAsync(id); }
/// <summary> /// 根据流程ID获取流程Xml字符串 /// </summary> /// <param name="processID">流程ID</param> /// <param name="version">流程版本</param> public void GetWorkflowProcessXmlProcessIdOrVersion(String processID, int version) { DesignerServiceClient dsc = new DesignerServiceClient(new BasicHttpBinding(), new EndpointAddress(address)); dsc.GetWorkflowProcessXmlProcessIdOrVersionCompleted += new EventHandler <GetWorkflowProcessXmlProcessIdOrVersionCompletedEventArgs>(dsc_GetWorkflowProcessXmlProcessIdOrVersionCompleted); dsc.GetWorkflowProcessXmlProcessIdOrVersionAsync(processID, version); }
private void bFind_Click(object sender, RoutedEventArgs e) { //查询 BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxBufferSize = 2147483647; binding.MaxReceivedMessageSize = 2147483647; DesignerServiceClient dsc = new DesignerServiceClient(binding, new EndpointAddress(this.Address)); dsc.GetPageLatestVersionsOfWorkflowDefinitionCompleted += new EventHandler<GetPageLatestVersionsOfWorkflowDefinitionCompletedEventArgs>(dsc_GetPageLatestVersionsOfWorkflowDefinitionCompleted); dsc.GetPageLatestVersionsOfWorkflowDefinitionAsync(tfName.Text, tfDisplayName.Text); }
private void bFind_Click(object sender, RoutedEventArgs e) { //查询 BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxBufferSize = 2147483647; binding.MaxReceivedMessageSize = 2147483647; DesignerServiceClient dsc = new DesignerServiceClient(binding, new EndpointAddress(this.Address)); dsc.GetPageLatestVersionsOfWorkflowDefinitionCompleted += new EventHandler <GetPageLatestVersionsOfWorkflowDefinitionCompletedEventArgs>(dsc_GetPageLatestVersionsOfWorkflowDefinitionCompleted); dsc.GetPageLatestVersionsOfWorkflowDefinitionAsync(tfName.Text, tfDisplayName.Text); }
/// <summary> /// 根据数据存储ID获取流程Xml字符串 /// </summary> /// <param name="id">数据存储ID</param> public void GetWorkflowProcessXml(String id) { DesignerServiceClient dsc = new DesignerServiceClient(new BasicHttpBinding(), new EndpointAddress(address)); dsc.GetWorkflowProcessXmlCompleted += new EventHandler<GetWorkflowProcessXmlCompletedEventArgs>(dsc_GetWorkflowProcessXmlCompleted); dsc.GetWorkflowProcessXmlAsync(id); }
/// <summary> /// 获取流程步骤列表 /// </summary> /// <param name="processInstanceId">流程实例ID.</param> public void GetProcessInstanceTraceXml(String processInstanceId) { DesignerServiceClient dsc = new DesignerServiceClient(new BasicHttpBinding(), new EndpointAddress(address)); dsc.GetProcessInstanceTraceXmlCompleted += new EventHandler<GetProcessInstanceTraceXmlCompletedEventArgs>(dsc_GetProcessInstanceTraceXmlCompleted); dsc.GetProcessInstanceTraceXmlAsync(processInstanceId); }
/// <summary> /// 根据流程ID获取流程Xml字符串 /// </summary> /// <param name="processID">流程ID</param> /// <param name="version">流程版本</param> public void GetWorkflowProcessXmlProcessIdOrVersion(String processID, int version) { DesignerServiceClient dsc = new DesignerServiceClient(new BasicHttpBinding(), new EndpointAddress(address)); dsc.GetWorkflowProcessXmlProcessIdOrVersionCompleted += new EventHandler<GetWorkflowProcessXmlProcessIdOrVersionCompletedEventArgs>(dsc_GetWorkflowProcessXmlProcessIdOrVersionCompleted); dsc.GetWorkflowProcessXmlProcessIdOrVersionAsync(processID, version); }
/// <summary> /// 保存流程定义,如果同一个ProcessId的流程定义已经存在,则版本号自动加1。 /// </summary> /// <param name="workflowProcessXml">保存的WorkflowProcess XML 文本.</param> /// <param name="version">保存的版本,当版本为小于等于0时,添加新流程,如存在相同ProcessId则版本号加1</param> /// <param name="isState">是否发布</param> public bool SaveOrUpdateWorkflowProcess(string workflowProcessXml, int version, bool isState) { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxBufferSize = 2147483647; binding.MaxReceivedMessageSize = 2147483647; DesignerServiceClient dsc = new DesignerServiceClient(binding, new EndpointAddress(address)); dsc.SaveOrUpdateWorkflowProcessCompleted += new EventHandler<SaveOrUpdateWorkflowProcessCompletedEventArgs>(dsc_SaveOrUpdateWorkflowProcessCompleted); dsc.SaveOrUpdateWorkflowProcessAsync(workflowProcessXml, version, isState); return false; }
/// <summary> /// 根据流程ID获取流程Xml字符串 /// </summary> /// <param name="processID">流程ID</param> /// <param name="version">流程版本</param> public void GetWorkflowProcessXmlProcessIdOrVersion(String processID, int version) { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxBufferSize = 2147483647; binding.MaxReceivedMessageSize = 2147483647; DesignerServiceClient dsc = new DesignerServiceClient(binding, new EndpointAddress(address)); dsc.GetWorkflowProcessXmlProcessIdOrVersionCompleted += new EventHandler<GetWorkflowProcessXmlProcessIdOrVersionCompletedEventArgs>(dsc_GetWorkflowProcessXmlProcessIdOrVersionCompleted); dsc.GetWorkflowProcessXmlProcessIdOrVersionAsync(processID, version); }
/// <summary> /// 获取流程步骤列表 /// </summary> /// <param name="processInstanceId">流程实例ID.</param> public void GetProcessInstanceTraceXml(String processInstanceId) { BasicHttpBinding binding = new BasicHttpBinding(); binding.MaxBufferSize = 2147483647; binding.MaxReceivedMessageSize = 2147483647; DesignerServiceClient dsc = new DesignerServiceClient(binding, new EndpointAddress(address)); dsc.GetProcessInstanceTraceXmlCompleted += new EventHandler<GetProcessInstanceTraceXmlCompletedEventArgs>(dsc_GetProcessInstanceTraceXmlCompleted); dsc.GetProcessInstanceTraceXmlAsync(processInstanceId); }