• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Activities.ExternalDataEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Workflow.Activities.ExternalDataEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ExternalDataEventArgs类的具体用法?C# ExternalDataEventArgs怎么用?C# ExternalDataEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ExternalDataEventArgs类属于System.Workflow.Activities命名空间,在下文中一共展示了ExternalDataEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DeliverMessage

        public void DeliverMessage(ExternalDataEventArgs eventArgs, IComparable queueName, object message, object workItem, IPendingWork workHandler)
        {
            if (eventArgs == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("eventArgs");
            }
            if (queueName == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("queueName");
            }

            using (ExternalDataExchangeClient desClient = new ExternalDataExchangeClient(WorkflowRuntimeEndpoint.netNamedPipeContextBinding,
                new EndpointAddress(this.baseUri)))
            {
                using (OperationContextScope scope = new OperationContextScope((IContextChannel)desClient.InnerChannel))
                {
                    IContextManager contextManager = desClient.InnerChannel.GetProperty<IContextManager>();
                    Fx.Assert(contextManager != null, "IContextManager must not be null.");
                    if (contextManager != null)
                    {
                        IDictionary<string, string> context = new Dictionary<string, string>();
                        context["instanceId"] = eventArgs.InstanceId.ToString();
                        contextManager.SetContext(context);
                    }

                    desClient.RaiseEvent(eventArgs, queueName, message);
                }
            }
  
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:30,代码来源:WorkflowClientDeliverMessageWrapper.cs


示例2: onWorkflowActivated1_Invoked

        private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
        {
            Debug.WriteLine("admProcessRequestsWF:{" + workflowProperties.WorkflowId + "} initiated");
            item = workflowProperties.Item;

            startTime = DateTime.Now;
        }
开发者ID:fraczo,项目名称:Biuromagda,代码行数:7,代码来源:admProcessRequestsWF.cs


示例3: onWorkflowActivated1_Invoked

        private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
        {
            intZgloszenieID = Convert.ToInt32(workflowProperties.Item["Zgłoszenie.ID"]);

            Load_cNagrody();

            Clear_ContentEntries();
        }
开发者ID:RAWcom,项目名称:pvspa.CustomWorkflows,代码行数:8,代码来源:Workflow1.cs


示例4: OnValuationRequest

 public void OnValuationRequest()
 {
     ExternalDataEventArgs e = new ExternalDataEventArgs(IgrssCommon.lastWf);
     if (RequestValuation != null)
     {
         RequestValuation(this, e);
     }
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:8,代码来源:ValuationProcessEvents.cs


示例5: onWorkflowActivated1_Invoked

        private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
        {
            Debug.WriteLine("ZatwierdzenieZadaniaWF:{" + workflowProperties.WorkflowId + "} initiated");
            item = workflowProperties.Item;

            Debug.WriteLine("Workflow created:" + workflowProperties.Workflow.Created.ToString());
            startTime = DateTime.Now;
        }
开发者ID:fraczo,项目名称:Biuromagda,代码行数:8,代码来源:ZatwierdzenieZadania.cs


示例6: SMTSubmitEvent_Invoked

        /// <summary>
        /// 接收事件后处理审批流程
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void SMTSubmitEvent_Invoked(object sender, ExternalDataEventArgs e)
        {
            SMTFlowArg input = e as SMTFlowArg;
            this.ApproveInfo = input.FlowData;
            Root().FlowData = input.FlowData;

            //Console.WriteLine("事件节点:" + this.Name + "工作流返回结果:" + ApproveInfo.Flow_FlowRecord_T.Content);
               //以下为处理代码
        }
开发者ID:SaintLoong,项目名称:TMFlow,代码行数:14,代码来源:SMTSubmitEvent.cs


示例7: onTaskChanged1_Invoked

 private void onTaskChanged1_Invoked(object sender, ExternalDataEventArgs e)
 {
     //更改后检查任务属性。
     //查找 1.0 以反映已完成的任务。
     if (afterProperties.PercentComplete == 1.0)
     {
         taskCompleted = true;
     }
 }
开发者ID:jetlive,项目名称:skiaming,代码行数:9,代码来源:Workflow1.cs


示例8: onWorkflowActivated

        private void onWorkflowActivated(object sender, ExternalDataEventArgs e)
        {
            // desiriarize xml to the instance
            workflowId = workflowProperties.WorkflowId;

            // set value
            assignee = System.Threading.Thread.CurrentPrincipal.Identity.Name;
            instructions = "";
        }
开发者ID:tsmatsuz,项目名称:20080609_IntegratedSiteDefinition,代码行数:9,代码来源:Workflow1.cs


示例9: Paied

 private void Paied(object sender, ExternalDataEventArgs e)
 {
     CRySTALDataConnections.CRySTALDataSetTableAdapters.CustomerTransactionsTableAdapter cta = new CRySTALDataConnections.CRySTALDataSetTableAdapters.CustomerTransactionsTableAdapter();
     cta.SetStatus(false, false, e.InstanceId);
     CRySTALDataConnections.CRySTALDataSetTableAdapters.TablesTblTableAdapter tta = new CRySTALDataConnections.CRySTALDataSetTableAdapters.TablesTblTableAdapter();
     CRySTALDataConnections.CRySTALDataSet.CustomerTransactionsDataTable ctd;
     ctd = cta.GetDataByWorkflowInstID(e.InstanceId);
     if (ctd.Rows.Count == 0) return;
     tta.SetStatus(2, ctd.First().TableNumber);
 }
开发者ID:ethiele,项目名称:rutgersse2009group8,代码行数:10,代码来源:CustomerWorkflow.cs


示例10: OnEventInvoked

        private void OnEventInvoked(object sender, ExternalDataEventArgs e)
        {
            FormEventArgs args = (FormEventArgs)e;

            FormsWorkflow formsWorkflow = this.GetRoot<FormsWorkflow>();

            formsWorkflow.ChildWorkflowResult = args.WorkflowResult;

            base.OnInvoked(e);
        }
开发者ID:DBailey635,项目名称:C1-CMS,代码行数:10,代码来源:ChildWorkflowDoneHandleExternalEventActivity.cs


示例11: AddFoodOrderToBill

        private void AddFoodOrderToBill(object sender, ExternalDataEventArgs e)
        {
            CRySTAL.FoodOrder order = (e as WorkflowLocalService.FoodOrderEventArgs).Order;
            CRySTALDataConnections.CRySTALDataSetTableAdapters.BillItemsTableAdapter bia = new CRySTALDataConnections.CRySTALDataSetTableAdapters.BillItemsTableAdapter();
            CRySTAL.CrystalMenuDataContext db = new CRySTAL.CrystalMenuDataContext();

            foreach (CRySTAL.ItemOrder item in order.FoodOrders)
            {
                var product = from p in db.MenuItems
                              where p.ID == item.productID
                              select p;
                if (product.Count() > 0)
                {
                    bia.InsertBillItem(e.InstanceId, product.First().Name, (decimal)product.First().Price, item.DeleverToPerson);
                }
            }
        }
开发者ID:ethiele,项目名称:rutgersse2009group8,代码行数:17,代码来源:CustomerWorkflow.cs


示例12: EventHandler

 public void EventHandler(object sender, ExternalDataEventArgs eventArgs)
 {
     if (eventArgs == null)
     {
         throw new ArgumentNullException("eventArgs");
     }
     try
     {
         object obj2;
         IPendingWork work;
         object[] objArray = this.enqueueWrapper.PrepareEventArgsArray(sender, eventArgs, out obj2, out work);
         EventQueueName key = this.GetKey(objArray);
         string name = null;
         if (eventArgs.Identity == null)
         {
             IIdentity identity = Thread.CurrentPrincipal.Identity;
             WindowsIdentity identity2 = identity as WindowsIdentity;
             if ((identity2 != null) && (identity2.User != null))
             {
                 name = identity2.User.Translate(typeof(NTAccount)).ToString();
             }
             else if (identity != null)
             {
                 name = identity.Name;
             }
             eventArgs.Identity = name;
         }
         else
         {
             name = eventArgs.Identity;
         }
         MethodMessage message = new MethodMessage(this.proxiedType, this.eventName, objArray, name);
         WorkflowActivityTrace.Activity.TraceEvent(TraceEventType.Information, 0, "Firing event {0} for instance {1}", new object[] { this.eventName, eventArgs.InstanceId });
         this.enqueueWrapper.DeliverMessage(eventArgs, key, message, obj2, work);
     }
     catch (Exception exception)
     {
         if (ExternalDataExchangeService.IsIrrecoverableException(exception))
         {
             throw;
         }
         throw new EventDeliveryFailedException(SR.GetString("Error_EventDeliveryFailedException", new object[] { this.proxiedType, this.eventName, eventArgs.InstanceId }), exception);
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:44,代码来源:WorkflowMessageEventHandler.cs


示例13: EventHandler

        public void EventHandler(object sender, ExternalDataEventArgs eventArgs)
        {
            if (eventArgs == null)
            {
                throw new ArgumentNullException("eventArgs");
            }

            try
            {
                object workItem;
                IPendingWork workHandler;
                object[] args = this.enqueueWrapper.PrepareEventArgsArray(sender, eventArgs, out workItem, out workHandler);
                EventQueueName key = GetKey(args);

                String securityIdentifier = null;
                if (eventArgs.Identity == null)
                {
                    IIdentity identity = System.Threading.Thread.CurrentPrincipal.Identity;
                    WindowsIdentity windowsIdentity = identity as WindowsIdentity;
                    if (windowsIdentity != null && windowsIdentity.User != null)
                        securityIdentifier = windowsIdentity.User.Translate(typeof(NTAccount)).ToString();
                    else if (identity != null)
                        securityIdentifier = identity.Name;

                    eventArgs.Identity = securityIdentifier;
                }
                else
                {
                    securityIdentifier = eventArgs.Identity;
                }

                MethodMessage message = new MethodMessage(this.proxiedType, this.eventName, args, securityIdentifier);

                WorkflowActivityTrace.Activity.TraceEvent(TraceEventType.Information, 0, "Firing event {0} for instance {1}", this.eventName, eventArgs.InstanceId);

                this.enqueueWrapper.DeliverMessage(eventArgs, key, message, workItem, workHandler);
            }
            catch (Exception e)
            {
                if (ExternalDataExchangeService.IsIrrecoverableException(e))
                {
                    throw;
                }
                else
                {
                    throw new EventDeliveryFailedException(SR.GetString(SR.Error_EventDeliveryFailedException, this.proxiedType, this.eventName, eventArgs.InstanceId), e);
                }
            }
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:49,代码来源:WorkflowMessageEventHandler.cs


示例14: onAGMReviewTaskChanged_Invoked

        private void onAGMReviewTaskChanged_Invoked(object sender, ExternalDataEventArgs e)
        {
            if (onAGMReviewTaskChanged.AfterProperties.ExtendedProperties[statusFieldID] != null)
            {
                string taskStatus = onAGMReviewTaskChanged.AfterProperties.ExtendedProperties[statusFieldID].ToString();

                if (taskStatus != null)
                {
                    if ((taskStatus == "Completed") || (taskStatus == "Expired"))
                    {
                        this._isAGMReviewTaskComplete = true;
                    }
                }
            }
        }
开发者ID:kawalgrover,项目名称:MARTA-Projects,代码行数:15,代码来源:ReviewAgendaWorkflow.cs


示例15: onWorkflowActivated1_Invoked

        private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
        {
            using (StringReader stringReader = new StringReader(workflowProperties.InitiationData))
            {
                using (XmlReader reader = XmlReader.Create(stringReader))
                {
                    XmlSerializer serializer = new XmlSerializer(typeof(ReviewWFData));
                    WorkflowData = (ReviewWFData)serializer.Deserialize(reader);
                }
            }

            SetReviewers();
            SetAgendaTitle();

            notifyAgendaOwner.Action = "Complete";
            notifyAgendaOwner.Source = "Paperless Board";
            notifyAgendaOwner.TaskTitle = string.Format("Edit documents for '{0}', and then start the Board Agenda Workflow.", AgendaTitle);
            notifyAgendaOwner.TaskDescription = string.Format("All the reviewers have finished reviewing content for this agenda. The Review Agenda workflow has been completed for Agenda {0}. The owner/sponsor of this agenda item now needs to start the Board Agenda workflow for this agenda.", AgendaTitle);
            notifyAgendaOwner.TaskDueDate = DateTime.Today.AddDays(1);

            SPUser originator = GetSPUser(this.workflowProperties.Item, "Sponsor");
            notifyAgendaOwner.TaskAssignedTo = originator.LoginName;
        }
开发者ID:kawalgrover,项目名称:MARTA-Projects,代码行数:23,代码来源:ReviewAgendaWorkflow.cs


示例16: onWorkflowActivated1_Invoked

 private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
 {
     using (StringReader stringReader = new StringReader(workflowProperties.InitiationData))
     {
         using (XmlReader reader = XmlReader.Create(stringReader))
         {
             XmlSerializer serializer = new XmlSerializer(typeof(DigitalSignaturesWFData));
             WorkflowData = (DigitalSignaturesWFData)serializer.Deserialize(reader);
         }
     }
     SetAgendaTitle();
 }
开发者ID:kawalgrover,项目名称:MARTA-Projects,代码行数:12,代码来源:Digital+Signatures.cs


示例17: onWorkflowActivated1_Invoked

 private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
 {
     Debug.WriteLine("wfPrzygotujWiadomoscDlaKlienta - ACTIVATED");
     item = workflowProperties.Item;
 }
开发者ID:fraczo,项目名称:Animus,代码行数:5,代码来源:PrzygotujWiadomosc.cs


示例18: EndNotify

        void EndNotify(object sender, ExternalDataEventArgs e)
        {
            SubmitEventArgs input = e as SubmitEventArgs;

               this.提交结果 = input.提交结果;
               this.提交人员 = input.提交人员;
               this.提交部门 = input.提交部门;
               this.提交职能 = input.提交职能;
               this.提交日期 = System.DateTime.Now;
               this.提交方式 = input.提交方式;
               this.提交说明 = input.提交说明;
               this.触发器类型 = input.触发器类型;

               this.下一状态办理人员 = input.下一状态办理人员;

               Root().当前节点提交结果 = input.提交结果;
               Root().当前节点提交人员 = input.提交人员;
               Root().状态编号 = input.状态实例编号.ToString();
               Root().状态跟踪器 = 1;
        }
开发者ID:wanghuifeng,项目名称:wxwinterwfWFDesigner,代码行数:20,代码来源:等待提交.cs


示例19: OnAddInvestigationDetails_Invoked

 private void OnAddInvestigationDetails_Invoked(object sender, ExternalDataEventArgs e)
 {
     string curUser = Thread.CurrentPrincipal.Identity.Name;
     AddInvestigationDetailsEventArgs args = (AddInvestigationDetailsEventArgs) e;
     IgrssAdapters.InvestigationAdapter.AddInvestigationDetail(Guid.NewGuid(), ComplainId, args.InvestigationDate, args.InvestigationDetails, curUser, DateTime.Now);
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:6,代码来源:ComplainProcess.xoml.cs


示例20: OnReAssignInvestigation_Invoked

        private void OnReAssignInvestigation_Invoked(object sender, ExternalDataEventArgs e)
        {
            InvestigationRequiredEventArgs args = (InvestigationRequiredEventArgs) e;
            Guid EmployeeId = (Guid)IgrssAdapters.EmployeeMaster.GetEmployeeIdByUsername(args.InvestigatingOfficer);
            IgrssAdapters.ComplainAdapter.AssignEnquiryOfficer(EmployeeId, DateTime.Now, ComplainId);
            string curUser = Thread.CurrentPrincipal.Identity.Name;

            string link = WorkflowLinks.Default.ComplainInvestigationResult;
            Dictionary<string, object> InfoList = new Dictionary<string, object>();
            InfoList.Add("FileId", ComplainId);
            Guid GroupId = Guid.NewGuid();
            WorkflowSupport.SendAlert(curUser, args.InvestigatingOfficer, link, "Complain Investigation Required!", InfoList,GroupId);
        }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:13,代码来源:ComplainProcess.xoml.cs



注:本文中的System.Workflow.Activities.ExternalDataEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Rules.ArithmeticLiteral类代码示例发布时间:2022-05-26
下一篇:
C# Activities.ConditionalEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap