protected override IComponent[] CreateComponentsCore(IDesignerHost designerHost) { CompositeActivity activity = new ListenActivity { Activities = { new EventDrivenActivity(), new EventDrivenActivity() } }; return new IComponent[] { activity }; }
protected override IComponent[] CreateComponentsCore(IDesignerHost designerHost) { CompositeActivity listenActivity = new ListenActivity(); listenActivity.Activities.Add(new EventDrivenActivity()); listenActivity.Activities.Add(new EventDrivenActivity()); return (IComponent[])new IComponent[] { listenActivity }; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.CanModifyActivities = true; System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind(); this.MessageReceived = new System.Workflow.Activities.CodeActivity(); this.ReceiveMessage = new Winterdom.Workflow.Activities.Msmq.MsmqReceiveActivity(); this.DelayDone = new System.Workflow.Activities.CodeActivity(); this.ReceiveTimeout = new System.Workflow.Activities.DelayActivity(); this.SendMessage = new Winterdom.Workflow.Activities.Msmq.MsmqSendActivity(); this.eventDrivenActivity2 = new System.Workflow.Activities.EventDrivenActivity(); this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity(); this.MessageSent = new System.Workflow.Activities.CodeActivity(); this.SendScope = new System.Workflow.ComponentModel.TransactionScopeActivity(); this.DelaySend = new System.Workflow.Activities.DelayActivity(); this.ConfigureObject = new System.Workflow.Activities.CodeActivity(); this.listenActivity1 = new System.Workflow.Activities.ListenActivity(); this.sequenceActivity2 = new System.Workflow.Activities.SequenceActivity(); this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity(); this.parallelActivity1 = new System.Workflow.Activities.ParallelActivity(); // // MessageReceived // this.MessageReceived.Name = "MessageReceived"; this.MessageReceived.ExecuteCode += new System.EventHandler(this.MessageReceived_ExecuteCode); activitybind2.Name = "SampleWorkflow1"; activitybind2.Path = "QUEUE"; activitybind3.Name = "SampleWorkflow1"; activitybind3.Path = "_customerReceived"; // // ReceiveMessage // activitybind1.Name = "SampleWorkflow1"; activitybind1.Path = "_labelReceived"; this.ReceiveMessage.MessageType = typeof(TestApp.Customer); this.ReceiveMessage.Name = "ReceiveMessage"; this.ReceiveMessage.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqReceiveActivity.QueueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2))); this.ReceiveMessage.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqReceiveActivity.MessageReceivedProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3))); this.ReceiveMessage.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqReceiveActivity.LabelProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); // // DelayDone // this.DelayDone.Name = "DelayDone"; this.DelayDone.ExecuteCode += new System.EventHandler(this.DelayDone_ExecuteCode); // // ReceiveTimeout // this.ReceiveTimeout.Name = "ReceiveTimeout"; this.ReceiveTimeout.TimeoutDuration = System.TimeSpan.Parse("00:00:10"); activitybind6.Name = "SampleWorkflow1"; activitybind6.Path = "QUEUE"; // // SendMessage // this.SendMessage.IsTransactionalQueue = true; activitybind4.Name = "SampleWorkflow1"; activitybind4.Path = "_labelToSend"; activitybind5.Name = "SampleWorkflow1"; activitybind5.Path = "_customerToSend"; this.SendMessage.Name = "SendMessage"; this.SendMessage.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqSendActivity.MessageToSendProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5))); this.SendMessage.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqSendActivity.QueueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6))); this.SendMessage.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqSendActivity.LabelProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4))); // // eventDrivenActivity2 // this.eventDrivenActivity2.Activities.Add(this.ReceiveMessage); this.eventDrivenActivity2.Activities.Add(this.MessageReceived); this.eventDrivenActivity2.Name = "eventDrivenActivity2"; // // eventDrivenActivity1 // this.eventDrivenActivity1.Activities.Add(this.ReceiveTimeout); this.eventDrivenActivity1.Activities.Add(this.DelayDone); this.eventDrivenActivity1.Name = "eventDrivenActivity1"; // // MessageSent // this.MessageSent.Name = "MessageSent"; this.MessageSent.ExecuteCode += new System.EventHandler(this.MessageSent_ExecuteCode); // // SendScope // this.SendScope.Activities.Add(this.SendMessage); this.SendScope.Name = "SendScope"; this.SendScope.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable; // // DelaySend // this.DelaySend.Name = "DelaySend"; this.DelaySend.TimeoutDuration = System.TimeSpan.Parse("00:00:00"); // // ConfigureObject // this.ConfigureObject.Name = "ConfigureObject"; this.ConfigureObject.ExecuteCode += new System.EventHandler(this.ConfigureObject_ExecuteCode); // // listenActivity1 // this.listenActivity1.Activities.Add(this.eventDrivenActivity1); this.listenActivity1.Activities.Add(this.eventDrivenActivity2); this.listenActivity1.Name = "listenActivity1"; // // sequenceActivity2 // this.sequenceActivity2.Activities.Add(this.ConfigureObject); this.sequenceActivity2.Activities.Add(this.DelaySend); this.sequenceActivity2.Activities.Add(this.SendScope); this.sequenceActivity2.Activities.Add(this.MessageSent); this.sequenceActivity2.Name = "sequenceActivity2"; // // sequenceActivity1 // this.sequenceActivity1.Activities.Add(this.listenActivity1); this.sequenceActivity1.Name = "sequenceActivity1"; // // parallelActivity1 // this.parallelActivity1.Activities.Add(this.sequenceActivity1); this.parallelActivity1.Activities.Add(this.sequenceActivity2); this.parallelActivity1.Name = "parallelActivity1"; // // SampleWorkflow1 // this.Activities.Add(this.parallelActivity1); this.Name = "SampleWorkflow1"; this.CanModifyActivities = false; }
private void InitializeComponent() { this.CanModifyActivities = true; System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding(); System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition(); this.NotAuthorizedC2 = new System.Workflow.Activities.CodeActivity(); this.NotAuthorizedC1 = new System.Workflow.Activities.CodeActivity(); this.NotAuthorized2 = new System.Workflow.ComponentModel.FaultHandlerActivity(); this.NotAuthorized1 = new System.Workflow.ComponentModel.FaultHandlerActivity(); this.ExpireAuthorization = new System.Workflow.Activities.CodeActivity(); this.AutorizationTimer = new System.Workflow.Activities.DelayActivity(); this.cancellationHandlerActivity3 = new System.Workflow.ComponentModel.CancellationHandlerActivity(); this.AuthorizationFailed = new System.Workflow.ComponentModel.FaultHandlersActivity(); this.Rejected = new System.Workflow.Activities.HandleExternalEventActivity(); this.AutorizationFailed = new System.Workflow.ComponentModel.FaultHandlersActivity(); this.cancellationHandlerActivity2 = new System.Workflow.ComponentModel.CancellationHandlerActivity(); this.Authorized = new System.Workflow.Activities.HandleExternalEventActivity(); this.AuthorizationExpired = new System.Workflow.Activities.EventDrivenActivity(); this.AuthorizationRejected = new System.Workflow.Activities.EventDrivenActivity(); this.AuthorizationAccepted = new System.Workflow.Activities.EventDrivenActivity(); this.WaitForResponse = new System.Workflow.Activities.ListenActivity(); this.Warrant = new System.Workflow.Activities.WhileActivity(); this.NotifyRequest = new CodeFactory.Workflow.SendEmailActivity(); this.AuthorizationRequested = new System.Workflow.Activities.SequenceActivity(); // // NotAuthorizedC2 // this.NotAuthorizedC2.Name = "NotAuthorizedC2"; this.NotAuthorizedC2.ExecuteCode += new System.EventHandler(this.HandleAuthorizationException); // // NotAuthorizedC1 // this.NotAuthorizedC1.Name = "NotAuthorizedC1"; this.NotAuthorizedC1.ExecuteCode += new System.EventHandler(this.HandleAuthorizationException); // // NotAuthorized2 // this.NotAuthorized2.Activities.Add(this.NotAuthorizedC2); this.NotAuthorized2.FaultType = typeof(System.Workflow.Activities.WorkflowAuthorizationException); this.NotAuthorized2.Name = "NotAuthorized2"; // // NotAuthorized1 // this.NotAuthorized1.Activities.Add(this.NotAuthorizedC1); this.NotAuthorized1.FaultType = typeof(System.Workflow.Activities.WorkflowAuthorizationException); this.NotAuthorized1.Name = "NotAuthorized1"; // // ExpireAuthorization // this.ExpireAuthorization.Name = "ExpireAuthorization"; this.ExpireAuthorization.ExecuteCode += new System.EventHandler(this.ExpireAuthorization_ExecuteCode); // // AutorizationTimer // this.AutorizationTimer.Name = "AutorizationTimer"; this.AutorizationTimer.TimeoutDuration = System.TimeSpan.Parse("00:00:00"); this.AutorizationTimer.InitializeTimeoutDuration += new System.EventHandler(this.AuthorizationTimer_Initialize); // // cancellationHandlerActivity3 // this.cancellationHandlerActivity3.Name = "cancellationHandlerActivity3"; // // AuthorizationFailed // this.AuthorizationFailed.Activities.Add(this.NotAuthorized2); this.AuthorizationFailed.Name = "AuthorizationFailed"; activitybind1.Name = "AuthorizeEntries"; activitybind1.Path = "Authorizers"; // // Rejected // this.Rejected.EventName = "AuthorizationRejected"; this.Rejected.InterfaceType = typeof(CodeFactory.Wiki.Workflow.IWikiServiceProvider); this.Rejected.Name = "Rejected"; this.Rejected.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.Rejected_Invoked); this.Rejected.SetBinding(System.Workflow.Activities.HandleExternalEventActivity.RolesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); // // AutorizationFailed // this.AutorizationFailed.Activities.Add(this.NotAuthorized1); this.AutorizationFailed.Name = "AutorizationFailed"; // // cancellationHandlerActivity2 // this.cancellationHandlerActivity2.Name = "cancellationHandlerActivity2"; activitybind2.Name = "AuthorizeEntries"; activitybind2.Path = "Authorizers"; // // Authorized // this.Authorized.EventName = "AuthorizationAccepted"; this.Authorized.InterfaceType = typeof(CodeFactory.Wiki.Workflow.IWikiServiceProvider); this.Authorized.Name = "Authorized"; workflowparameterbinding1.ParameterName = "e"; this.Authorized.ParameterBindings.Add(workflowparameterbinding1); this.Authorized.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.Authorized_Invoked); this.Authorized.SetBinding(System.Workflow.Activities.HandleExternalEventActivity.RolesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2))); // // AuthorizationExpired // this.AuthorizationExpired.Activities.Add(this.AutorizationTimer); this.AuthorizationExpired.Activities.Add(this.ExpireAuthorization); this.AuthorizationExpired.Name = "AuthorizationExpired"; // // AuthorizationRejected // this.AuthorizationRejected.Activities.Add(this.Rejected); this.AuthorizationRejected.Activities.Add(this.AuthorizationFailed); this.AuthorizationRejected.Activities.Add(this.cancellationHandlerActivity3); this.AuthorizationRejected.Name = "AuthorizationRejected"; // // AuthorizationAccepted // this.AuthorizationAccepted.Activities.Add(this.Authorized); this.AuthorizationAccepted.Activities.Add(this.cancellationHandlerActivity2); this.AuthorizationAccepted.Activities.Add(this.AutorizationFailed); this.AuthorizationAccepted.Name = "AuthorizationAccepted"; // // WaitForResponse // this.WaitForResponse.Activities.Add(this.AuthorizationAccepted); this.WaitForResponse.Activities.Add(this.AuthorizationRejected); this.WaitForResponse.Activities.Add(this.AuthorizationExpired); this.WaitForResponse.Name = "WaitForResponse"; // // Warrant // this.Warrant.Activities.Add(this.WaitForResponse); codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.EvaluateAuthorization); this.Warrant.Condition = codecondition1; this.Warrant.Name = "Warrant"; // // NotifyRequest // this.NotifyRequest.Bcc = null; this.NotifyRequest.Body = null; this.NotifyRequest.CC = null; this.NotifyRequest.Description = "Notifica al autorizador de la solicitud recibida."; this.NotifyRequest.From = "*****@*****.**"; this.NotifyRequest.Name = "NotifyRequest"; this.NotifyRequest.Port = 25; this.NotifyRequest.ReplyTo = null; this.NotifyRequest.SmtpHost = "localhost"; this.NotifyRequest.Subject = null; this.NotifyRequest.To = "*****@*****.**"; this.NotifyRequest.SendingEmail += new System.EventHandler(this.NotifyRequest_SendingEmail); // // AuthorizationRequested // this.AuthorizationRequested.Activities.Add(this.NotifyRequest); this.AuthorizationRequested.Activities.Add(this.Warrant); this.AuthorizationRequested.Name = "AuthorizationRequested"; // // AuthorizeEntries // this.Activities.Add(this.AuthorizationRequested); this.Name = "AuthorizeEntries"; this.Initialized += new System.EventHandler(this.InitializeProcessing); this.CanModifyActivities = false; }
private void InitializeComponent() { this.CanModifyActivities = true; System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken(); System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition(); System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition(); System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition(); System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind14 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind15 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind16 = new System.Workflow.ComponentModel.ActivityBind(); System.Workflow.ComponentModel.ActivityBind activitybind17 = new System.Workflow.ComponentModel.ActivityBind(); this.onTaskDeleted1 = new Microsoft.SharePoint.WorkflowActions.OnTaskDeleted(); this.onTaskChanged1 = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged(); this.throwActivity1 = new System.Workflow.ComponentModel.ThrowActivity(); this.codeActivity2 = new System.Workflow.Activities.CodeActivity(); this.logToHistoryListActivity5 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity(); this.logToHistoryListActivity4 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity(); this.completeTask1 = new Microsoft.SharePoint.WorkflowActions.CompleteTask(); this.eventDrivenActivity2 = new System.Workflow.Activities.EventDrivenActivity(); this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity(); this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity(); this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity(); this.listenActivity1 = new System.Workflow.Activities.ListenActivity(); this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity(); this.whileActivity1 = new System.Workflow.Activities.WhileActivity(); this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity(); this.codeActivity1 = new System.Workflow.Activities.CodeActivity(); this.createTaskWithContentType1 = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType(); this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity(); activitybind2.Name = "CreateTaskForMultiCT"; activitybind2.Path = "onTaskDeleted1_AfterProperties1"; // // onTaskDeleted1 // correlationtoken1.Name = "createTaskCT1Token"; correlationtoken1.OwnerActivityName = "sequenceActivity1"; this.onTaskDeleted1.CorrelationToken = correlationtoken1; this.onTaskDeleted1.Executor = null; this.onTaskDeleted1.Name = "onTaskDeleted1"; activitybind1.Name = "CreateTaskForMultiCT"; activitybind1.Path = "createTaskWithContentType1_TaskId1"; this.onTaskDeleted1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskDeleted1_Invoked); this.onTaskDeleted1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskDeleted.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2))); this.onTaskDeleted1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskDeleted.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1))); // // onTaskChanged1 // activitybind3.Name = "CreateTaskForMultiCT"; activitybind3.Path = "onTaskChanged1_AfterProperties1"; activitybind4.Name = "CreateTaskForMultiCT"; activitybind4.Path = "onTaskChanged1_BeforeProperties1"; this.onTaskChanged1.CorrelationToken = correlationtoken1; this.onTaskChanged1.Executor = null; this.onTaskChanged1.Name = "onTaskChanged1"; activitybind5.Name = "CreateTaskForMultiCT"; activitybind5.Path = "createTaskWithContentType1_TaskId1"; this.onTaskChanged1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked); this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3))); this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4))); this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5))); activitybind6.Name = "CreateTaskForMultiCT"; activitybind6.Path = "throwActivity1_Fault1"; // // throwActivity1 // this.throwActivity1.FaultType = typeof(System.Exception); this.throwActivity1.Name = "throwActivity1"; this.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6))); // // codeActivity2 // this.codeActivity2.Name = "codeActivity2"; this.codeActivity2.ExecuteCode += new System.EventHandler(this.codeActivity2_ExecuteCode); // // logToHistoryListActivity5 // this.logToHistoryListActivity5.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808"); this.logToHistoryListActivity5.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment; activitybind7.Name = "CreateTaskForMultiCT"; activitybind7.Path = "logToHistoryListActivity5_HistoryDescription1"; activitybind8.Name = "CreateTaskForMultiCT"; activitybind8.Path = "logToHistoryListActivity5_HistoryOutcome1"; this.logToHistoryListActivity5.Name = "logToHistoryListActivity5"; this.logToHistoryListActivity5.OtherData = ""; this.logToHistoryListActivity5.UserId = -1; this.logToHistoryListActivity5.MethodInvoking += new System.EventHandler(this.logToHistoryListActivity5_MethodInvoking); this.logToHistoryListActivity5.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7))); this.logToHistoryListActivity5.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8))); // // logToHistoryListActivity4 // this.logToHistoryListActivity4.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808"); this.logToHistoryListActivity4.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment; activitybind9.Name = "CreateTaskForMultiCT"; activitybind9.Path = "logToHistoryListActivity4_HistoryDescription1"; activitybind10.Name = "CreateTaskForMultiCT"; activitybind10.Path = "logToHistoryListActivity4_HistoryOutcome1"; this.logToHistoryListActivity4.Name = "logToHistoryListActivity4"; this.logToHistoryListActivity4.OtherData = ""; this.logToHistoryListActivity4.UserId = -1; this.logToHistoryListActivity4.MethodInvoking += new System.EventHandler(this.logToHistoryListActivity4_MethodInvoking); this.logToHistoryListActivity4.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9))); this.logToHistoryListActivity4.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10))); // // completeTask1 // this.completeTask1.CorrelationToken = correlationtoken1; this.completeTask1.Name = "completeTask1"; activitybind11.Name = "CreateTaskForMultiCT"; activitybind11.Path = "createTaskWithContentType1_TaskId1"; this.completeTask1.TaskOutcome = null; this.completeTask1.MethodInvoking += new System.EventHandler(this.completeTask1_MethodInvoking); this.completeTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11))); // // eventDrivenActivity2 // this.eventDrivenActivity2.Activities.Add(this.onTaskDeleted1); this.eventDrivenActivity2.Name = "eventDrivenActivity2"; // // eventDrivenActivity1 // this.eventDrivenActivity1.Activities.Add(this.onTaskChanged1); this.eventDrivenActivity1.Name = "eventDrivenActivity1"; // // ifElseBranchActivity2 // this.ifElseBranchActivity2.Activities.Add(this.logToHistoryListActivity5); this.ifElseBranchActivity2.Activities.Add(this.codeActivity2); this.ifElseBranchActivity2.Activities.Add(this.throwActivity1); codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IfElseActivity2_Condition); this.ifElseBranchActivity2.Condition = codecondition1; this.ifElseBranchActivity2.Name = "ifElseBranchActivity2"; // // ifElseBranchActivity1 // this.ifElseBranchActivity1.Activities.Add(this.completeTask1); this.ifElseBranchActivity1.Activities.Add(this.logToHistoryListActivity4); codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IfElseActivity1_Condition); this.ifElseBranchActivity1.Condition = codecondition2; this.ifElseBranchActivity1.Name = "ifElseBranchActivity1"; // // listenActivity1 // this.listenActivity1.Activities.Add(this.eventDrivenActivity1); this.listenActivity1.Activities.Add(this.eventDrivenActivity2); this.listenActivity1.Name = "listenActivity1"; // // ifElseActivity1 // this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1); this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2); this.ifElseActivity1.Name = "ifElseActivity1"; // // whileActivity1 // this.whileActivity1.Activities.Add(this.listenActivity1); codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.whileActivity1_Condition); this.whileActivity1.Condition = codecondition3; this.whileActivity1.Name = "whileActivity1"; // // logToHistoryListActivity1 // this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808"); this.logToHistoryListActivity1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment; activitybind12.Name = "CreateTaskForMultiCT"; activitybind12.Path = "logToHistoryListActivity1_HistoryDescription1"; activitybind13.Name = "CreateTaskForMultiCT"; activitybind13.Path = "logToHistoryListActivity1_HistoryOutcome1"; this.logToHistoryListActivity1.Name = "logToHistoryListActivity1"; this.logToHistoryListActivity1.OtherData = ""; this.logToHistoryListActivity1.UserId = -1; this.logToHistoryListActivity1.MethodInvoking += new System.EventHandler(this.logToHistoryListActivity1_MethodInvoking); this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12))); this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13))); // // codeActivity1 // this.codeActivity1.Name = "codeActivity1"; this.codeActivity1.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode); // // createTaskWithContentType1 // activitybind14.Name = "CreateTaskForMultiCT"; activitybind14.Path = "createTaskWithContentType1_ContentTypeId1"; this.createTaskWithContentType1.CorrelationToken = correlationtoken1; activitybind15.Name = "CreateTaskForMultiCT"; activitybind15.Path = "createTaskWithContentType1_ListItemId1"; this.createTaskWithContentType1.Name = "createTaskWithContentType1"; this.createTaskWithContentType1.SpecialPermissions = null; activitybind16.Name = "CreateTaskForMultiCT"; activitybind16.Path = "createTaskWithContentType1_TaskId1"; activitybind17.Name = "CreateTaskForMultiCT"; activitybind17.Path = "createTaskWithContentType1_TaskProperties1"; this.createTaskWithContentType1.MethodInvoking += new System.EventHandler(this.createTaskWithContentType1_MethodInvoking); this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14))); this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ListItemIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15))); this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16))); this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17))); // // sequenceActivity1 // this.sequenceActivity1.Activities.Add(this.createTaskWithContentType1); this.sequenceActivity1.Activities.Add(this.codeActivity1); this.sequenceActivity1.Activities.Add(this.logToHistoryListActivity1); this.sequenceActivity1.Activities.Add(this.whileActivity1); this.sequenceActivity1.Activities.Add(this.ifElseActivity1); this.sequenceActivity1.Name = "sequenceActivity1"; // // CreateTaskForMultiCT // this.Activities.Add(this.sequenceActivity1); this.Name = "CreateTaskForMultiCT"; this.CanModifyActivities = false; }
private void InitializeComponent() { this.CanModifyActivities = true; System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1 = new System.Workflow.Activities.Rules.RuleConditionReference(); this.CheckRequested = new System.Workflow.Activities.HandleExternalEventActivity(); this.AddToBill = new System.Workflow.Activities.HandleExternalEventActivity(); this.FoodIsRequested = new System.Workflow.Activities.HandleExternalEventActivity(); this.CustomerRequestsCheck = new System.Workflow.Activities.EventDrivenActivity(); this.AddFoodToBill = new System.Workflow.Activities.EventDrivenActivity(); this.FoodOrderRequest = new System.Workflow.Activities.EventDrivenActivity(); this.WaitForCustomerInput = new System.Workflow.Activities.ListenActivity(); this.CustomerPaied = new System.Workflow.Activities.HandleExternalEventActivity(); this.OrderLoop = new System.Workflow.Activities.WhileActivity(); // // CheckRequested // this.CheckRequested.EventName = "RequestCheck"; this.CheckRequested.InterfaceType = typeof(WorkflowLocalService.ICustomerLocalService); this.CheckRequested.Name = "CheckRequested"; this.CheckRequested.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.CheckRequest); // // AddToBill // this.AddToBill.EventName = "AddFoodOrderToBill"; this.AddToBill.InterfaceType = typeof(WorkflowLocalService.ICustomerLocalService); this.AddToBill.Name = "AddToBill"; this.AddToBill.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.AddFoodOrderToBill); // // FoodIsRequested // this.FoodIsRequested.EventName = "PlaceFoodOrder"; this.FoodIsRequested.InterfaceType = typeof(WorkflowLocalService.ICustomerLocalService); this.FoodIsRequested.Name = "FoodIsRequested"; // // CustomerRequestsCheck // this.CustomerRequestsCheck.Activities.Add(this.CheckRequested); this.CustomerRequestsCheck.Name = "CustomerRequestsCheck"; // // AddFoodToBill // this.AddFoodToBill.Activities.Add(this.AddToBill); this.AddFoodToBill.Name = "AddFoodToBill"; // // FoodOrderRequest // this.FoodOrderRequest.Activities.Add(this.FoodIsRequested); this.FoodOrderRequest.Name = "FoodOrderRequest"; // // WaitForCustomerInput // this.WaitForCustomerInput.Activities.Add(this.FoodOrderRequest); this.WaitForCustomerInput.Activities.Add(this.AddFoodToBill); this.WaitForCustomerInput.Activities.Add(this.CustomerRequestsCheck); this.WaitForCustomerInput.Name = "WaitForCustomerInput"; // // CustomerPaied // this.CustomerPaied.EventName = "OrderPaied"; this.CustomerPaied.InterfaceType = typeof(WorkflowLocalService.ICustomerLocalService); this.CustomerPaied.Name = "CustomerPaied"; this.CustomerPaied.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.Paied); // // OrderLoop // this.OrderLoop.Activities.Add(this.WaitForCustomerInput); ruleconditionreference1.ConditionName = "Condition1"; this.OrderLoop.Condition = ruleconditionreference1; this.OrderLoop.Name = "OrderLoop"; // // CustomerWorkflow // this.Activities.Add(this.OrderLoop); this.Activities.Add(this.CustomerPaied); this.Name = "CustomerWorkflow"; this.CanModifyActivities = false; }