示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }
示例#4
0
 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);
 }
示例#5
0
        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);
        }
示例#6
0
 /// <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);
 }
示例#7
0
 /// <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);
 }
示例#8
0
 /// <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);
 }
示例#9
0
 /// <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;
 }
示例#10
0
 /// <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);
 }
示例#11
0
 /// <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);
 }