private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind             activitybind1              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind2              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind3              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo1        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.WorkflowServiceAttributes    workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.codeActivity1    = new System.Workflow.Activities.CodeActivity();
     this.receiveActivity1 = new System.Workflow.Activities.ReceiveActivity();
     //
     // codeActivity1
     //
     this.codeActivity1.Name         = "codeActivity1";
     this.codeActivity1.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
     //
     // receiveActivity1
     //
     this.receiveActivity1.Activities.Add(this.codeActivity1);
     this.receiveActivity1.CanCreateInstance = true;
     this.receiveActivity1.Name = "receiveActivity1";
     activitybind1.Name         = "Workflow1";
     activitybind1.Path         = "inputMessage";
     workflowparameterbinding1.ParameterName = "inputMessage";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     activitybind2.Name = "Workflow1";
     activitybind2.Path = "returnValue";
     workflowparameterbinding2.ParameterName = "(ReturnValue)";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     activitybind3.Name = "Workflow1";
     activitybind3.Path = "inputMessage";
     workflowparameterbinding3.ParameterName = "message";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding1);
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding2);
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding3);
     typedoperationinfo1.ContractType             = typeof(ExposeWFService.IWorkflow1);
     typedoperationinfo1.Name                     = "Hello";
     this.receiveActivity1.ServiceOperationInfo   = typedoperationinfo1;
     workflowserviceattributes1.ConfigurationName = "Workflow1";
     workflowserviceattributes1.Name              = "Workflow1";
     //
     // Workflow1
     //
     this.Activities.Add(this.receiveActivity1);
     this.Name = "Workflow1";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.CanModifyActivities = false;
 }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes2 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.xmlInteractiveActivity1 = new Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity();
            workflowserviceattributes1.ConfigurationName = "Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity";
            workflowserviceattributes1.Name = "XmlInteractiveActivity";
            // 
            // xmlInteractiveActivity1
            // 
            this.xmlInteractiveActivity1.CreateFaultMessage = null;
            this.xmlInteractiveActivity1.CreateRequestMessage = null;
            this.xmlInteractiveActivity1.CreateResponseMessage = null;
            activitybind1.Name = "SimplePasswordReset";
            activitybind1.Path = "UserSubmittedDocument";
            activitybind2.Name = "SimplePasswordReset";
            activitybind2.Path = "ObjectTypeRequested";
            this.xmlInteractiveActivity1.EnableDefaultOperationValidation = true;
            activitybind3.Name = "SimplePasswordReset";
            activitybind3.Path = "AccessList";
            this.xmlInteractiveActivity1.MetadataFaultMessage = null;
            this.xmlInteractiveActivity1.MetadataRequestMessage = null;
            this.xmlInteractiveActivity1.MetadataResponseMessage = null;
            this.xmlInteractiveActivity1.Name = "xmlInteractiveActivity1";
            this.xmlInteractiveActivity1.ReferenceProperties = null;
            this.xmlInteractiveActivity1.ResourceAddress = null;
            this.xmlInteractiveActivity1.TimeoutDuration = System.TimeSpan.Parse("00:05:00");
            this.xmlInteractiveActivity1.ValidateSamlToken = true;
            this.xmlInteractiveActivity1.ReceiveTimeout += new System.EventHandler(this.ReceiveTimeout);
            this.xmlInteractiveActivity1.XmlDocumentValidation += new System.EventHandler<Microsoft.ResourceManagement.Workflow.Activities.XmlDocumentValidationEventArgs>(this.AttemptSimplePasswordReset);
            this.xmlInteractiveActivity1.CreateOperationValidation += new System.EventHandler<System.Workflow.Activities.OperationValidationEventArgs>(this.CustomUserValidation);
            this.xmlInteractiveActivity1.MetadataGetOperationValidation += new System.EventHandler<System.Workflow.Activities.OperationValidationEventArgs>(this.CustomUserValidation);
            this.xmlInteractiveActivity1.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.xmlInteractiveActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity.EndpointAccessUserListProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.xmlInteractiveActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity.DocumentTypeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.xmlInteractiveActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity.DocumentProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            workflowserviceattributes2.ConfigurationName = "FIM2010SampleInteractiveActivity.Activity1";
            workflowserviceattributes2.Name = "SimplePasswordReset";
            // 
            // SimplePasswordReset
            // 
            this.Activities.Add(this.xmlInteractiveActivity1);
            this.Name = "SimplePasswordReset";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes2);
            this.CanModifyActivities = false;

        }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     System.Workflow.ComponentModel.ActivityBind          activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes2 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.xmlInteractiveActivity1 = new Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity();
     workflowserviceattributes1.ConfigurationName = "Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity";
     workflowserviceattributes1.Name = "XmlInteractiveActivity";
     //
     // xmlInteractiveActivity1
     //
     this.xmlInteractiveActivity1.CreateFaultMessage    = null;
     this.xmlInteractiveActivity1.CreateRequestMessage  = null;
     this.xmlInteractiveActivity1.CreateResponseMessage = null;
     activitybind1.Name = "SimplePasswordReset";
     activitybind1.Path = "UserSubmittedDocument";
     activitybind2.Name = "SimplePasswordReset";
     activitybind2.Path = "ObjectTypeRequested";
     this.xmlInteractiveActivity1.EnableDefaultOperationValidation = true;
     activitybind3.Name = "SimplePasswordReset";
     activitybind3.Path = "AccessList";
     this.xmlInteractiveActivity1.MetadataFaultMessage    = null;
     this.xmlInteractiveActivity1.MetadataRequestMessage  = null;
     this.xmlInteractiveActivity1.MetadataResponseMessage = null;
     this.xmlInteractiveActivity1.Name = "xmlInteractiveActivity1";
     this.xmlInteractiveActivity1.ReferenceProperties             = null;
     this.xmlInteractiveActivity1.ResourceAddress                 = null;
     this.xmlInteractiveActivity1.TimeoutDuration                 = System.TimeSpan.Parse("00:05:00");
     this.xmlInteractiveActivity1.ValidateSamlToken               = true;
     this.xmlInteractiveActivity1.ReceiveTimeout                 += new System.EventHandler(this.ReceiveTimeout);
     this.xmlInteractiveActivity1.XmlDocumentValidation          += new System.EventHandler <Microsoft.ResourceManagement.Workflow.Activities.XmlDocumentValidationEventArgs>(this.AttemptSimplePasswordReset);
     this.xmlInteractiveActivity1.CreateOperationValidation      += new System.EventHandler <System.Workflow.Activities.OperationValidationEventArgs>(this.CustomUserValidation);
     this.xmlInteractiveActivity1.MetadataGetOperationValidation += new System.EventHandler <System.Workflow.Activities.OperationValidationEventArgs>(this.CustomUserValidation);
     this.xmlInteractiveActivity1.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.xmlInteractiveActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity.EndpointAccessUserListProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.xmlInteractiveActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity.DocumentTypeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.xmlInteractiveActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.XmlInteractiveActivity.DocumentProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     workflowserviceattributes2.ConfigurationName = "FIM2010SampleInteractiveActivity.Activity1";
     workflowserviceattributes2.Name = "SimplePasswordReset";
     //
     // SimplePasswordReset
     //
     this.Activities.Add(this.xmlInteractiveActivity1);
     this.Name = "SimplePasswordReset";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes2);
     this.CanModifyActivities = false;
 }
		private void InitializeComponent()
		{
			this.CanModifyActivities = true;
			System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
			System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
			System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
			System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
			System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
			System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
			this.receiveActivity1 = new System.Workflow.Activities.ReceiveActivity();
			// 
			// receiveActivity1
			//
			this.receiveActivity1.CanCreateInstance = true; 
			this.receiveActivity1.Name = "receiveActivity1";
			activitybind1.Name = "$safeitemrootname$";
			activitybind1.Path = "ReturnValue";
			workflowparameterbinding1.ParameterName = "(ReturnValue)";
			workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
			activitybind2.Name = "$safeitemrootname$";
			activitybind2.Path = "InputValue";
			workflowparameterbinding2.ParameterName = "value";
			workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
			this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding1);
			this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding2);
			typedoperationinfo1.ContractType = typeof($rootnamespace$.$contractName$);
			typedoperationinfo1.Name = "GetData";
			this.receiveActivity1.ServiceOperationInfo = typedoperationinfo1;
			workflowserviceattributes1.ConfigurationName = "$safeitemrootname$";
			workflowserviceattributes1.Name = "$safeitemrootname$";
			// 
			// $safeitemrootname$
			// 
			this.Activities.Add(this.receiveActivity1);
			this.Name = "$safeitemrootname$";
			this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
			this.CanModifyActivities = false;

		}
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind             activitybind1              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind2              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo1        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.WorkflowServiceAttributes    workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.receiveActivity1 = new System.Workflow.Activities.ReceiveActivity();
     //
     // receiveActivity1
     //
     this.receiveActivity1.CanCreateInstance = true;
     this.receiveActivity1.Name = "receiveActivity1";
     activitybind1.Name         = "Workflow1";
     activitybind1.Path         = "ReturnValue";
     workflowparameterbinding1.ParameterName = "(ReturnValue)";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     activitybind2.Name = "Workflow1";
     activitybind2.Path = "InputValue";
     workflowparameterbinding2.ParameterName = "value";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding1);
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding2);
     typedoperationinfo1.ContractType             = typeof($safeprojectname$.IWorkflow1);
     typedoperationinfo1.Name                     = "GetData";
     this.receiveActivity1.ServiceOperationInfo   = typedoperationinfo1;
     workflowserviceattributes1.ConfigurationName = "Workflow1";
     workflowserviceattributes1.Name              = "Workflow1";
     //
     // Workflow1
     //
     this.Activities.Add(this.receiveActivity1);
     this.Name = "Workflow1";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.CanModifyActivities = false;
 }
Beispiel #6
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind             activitybind1              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind2              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo1        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.WorkflowServiceAttributes    workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.setStateActivity1              = new System.Workflow.Activities.SetStateActivity();
     this.receiveActivity1               = new System.Workflow.Activities.ReceiveActivity();
     this.eventDrivenActivity1           = new System.Workflow.Activities.EventDrivenActivity();
     this.stateActivity1                 = new System.Workflow.Activities.StateActivity();
     this.$safeitemrootname$InitialState = new System.Workflow.Activities.StateActivity();
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "stateActivity1";
     //
     // receiveActivity1
     //
     this.receiveActivity1.CanCreateInstance = true;
     this.receiveActivity1.Name = "receiveActivity1";
     activitybind1.Name         = "$safeitemrootname$";
     activitybind1.Path         = "ReturnValue";
     workflowparameterbinding1.ParameterName = "(ReturnValue)";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     activitybind2.Name = "$safeitemrootname$";
     activitybind2.Path = "InputValue";
     workflowparameterbinding2.ParameterName = "value";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding1);
     this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding2);
     typedoperationinfo1.ContractType           = typeof($rootnamespace$.$contractName$);
     typedoperationinfo1.Name                   = "GetData";
     this.receiveActivity1.ServiceOperationInfo = typedoperationinfo1;
     //
     // eventDrivenActivity1
     //
     this.eventDrivenActivity1.Activities.Add(this.receiveActivity1);
     this.eventDrivenActivity1.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity1.Name = "eventDrivenActivity1";
     //
     // stateActivity1
     //
     this.stateActivity1.Name = "stateActivity1";
     //
     // $safeitemrootname$InitialState
     //
     this.$safeitemrootname$InitialState.Activities.Add(this.eventDrivenActivity1);
     this.$safeitemrootname$InitialState.Name     = "$safeitemrootname$InitialState";
     workflowserviceattributes1.ConfigurationName = "$safeitemrootname$";
     workflowserviceattributes1.Name = "$safeitemrootname$";
     //
     // $safeitemrootname$
     //
     this.Activities.Add(this.$safeitemrootname$InitialState);
     this.Activities.Add(this.stateActivity1);
     this.CompletedStateName     = "stateActivity1";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "$safeitemrootname$InitialState";
     this.Name = "$safeitemrootname$";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.CanModifyActivities = false;
 }
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ChannelToken endpoint1 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo2 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.DoReviewOrder = new System.Workflow.Activities.CodeActivity();
            this.ReceiveOrderDetails = new System.Workflow.Activities.ReceiveActivity();
            this.DoDisplayStatus = new System.Workflow.Activities.CodeActivity();
            this.SendSubmitOrder = new System.Workflow.Activities.SendActivity();
            // 
            // DoReviewOrder
            // 
            this.DoReviewOrder.Name = "DoReviewOrder";
            this.DoReviewOrder.ExecuteCode += new System.EventHandler(this.ReviewOrder);
            // 
            // ReceiveOrderDetails
            // 
            this.ReceiveOrderDetails.Activities.Add(this.DoReviewOrder);
            this.ReceiveOrderDetails.Name = "ReceiveOrderDetails";
            activitybind1.Name = "CustomerWorkflow";
            activitybind1.Path = "orderDetails";
            workflowparameterbinding1.ParameterName = "po";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            activitybind2.Name = "CustomerWorkflow";
            activitybind2.Path = "shippingQuote";
            workflowparameterbinding2.ParameterName = "quote";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            activitybind3.Name = "CustomerWorkflow";
            activitybind3.Path = "customerAck";
            workflowparameterbinding3.ParameterName = "(ReturnValue)";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.ReceiveOrderDetails.ParameterBindings.Add(workflowparameterbinding1);
            this.ReceiveOrderDetails.ParameterBindings.Add(workflowparameterbinding2);
            this.ReceiveOrderDetails.ParameterBindings.Add(workflowparameterbinding3);
            typedoperationinfo1.ContractType = typeof(Microsoft.WorkflowServices.Samples.IOrderDetails);
            typedoperationinfo1.Name = "OrderDetails";
            this.ReceiveOrderDetails.ServiceOperationInfo = typedoperationinfo1;
            // 
            // DoDisplayStatus
            // 
            this.DoDisplayStatus.Name = "DoDisplayStatus";
            this.DoDisplayStatus.ExecuteCode += new System.EventHandler(this.DisplayStatus);
            // 
            // SendSubmitOrder
            // 
            endpoint1.EndpointName = "SupplierEndPoint";
            endpoint1.Name = "SupplierEndPoint";
            endpoint1.OwnerActivityName = "CustomerWorkflow";
            this.SendSubmitOrder.ChannelToken = endpoint1;
            this.SendSubmitOrder.Name = "SendSubmitOrder";
            activitybind4.Name = "CustomerWorkflow";
            activitybind4.Path = "order";
            workflowparameterbinding4.ParameterName = "po";
            workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            activitybind5.Name = "CustomerWorkflow";
            activitybind5.Path = "contextToSend";
            workflowparameterbinding5.ParameterName = "context";
            workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            activitybind6.Name = "CustomerWorkflow";
            activitybind6.Path = "supplierAck";
            workflowparameterbinding6.ParameterName = "(ReturnValue)";
            workflowparameterbinding6.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.SendSubmitOrder.ParameterBindings.Add(workflowparameterbinding4);
            this.SendSubmitOrder.ParameterBindings.Add(workflowparameterbinding5);
            this.SendSubmitOrder.ParameterBindings.Add(workflowparameterbinding6);
            typedoperationinfo2.ContractType = typeof(Microsoft.WorkflowServices.Samples.IOrder);
            typedoperationinfo2.Name = "SubmitOrder";
            this.SendSubmitOrder.ServiceOperationInfo = typedoperationinfo2;
            this.SendSubmitOrder.BeforeSend += new System.EventHandler<System.Workflow.Activities.SendActivityEventArgs>(this.PrepareOrder);
            // 
            // CustomerWorkflow
            // 
            this.Activities.Add(this.SendSubmitOrder);
            this.Activities.Add(this.DoDisplayStatus);
            this.Activities.Add(this.ReceiveOrderDetails);
            this.Name = "CustomerWorkflow";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.CanModifyActivities = false;

		}
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.Activities.ContextToken contexttoken1 = new System.Workflow.Activities.ContextToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ChannelToken channeltoken1 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo2 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ContextToken contexttoken2 = new System.Workflow.Activities.ContextToken();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo3 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ChannelToken channeltoken2 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding7 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding8 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo4 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ContextToken contexttoken3 = new System.Workflow.Activities.ContextToken();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding9 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo5 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ChannelToken channeltoken3 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding10 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding11 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding12 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo6 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.ChannelToken channeltoken4 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding13 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind14 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding14 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo7 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.ComponentModel.ActivityBind activitybind15 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding15 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind16 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding16 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind17 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding17 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo8 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.Shipper3ShippingQuote = new System.Workflow.Activities.CodeActivity();
            this.Shipper2ShippingQuote = new System.Workflow.Activities.CodeActivity();
            this.Shipper1ShippingQuote = new System.Workflow.Activities.CodeActivity();
            this.ReceiveQuoteFromShipper3 = new System.Workflow.Activities.ReceiveActivity();
            this.RequestQuoteFromShipper3 = new System.Workflow.Activities.SendActivity();
            this.ReceiveQuoteFromShipper2 = new System.Workflow.Activities.ReceiveActivity();
            this.RequestQuoteFromShipper2 = new System.Workflow.Activities.SendActivity();
            this.ReceiveQuoteFromShipper1 = new System.Workflow.Activities.ReceiveActivity();
            this.RequestQuoteFromShipper1 = new System.Workflow.Activities.SendActivity();
            this.Shipper3Quote = new System.Workflow.Activities.SequenceActivity();
            this.Shipper2Quote = new System.Workflow.Activities.SequenceActivity();
            this.Shipper1Quote = new System.Workflow.Activities.SequenceActivity();
            this.DoAcceptOrder = new System.Workflow.Activities.CodeActivity();
            this.SendOrderDetails = new System.Workflow.Activities.SendActivity();
            this.GetShippingQuotes = new System.Workflow.Activities.ParallelActivity();
            this.ReceiveSubmitOrder = new System.Workflow.Activities.ReceiveActivity();
            // 
            // Shipper3ShippingQuote
            // 
            this.Shipper3ShippingQuote.Name = "Shipper3ShippingQuote";
            this.Shipper3ShippingQuote.ExecuteCode += new System.EventHandler(this.ReceiveShipper3ShippingQuote);
            // 
            // Shipper2ShippingQuote
            // 
            this.Shipper2ShippingQuote.Name = "Shipper2ShippingQuote";
            this.Shipper2ShippingQuote.ExecuteCode += new System.EventHandler(this.ReceiveShipper2ShippingQuote);
            // 
            // Shipper1ShippingQuote
            // 
            this.Shipper1ShippingQuote.Name = "Shipper1ShippingQuote";
            this.Shipper1ShippingQuote.ExecuteCode += new System.EventHandler(this.ReceiveShipper1ShippingQuote);
            // 
            // ReceiveQuoteFromShipper3
            // 
            this.ReceiveQuoteFromShipper3.Activities.Add(this.Shipper3ShippingQuote);
            contexttoken1.Name = "Shipper3Context";
            this.ReceiveQuoteFromShipper3.ContextToken = contexttoken1;
            this.ReceiveQuoteFromShipper3.Name = "ReceiveQuoteFromShipper3";
            activitybind1.Name = "SupplierWorkflow";
            activitybind1.Path = "quoteShipper3";
            workflowparameterbinding1.ParameterName = "quote";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.ReceiveQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding1);
            typedoperationinfo1.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
            typedoperationinfo1.Name = "ShippingQuote";
            this.ReceiveQuoteFromShipper3.ServiceOperationInfo = typedoperationinfo1;
            // 
            // RequestQuoteFromShipper3
            // 
            channeltoken1.EndpointName = "Shipper3Endpoint";
            channeltoken1.Name = "Shipper3Endpoint";
            channeltoken1.OwnerActivityName = "GetShippingQuotes";
            this.RequestQuoteFromShipper3.ChannelToken = channeltoken1;
            this.RequestQuoteFromShipper3.Name = "RequestQuoteFromShipper3";
            activitybind2.Name = "SupplierWorkflow";
            activitybind2.Path = "order";
            workflowparameterbinding2.ParameterName = "po";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            activitybind3.Name = "SupplierWorkflow";
            activitybind3.Path = "contextShipper3";
            workflowparameterbinding3.ParameterName = "context";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            activitybind4.Name = "SupplierWorkflow";
            activitybind4.Path = "ackShipper3";
            workflowparameterbinding4.ParameterName = "(ReturnValue)";
            workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.RequestQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding2);
            this.RequestQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding3);
            this.RequestQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding4);
            typedoperationinfo2.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
            typedoperationinfo2.Name = "RequestShippingQuote";
            this.RequestQuoteFromShipper3.ServiceOperationInfo = typedoperationinfo2;
            this.RequestQuoteFromShipper3.BeforeSend += new System.EventHandler<System.Workflow.Activities.SendActivityEventArgs>(this.PrepareShipper3Request);
            // 
            // ReceiveQuoteFromShipper2
            // 
            this.ReceiveQuoteFromShipper2.Activities.Add(this.Shipper2ShippingQuote);
            contexttoken2.Name = "Shipper2Context";
            contexttoken2.OwnerActivityName = "GetShippingQuotes";
            this.ReceiveQuoteFromShipper2.ContextToken = contexttoken2;
            this.ReceiveQuoteFromShipper2.Name = "ReceiveQuoteFromShipper2";
            activitybind5.Name = "SupplierWorkflow";
            activitybind5.Path = "quoteShipper2";
            workflowparameterbinding5.ParameterName = "quote";
            workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.ReceiveQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding5);
            typedoperationinfo3.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
            typedoperationinfo3.Name = "ShippingQuote";
            this.ReceiveQuoteFromShipper2.ServiceOperationInfo = typedoperationinfo3;
            // 
            // RequestQuoteFromShipper2
            // 
            channeltoken2.EndpointName = "Shipper2Endpoint";
            channeltoken2.Name = "Shipper2Endpoint";
            channeltoken2.OwnerActivityName = "GetShippingQuotes";
            this.RequestQuoteFromShipper2.ChannelToken = channeltoken2;
            this.RequestQuoteFromShipper2.Name = "RequestQuoteFromShipper2";
            activitybind6.Name = "SupplierWorkflow";
            activitybind6.Path = "ackShipper2";
            workflowparameterbinding6.ParameterName = "(ReturnValue)";
            workflowparameterbinding6.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            activitybind7.Name = "SupplierWorkflow";
            activitybind7.Path = "order";
            workflowparameterbinding7.ParameterName = "po";
            workflowparameterbinding7.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            activitybind8.Name = "SupplierWorkflow";
            activitybind8.Path = "contextShipper2";
            workflowparameterbinding8.ParameterName = "context";
            workflowparameterbinding8.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            this.RequestQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding6);
            this.RequestQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding7);
            this.RequestQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding8);
            typedoperationinfo4.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
            typedoperationinfo4.Name = "RequestShippingQuote";
            this.RequestQuoteFromShipper2.ServiceOperationInfo = typedoperationinfo4;
            this.RequestQuoteFromShipper2.BeforeSend += new System.EventHandler<System.Workflow.Activities.SendActivityEventArgs>(this.PrepareShipper2Request);
            // 
            // ReceiveQuoteFromShipper1
            // 
            this.ReceiveQuoteFromShipper1.Activities.Add(this.Shipper1ShippingQuote);
            contexttoken3.Name = "Shipper1Context";
            contexttoken3.OwnerActivityName = "GetShippingQuotes";
            this.ReceiveQuoteFromShipper1.ContextToken = contexttoken3;
            this.ReceiveQuoteFromShipper1.Name = "ReceiveQuoteFromShipper1";
            activitybind9.Name = "SupplierWorkflow";
            activitybind9.Path = "quoteShipper1";
            workflowparameterbinding9.ParameterName = "quote";
            workflowparameterbinding9.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.ReceiveQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding9);
            typedoperationinfo5.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
            typedoperationinfo5.Name = "ShippingQuote";
            this.ReceiveQuoteFromShipper1.ServiceOperationInfo = typedoperationinfo5;
            // 
            // RequestQuoteFromShipper1
            // 
            channeltoken3.EndpointName = "Shipper1Endpoint";
            channeltoken3.Name = "Shipper1Endpoint";
            channeltoken3.OwnerActivityName = "GetShippingQuotes";
            this.RequestQuoteFromShipper1.ChannelToken = channeltoken3;
            this.RequestQuoteFromShipper1.Name = "RequestQuoteFromShipper1";
            activitybind10.Name = "SupplierWorkflow";
            activitybind10.Path = "order";
            workflowparameterbinding10.ParameterName = "po";
            workflowparameterbinding10.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            activitybind11.Name = "SupplierWorkflow";
            activitybind11.Path = "contextShipper1";
            workflowparameterbinding11.ParameterName = "context";
            workflowparameterbinding11.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            activitybind12.Name = "SupplierWorkflow";
            activitybind12.Path = "ackShipper1";
            workflowparameterbinding12.ParameterName = "(ReturnValue)";
            workflowparameterbinding12.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            this.RequestQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding10);
            this.RequestQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding11);
            this.RequestQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding12);
            typedoperationinfo6.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
            typedoperationinfo6.Name = "RequestShippingQuote";
            this.RequestQuoteFromShipper1.ServiceOperationInfo = typedoperationinfo6;
            this.RequestQuoteFromShipper1.BeforeSend += new System.EventHandler<System.Workflow.Activities.SendActivityEventArgs>(this.PrepareShipper1Request);
            // 
            // Shipper3Quote
            // 
            this.Shipper3Quote.Activities.Add(this.RequestQuoteFromShipper3);
            this.Shipper3Quote.Activities.Add(this.ReceiveQuoteFromShipper3);
            this.Shipper3Quote.Name = "Shipper3Quote";
            // 
            // Shipper2Quote
            // 
            this.Shipper2Quote.Activities.Add(this.RequestQuoteFromShipper2);
            this.Shipper2Quote.Activities.Add(this.ReceiveQuoteFromShipper2);
            this.Shipper2Quote.Name = "Shipper2Quote";
            // 
            // Shipper1Quote
            // 
            this.Shipper1Quote.Activities.Add(this.RequestQuoteFromShipper1);
            this.Shipper1Quote.Activities.Add(this.ReceiveQuoteFromShipper1);
            this.Shipper1Quote.Name = "Shipper1Quote";
            // 
            // DoAcceptOrder
            // 
            this.DoAcceptOrder.Name = "DoAcceptOrder";
            this.DoAcceptOrder.ExecuteCode += new System.EventHandler(this.AcceptOrder);
            // 
            // SendOrderDetails
            // 
            channeltoken4.EndpointName = "CustomerEndpoint";
            channeltoken4.Name = "CustomerEndpoint";
            channeltoken4.OwnerActivityName = "SupplierWorkflow";
            this.SendOrderDetails.ChannelToken = channeltoken4;
            this.SendOrderDetails.Name = "SendOrderDetails";
            activitybind13.Name = "SupplierWorkflow";
            activitybind13.Path = "confirmedQuote";
            workflowparameterbinding13.ParameterName = "quote";
            workflowparameterbinding13.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            activitybind14.Name = "SupplierWorkflow";
            activitybind14.Path = "confirmedOrder";
            workflowparameterbinding14.ParameterName = "po";
            workflowparameterbinding14.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
            this.SendOrderDetails.ParameterBindings.Add(workflowparameterbinding13);
            this.SendOrderDetails.ParameterBindings.Add(workflowparameterbinding14);
            typedoperationinfo7.ContractType = typeof(Microsoft.WorkflowServices.Samples.IOrderDetails);
            typedoperationinfo7.Name = "OrderDetails";
            this.SendOrderDetails.ServiceOperationInfo = typedoperationinfo7;
            this.SendOrderDetails.BeforeSend += new System.EventHandler<System.Workflow.Activities.SendActivityEventArgs>(this.PrepareOrderConfirmation);
            // 
            // GetShippingQuotes
            // 
            this.GetShippingQuotes.Activities.Add(this.Shipper1Quote);
            this.GetShippingQuotes.Activities.Add(this.Shipper2Quote);
            this.GetShippingQuotes.Activities.Add(this.Shipper3Quote);
            this.GetShippingQuotes.Name = "GetShippingQuotes";
            // 
            // ReceiveSubmitOrder
            // 
            this.ReceiveSubmitOrder.Activities.Add(this.DoAcceptOrder);
            this.ReceiveSubmitOrder.CanCreateInstance = true;
            this.ReceiveSubmitOrder.Name = "ReceiveSubmitOrder";
            activitybind15.Name = "SupplierWorkflow";
            activitybind15.Path = "order";
            workflowparameterbinding15.ParameterName = "po";
            workflowparameterbinding15.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
            activitybind16.Name = "SupplierWorkflow";
            activitybind16.Path = "customerContext";
            workflowparameterbinding16.ParameterName = "context";
            workflowparameterbinding16.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
            activitybind17.Name = "SupplierWorkflow";
            activitybind17.Path = "supplierAck";
            workflowparameterbinding17.ParameterName = "(ReturnValue)";
            workflowparameterbinding17.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
            this.ReceiveSubmitOrder.ParameterBindings.Add(workflowparameterbinding15);
            this.ReceiveSubmitOrder.ParameterBindings.Add(workflowparameterbinding16);
            this.ReceiveSubmitOrder.ParameterBindings.Add(workflowparameterbinding17);
            typedoperationinfo8.ContractType = typeof(Microsoft.WorkflowServices.Samples.IOrder);
            typedoperationinfo8.Name = "SubmitOrder";
            this.ReceiveSubmitOrder.ServiceOperationInfo = typedoperationinfo8;
            // 
            // SupplierWorkflow
            // 
            this.Activities.Add(this.ReceiveSubmitOrder);
            this.Activities.Add(this.GetShippingQuotes);
            this.Activities.Add(this.SendOrderDetails);
            this.Name = "SupplierWorkflow";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.CanModifyActivities = false;

		}
Beispiel #9
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.ChannelToken                 endpoint1                  = new System.Workflow.Activities.ChannelToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind1              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo1        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.ComponentModel.ActivityBind             activitybind2              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind3              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind4              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo2        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.WorkflowServiceAttributes    workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.DoAcceptQuoteRequest = new System.Workflow.Activities.CodeActivity();
     this.SendShippingQuote    = new System.Workflow.Activities.SendActivity();
     this.Delay = new System.Workflow.Activities.DelayActivity();
     this.ReceiveRequestShippingQuote = new System.Workflow.Activities.ReceiveActivity();
     //
     // DoAcceptQuoteRequest
     //
     this.DoAcceptQuoteRequest.Name         = "DoAcceptQuoteRequest";
     this.DoAcceptQuoteRequest.ExecuteCode += new System.EventHandler(this.AcceptQuoteRequest);
     //
     // SendShippingQuote
     //
     endpoint1.EndpointName = "SupplierEndpoint";
     endpoint1.Name         = "SupplierEndpoint";
     this.SendShippingQuote.ChannelToken = endpoint1;
     this.SendShippingQuote.Name         = "SendShippingQuote";
     activitybind1.Name = "ShipperWorkflow";
     activitybind1.Path = "quote";
     workflowparameterbinding1.ParameterName = "quote";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.SendShippingQuote.ParameterBindings.Add(workflowparameterbinding1);
     typedoperationinfo1.ContractType            = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
     typedoperationinfo1.Name                    = "ShippingQuote";
     this.SendShippingQuote.ServiceOperationInfo = typedoperationinfo1;
     this.SendShippingQuote.BeforeSend          += new System.EventHandler <System.Workflow.Activities.SendActivityEventArgs>(this.PrepareQuote);
     //
     // Delay
     //
     this.Delay.Name            = "Delay";
     this.Delay.TimeoutDuration = System.TimeSpan.Parse("00:00:04");
     //
     // ReceiveRequestShippingQuote
     //
     this.ReceiveRequestShippingQuote.Activities.Add(this.DoAcceptQuoteRequest);
     this.ReceiveRequestShippingQuote.CanCreateInstance = true;
     this.ReceiveRequestShippingQuote.Name = "ReceiveRequestShippingQuote";
     activitybind2.Name = "ShipperWorkflow";
     activitybind2.Path = "supplierAck";
     workflowparameterbinding2.ParameterName = "(ReturnValue)";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     activitybind3.Name = "ShipperWorkflow";
     activitybind3.Path = "order";
     workflowparameterbinding3.ParameterName = "po";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     activitybind4.Name = "ShipperWorkflow";
     activitybind4.Path = "supplierContext";
     workflowparameterbinding4.ParameterName = "context";
     workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.ReceiveRequestShippingQuote.ParameterBindings.Add(workflowparameterbinding2);
     this.ReceiveRequestShippingQuote.ParameterBindings.Add(workflowparameterbinding3);
     this.ReceiveRequestShippingQuote.ParameterBindings.Add(workflowparameterbinding4);
     typedoperationinfo2.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
     typedoperationinfo2.Name         = "RequestShippingQuote";
     this.ReceiveRequestShippingQuote.ServiceOperationInfo = typedoperationinfo2;
     //
     // ShipperWorkflow
     //
     this.Activities.Add(this.ReceiveRequestShippingQuote);
     this.Activities.Add(this.Delay);
     this.Activities.Add(this.SendShippingQuote);
     this.Name = "ShipperWorkflow";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.CanModifyActivities = false;
 }
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.Activities.ChannelToken endpoint1 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo2 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.DoAcceptQuoteRequest = new System.Workflow.Activities.CodeActivity();
            this.SendShippingQuote = new System.Workflow.Activities.SendActivity();
            this.Delay = new System.Workflow.Activities.DelayActivity();
            this.ReceiveRequestShippingQuote = new System.Workflow.Activities.ReceiveActivity();
            // 
            // DoAcceptQuoteRequest
            // 
            this.DoAcceptQuoteRequest.Name = "DoAcceptQuoteRequest";
            this.DoAcceptQuoteRequest.ExecuteCode += new System.EventHandler(this.AcceptQuoteRequest);
            // 
            // SendShippingQuote
            // 
            endpoint1.EndpointName = "SupplierEndpoint";
            endpoint1.Name = "SupplierEndpoint";
            this.SendShippingQuote.ChannelToken = endpoint1;
            this.SendShippingQuote.Name = "SendShippingQuote";
            activitybind1.Name = "ShipperWorkflow";
            activitybind1.Path = "quote";
            workflowparameterbinding1.ParameterName = "quote";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.SendShippingQuote.ParameterBindings.Add(workflowparameterbinding1);
            typedoperationinfo1.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
            typedoperationinfo1.Name = "ShippingQuote";
            this.SendShippingQuote.ServiceOperationInfo = typedoperationinfo1;
            this.SendShippingQuote.BeforeSend += new System.EventHandler<System.Workflow.Activities.SendActivityEventArgs>(this.PrepareQuote);
            // 
            // Delay
            // 
            this.Delay.Name = "Delay";
            this.Delay.TimeoutDuration = System.TimeSpan.Parse("00:00:04");
            // 
            // ReceiveRequestShippingQuote
            // 
            this.ReceiveRequestShippingQuote.Activities.Add(this.DoAcceptQuoteRequest);
            this.ReceiveRequestShippingQuote.CanCreateInstance = true;
            this.ReceiveRequestShippingQuote.Name = "ReceiveRequestShippingQuote";
            activitybind2.Name = "ShipperWorkflow";
            activitybind2.Path = "supplierAck";
            workflowparameterbinding2.ParameterName = "(ReturnValue)";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            activitybind3.Name = "ShipperWorkflow";
            activitybind3.Path = "order";
            workflowparameterbinding3.ParameterName = "po";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            activitybind4.Name = "ShipperWorkflow";
            activitybind4.Path = "supplierContext";
            workflowparameterbinding4.ParameterName = "context";
            workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.ReceiveRequestShippingQuote.ParameterBindings.Add(workflowparameterbinding2);
            this.ReceiveRequestShippingQuote.ParameterBindings.Add(workflowparameterbinding3);
            this.ReceiveRequestShippingQuote.ParameterBindings.Add(workflowparameterbinding4);
            typedoperationinfo2.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
            typedoperationinfo2.Name = "RequestShippingQuote";
            this.ReceiveRequestShippingQuote.ServiceOperationInfo = typedoperationinfo2;
            // 
            // ShipperWorkflow
            // 
            this.Activities.Add(this.ReceiveRequestShippingQuote);
            this.Activities.Add(this.Delay);
            this.Activities.Add(this.SendShippingQuote);
            this.Name = "ShipperWorkflow";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            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.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.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();
     System.Workflow.ComponentModel.ActivityBind          activitybind18             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind19             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind20             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind21             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind22             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind23             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind          activitybind24             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.terminateActivity2            = new System.Workflow.ComponentModel.TerminateActivity();
     this.SendAuthFailEmail             = new Commerce.Pipelines.Activities.SendEmailActivity();
     this.terminateActivity1            = new System.Workflow.ComponentModel.TerminateActivity();
     this.SendInvalidShippingToCustomer = new Commerce.Pipelines.Activities.SendEmailActivity();
     this.terminateActivity3            = new System.Workflow.ComponentModel.TerminateActivity();
     this.SendAdminErrorEmail           = new Commerce.Pipelines.Activities.SendEmailActivity();
     this.faultHandlerActivity2         = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.CatchAddressFail             = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.faultHandlerActivity3        = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.faultHandlersActivity2       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.AuthPayment                  = new Commerce.Pipelines.Activities.AuthorizePaymentActivity();
     this.HandleBadAddress             = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.ValidateShipping             = new Commerce.Pipelines.Activities.ValidateAddressActivity();
     this.cancellationHandlerActivity1 = new System.Workflow.ComponentModel.CancellationHandlerActivity();
     this.PipeFailureHandler           = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.AdminNewOrderEmail           = new Commerce.Pipelines.Activities.SendEmailActivity();
     this.AdjustInventory              = new Commerce.Pipelines.Activities.AdjustInventoryActivity();
     this.SaveOrder           = new Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity();
     this.SetAsVerified       = new Commerce.Pipelines.Activities.SetOrderStatusActivity();
     this.AuthPaymentSequence = new System.Workflow.Activities.SequenceActivity();
     this.ShippingSequence    = new System.Workflow.Activities.SequenceActivity();
     this.SendThankYouEmail   = new Commerce.Pipelines.Activities.SendEmailActivity();
     this.SaveInitialOrder    = new Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity();
     this.SetAsSubmitted      = new Commerce.Pipelines.Activities.SetOrderStatusActivity();
     //
     // terminateActivity2
     //
     this.terminateActivity2.Name = "terminateActivity2";
     //
     // SendAuthFailEmail
     //
     activitybind1.Name = "SubmitOrderWorkflow";
     activitybind1.Path = "CustomerOrder";
     activitybind2.Name = "SubmitOrderWorkflow";
     activitybind2.Path = "MailerServiceInterface";
     this.SendAuthFailEmail.MailType = Commerce.Data.MailerType.CustomerPaymentAuthFailed;
     this.SendAuthFailEmail.Name     = "SendAuthFailEmail";
     this.SendAuthFailEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.SendAuthFailEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // terminateActivity1
     //
     this.terminateActivity1.Name = "terminateActivity1";
     //
     // SendInvalidShippingToCustomer
     //
     activitybind3.Name = "SubmitOrderWorkflow";
     activitybind3.Path = "CustomerOrder";
     activitybind4.Name = "SubmitOrderWorkflow";
     activitybind4.Path = "MailerServiceInterface";
     this.SendInvalidShippingToCustomer.MailType = Commerce.Data.MailerType.CustomerAddressValidationFailed;
     this.SendInvalidShippingToCustomer.Name     = "SendInvalidShippingToCustomer";
     this.SendInvalidShippingToCustomer.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.SendInvalidShippingToCustomer.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // terminateActivity3
     //
     this.terminateActivity3.Name = "terminateActivity3";
     //
     // SendAdminErrorEmail
     //
     activitybind5.Name = "SubmitOrderWorkflow";
     activitybind5.Path = "CustomerOrder";
     activitybind6.Name = "SubmitOrderWorkflow";
     activitybind6.Path = "MailerServiceInterface";
     this.SendAdminErrorEmail.MailType = Commerce.Data.MailerType.AdminProcessingError;
     this.SendAdminErrorEmail.Name     = "SendAdminErrorEmail";
     this.SendAdminErrorEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.SendAdminErrorEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // faultHandlerActivity2
     //
     this.faultHandlerActivity2.Activities.Add(this.SendAuthFailEmail);
     this.faultHandlerActivity2.Activities.Add(this.terminateActivity2);
     this.faultHandlerActivity2.FaultType = typeof(System.Exception);
     this.faultHandlerActivity2.Name      = "faultHandlerActivity2";
     //
     // CatchAddressFail
     //
     this.CatchAddressFail.Activities.Add(this.SendInvalidShippingToCustomer);
     this.CatchAddressFail.Activities.Add(this.terminateActivity1);
     this.CatchAddressFail.FaultType = typeof(System.Exception);
     this.CatchAddressFail.Name      = "CatchAddressFail";
     //
     // faultHandlerActivity3
     //
     this.faultHandlerActivity3.Activities.Add(this.SendAdminErrorEmail);
     this.faultHandlerActivity3.Activities.Add(this.terminateActivity3);
     this.faultHandlerActivity3.FaultType = typeof(System.ApplicationException);
     this.faultHandlerActivity3.Name      = "faultHandlerActivity3";
     //
     // faultHandlersActivity2
     //
     this.faultHandlersActivity2.Activities.Add(this.faultHandlerActivity2);
     this.faultHandlersActivity2.Name = "faultHandlersActivity2";
     //
     // AuthPayment
     //
     activitybind7.Name    = "SubmitOrderWorkflow";
     activitybind7.Path    = "CustomerOrder";
     this.AuthPayment.Name = "AuthPayment";
     activitybind8.Name    = "SubmitOrderWorkflow";
     activitybind8.Path    = "PaymentServiceInterface";
     this.AuthPayment.SetBinding(Commerce.Pipelines.Activities.AuthorizePaymentActivity.PaymentGatewayProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     this.AuthPayment.SetBinding(Commerce.Pipelines.Activities.AuthorizePaymentActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // HandleBadAddress
     //
     this.HandleBadAddress.Activities.Add(this.CatchAddressFail);
     this.HandleBadAddress.Name = "HandleBadAddress";
     //
     // ValidateShipping
     //
     activitybind9.Name         = "SubmitOrderWorkflow";
     activitybind9.Path         = "AddressValidationInterface";
     activitybind10.Name        = "SubmitOrderWorkflow";
     activitybind10.Path        = "CustomerOrder.ShippingAddress";
     this.ValidateShipping.Name = "ValidateShipping";
     this.ValidateShipping.SetBinding(Commerce.Pipelines.Activities.ValidateAddressActivity.AddressServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.ValidateShipping.SetBinding(Commerce.Pipelines.Activities.ValidateAddressActivity.AddressToVerifyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     //
     // cancellationHandlerActivity1
     //
     this.cancellationHandlerActivity1.Name = "cancellationHandlerActivity1";
     //
     // PipeFailureHandler
     //
     this.PipeFailureHandler.Activities.Add(this.faultHandlerActivity3);
     this.PipeFailureHandler.Name = "PipeFailureHandler";
     //
     // AdminNewOrderEmail
     //
     activitybind11.Name = "SubmitOrderWorkflow";
     activitybind11.Path = "CustomerOrder";
     activitybind12.Name = "SubmitOrderWorkflow";
     activitybind12.Path = "MailerServiceInterface";
     this.AdminNewOrderEmail.MailType = Commerce.Data.MailerType.AdminOrderReceived;
     this.AdminNewOrderEmail.Name     = "AdminNewOrderEmail";
     this.AdminNewOrderEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     this.AdminNewOrderEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     //
     // AdjustInventory
     //
     activitybind13.Name       = "SubmitOrderWorkflow";
     activitybind13.Path       = "CustomerOrder";
     activitybind14.Name       = "SubmitOrderWorkflow";
     activitybind14.Path       = "InventoryServiceInterface";
     this.AdjustInventory.Name = "AdjustInventory";
     this.AdjustInventory.SetBinding(Commerce.Pipelines.Activities.AdjustInventoryActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.AdjustInventory.SetBinding(Commerce.Pipelines.Activities.AdjustInventoryActivity.InventoryInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     //
     // SaveOrder
     //
     activitybind15.Name = "SubmitOrderWorkflow";
     activitybind15.Path = "CustomerOrder";
     this.SaveOrder.Name = "SaveOrder";
     activitybind16.Name = "SubmitOrderWorkflow";
     activitybind16.Path = "OrderServiceInterface";
     this.SaveOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     this.SaveOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     //
     // SetAsVerified
     //
     activitybind17.Name = "SubmitOrderWorkflow";
     activitybind17.Path = "CustomerOrder";
     this.SetAsVerified.CustomerOrderStatus = Commerce.Data.OrderStatus.Verified;
     this.SetAsVerified.Name = "SetAsVerified";
     activitybind18.Name     = "SubmitOrderWorkflow";
     activitybind18.Path     = "OrderServiceInterface";
     this.SetAsVerified.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     this.SetAsVerified.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
     //
     // AuthPaymentSequence
     //
     this.AuthPaymentSequence.Activities.Add(this.AuthPayment);
     this.AuthPaymentSequence.Activities.Add(this.faultHandlersActivity2);
     this.AuthPaymentSequence.Name = "AuthPaymentSequence";
     //
     // ShippingSequence
     //
     this.ShippingSequence.Activities.Add(this.ValidateShipping);
     this.ShippingSequence.Activities.Add(this.HandleBadAddress);
     this.ShippingSequence.Name = "ShippingSequence";
     //
     // SendThankYouEmail
     //
     activitybind19.Name             = "SubmitOrderWorkflow";
     activitybind19.Path             = "CustomerOrder";
     activitybind20.Name             = "SubmitOrderWorkflow";
     activitybind20.Path             = "MailerServiceInterface";
     this.SendThankYouEmail.MailType = Commerce.Data.MailerType.CustomerOrderReceived;
     this.SendThankYouEmail.Name     = "SendThankYouEmail";
     this.SendThankYouEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
     this.SendThankYouEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
     //
     // SaveInitialOrder
     //
     activitybind21.Name        = "SubmitOrderWorkflow";
     activitybind21.Path        = "CustomerOrder";
     this.SaveInitialOrder.Name = "SaveInitialOrder";
     activitybind22.Name        = "SubmitOrderWorkflow";
     activitybind22.Path        = "OrderServiceInterface";
     this.SaveInitialOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind21)));
     this.SaveInitialOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind22)));
     //
     // SetAsSubmitted
     //
     activitybind23.Name = "SubmitOrderWorkflow";
     activitybind23.Path = "CustomerOrder";
     this.SetAsSubmitted.CustomerOrderStatus = Commerce.Data.OrderStatus.Submitted;
     this.SetAsSubmitted.Name = "SetAsSubmitted";
     activitybind24.Name      = "SubmitOrderWorkflow";
     activitybind24.Path      = "OrderServiceInterface";
     this.SetAsSubmitted.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind23)));
     this.SetAsSubmitted.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind24)));
     workflowserviceattributes1.ConfigurationName = "Commerce.Pipelines.Checkout";
     workflowserviceattributes1.Name = "Checkout";
     //
     // SubmitOrderWorkflow
     //
     this.Activities.Add(this.SetAsSubmitted);
     this.Activities.Add(this.SaveInitialOrder);
     this.Activities.Add(this.SendThankYouEmail);
     this.Activities.Add(this.ShippingSequence);
     this.Activities.Add(this.AuthPaymentSequence);
     this.Activities.Add(this.SetAsVerified);
     this.Activities.Add(this.SaveOrder);
     this.Activities.Add(this.AdjustInventory);
     this.Activities.Add(this.AdminNewOrderEmail);
     this.Activities.Add(this.PipeFailureHandler);
     this.Activities.Add(this.cancellationHandlerActivity1);
     this.Name = "SubmitOrderWorkflow";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     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.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.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();
            System.Workflow.ComponentModel.ActivityBind activitybind18 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind19 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind20 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind21 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind22 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind23 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind24 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.terminateActivity2 = new System.Workflow.ComponentModel.TerminateActivity();
            this.SendAuthFailEmail = new Commerce.Pipelines.Activities.SendEmailActivity();
            this.terminateActivity1 = new System.Workflow.ComponentModel.TerminateActivity();
            this.SendInvalidShippingToCustomer = new Commerce.Pipelines.Activities.SendEmailActivity();
            this.terminateActivity3 = new System.Workflow.ComponentModel.TerminateActivity();
            this.SendAdminErrorEmail = new Commerce.Pipelines.Activities.SendEmailActivity();
            this.faultHandlerActivity2 = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.CatchAddressFail = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.faultHandlerActivity3 = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.faultHandlersActivity2 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.AuthPayment = new Commerce.Pipelines.Activities.AuthorizePaymentActivity();
            this.HandleBadAddress = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.ValidateShipping = new Commerce.Pipelines.Activities.ValidateAddressActivity();
            this.cancellationHandlerActivity1 = new System.Workflow.ComponentModel.CancellationHandlerActivity();
            this.PipeFailureHandler = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.AdminNewOrderEmail = new Commerce.Pipelines.Activities.SendEmailActivity();
            this.AdjustInventory = new Commerce.Pipelines.Activities.AdjustInventoryActivity();
            this.SaveOrder = new Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity();
            this.SetAsVerified = new Commerce.Pipelines.Activities.SetOrderStatusActivity();
            this.AuthPaymentSequence = new System.Workflow.Activities.SequenceActivity();
            this.ShippingSequence = new System.Workflow.Activities.SequenceActivity();
            this.SendThankYouEmail = new Commerce.Pipelines.Activities.SendEmailActivity();
            this.SaveInitialOrder = new Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity();
            this.SetAsSubmitted = new Commerce.Pipelines.Activities.SetOrderStatusActivity();
            // 
            // terminateActivity2
            // 
            this.terminateActivity2.Name = "terminateActivity2";
            // 
            // SendAuthFailEmail
            // 
            activitybind1.Name = "SubmitOrderWorkflow";
            activitybind1.Path = "CustomerOrder";
            activitybind2.Name = "SubmitOrderWorkflow";
            activitybind2.Path = "MailerServiceInterface";
            this.SendAuthFailEmail.MailType = Commerce.Data.MailerType.CustomerPaymentAuthFailed;
            this.SendAuthFailEmail.Name = "SendAuthFailEmail";
            this.SendAuthFailEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.SendAuthFailEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // terminateActivity1
            // 
            this.terminateActivity1.Name = "terminateActivity1";
            // 
            // SendInvalidShippingToCustomer
            // 
            activitybind3.Name = "SubmitOrderWorkflow";
            activitybind3.Path = "CustomerOrder";
            activitybind4.Name = "SubmitOrderWorkflow";
            activitybind4.Path = "MailerServiceInterface";
            this.SendInvalidShippingToCustomer.MailType = Commerce.Data.MailerType.CustomerAddressValidationFailed;
            this.SendInvalidShippingToCustomer.Name = "SendInvalidShippingToCustomer";
            this.SendInvalidShippingToCustomer.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.SendInvalidShippingToCustomer.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // terminateActivity3
            // 
            this.terminateActivity3.Name = "terminateActivity3";
            // 
            // SendAdminErrorEmail
            // 
            activitybind5.Name = "SubmitOrderWorkflow";
            activitybind5.Path = "CustomerOrder";
            activitybind6.Name = "SubmitOrderWorkflow";
            activitybind6.Path = "MailerServiceInterface";
            this.SendAdminErrorEmail.MailType = Commerce.Data.MailerType.AdminProcessingError;
            this.SendAdminErrorEmail.Name = "SendAdminErrorEmail";
            this.SendAdminErrorEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.SendAdminErrorEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // faultHandlerActivity2
            // 
            this.faultHandlerActivity2.Activities.Add(this.SendAuthFailEmail);
            this.faultHandlerActivity2.Activities.Add(this.terminateActivity2);
            this.faultHandlerActivity2.FaultType = typeof(System.Exception);
            this.faultHandlerActivity2.Name = "faultHandlerActivity2";
            // 
            // CatchAddressFail
            // 
            this.CatchAddressFail.Activities.Add(this.SendInvalidShippingToCustomer);
            this.CatchAddressFail.Activities.Add(this.terminateActivity1);
            this.CatchAddressFail.FaultType = typeof(System.Exception);
            this.CatchAddressFail.Name = "CatchAddressFail";
            // 
            // faultHandlerActivity3
            // 
            this.faultHandlerActivity3.Activities.Add(this.SendAdminErrorEmail);
            this.faultHandlerActivity3.Activities.Add(this.terminateActivity3);
            this.faultHandlerActivity3.FaultType = typeof(System.ApplicationException);
            this.faultHandlerActivity3.Name = "faultHandlerActivity3";
            // 
            // faultHandlersActivity2
            // 
            this.faultHandlersActivity2.Activities.Add(this.faultHandlerActivity2);
            this.faultHandlersActivity2.Name = "faultHandlersActivity2";
            // 
            // AuthPayment
            // 
            activitybind7.Name = "SubmitOrderWorkflow";
            activitybind7.Path = "CustomerOrder";
            this.AuthPayment.Name = "AuthPayment";
            activitybind8.Name = "SubmitOrderWorkflow";
            activitybind8.Path = "PaymentServiceInterface";
            this.AuthPayment.SetBinding(Commerce.Pipelines.Activities.AuthorizePaymentActivity.PaymentGatewayProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            this.AuthPayment.SetBinding(Commerce.Pipelines.Activities.AuthorizePaymentActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // HandleBadAddress
            // 
            this.HandleBadAddress.Activities.Add(this.CatchAddressFail);
            this.HandleBadAddress.Name = "HandleBadAddress";
            // 
            // ValidateShipping
            // 
            activitybind9.Name = "SubmitOrderWorkflow";
            activitybind9.Path = "AddressValidationInterface";
            activitybind10.Name = "SubmitOrderWorkflow";
            activitybind10.Path = "CustomerOrder.ShippingAddress";
            this.ValidateShipping.Name = "ValidateShipping";
            this.ValidateShipping.SetBinding(Commerce.Pipelines.Activities.ValidateAddressActivity.AddressServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.ValidateShipping.SetBinding(Commerce.Pipelines.Activities.ValidateAddressActivity.AddressToVerifyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            // 
            // cancellationHandlerActivity1
            // 
            this.cancellationHandlerActivity1.Name = "cancellationHandlerActivity1";
            // 
            // PipeFailureHandler
            // 
            this.PipeFailureHandler.Activities.Add(this.faultHandlerActivity3);
            this.PipeFailureHandler.Name = "PipeFailureHandler";
            // 
            // AdminNewOrderEmail
            // 
            activitybind11.Name = "SubmitOrderWorkflow";
            activitybind11.Path = "CustomerOrder";
            activitybind12.Name = "SubmitOrderWorkflow";
            activitybind12.Path = "MailerServiceInterface";
            this.AdminNewOrderEmail.MailType = Commerce.Data.MailerType.AdminOrderReceived;
            this.AdminNewOrderEmail.Name = "AdminNewOrderEmail";
            this.AdminNewOrderEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            this.AdminNewOrderEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            // 
            // AdjustInventory
            // 
            activitybind13.Name = "SubmitOrderWorkflow";
            activitybind13.Path = "CustomerOrder";
            activitybind14.Name = "SubmitOrderWorkflow";
            activitybind14.Path = "InventoryServiceInterface";
            this.AdjustInventory.Name = "AdjustInventory";
            this.AdjustInventory.SetBinding(Commerce.Pipelines.Activities.AdjustInventoryActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            this.AdjustInventory.SetBinding(Commerce.Pipelines.Activities.AdjustInventoryActivity.InventoryInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
            // 
            // SaveOrder
            // 
            activitybind15.Name = "SubmitOrderWorkflow";
            activitybind15.Path = "CustomerOrder";
            this.SaveOrder.Name = "SaveOrder";
            activitybind16.Name = "SubmitOrderWorkflow";
            activitybind16.Path = "OrderServiceInterface";
            this.SaveOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
            this.SaveOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
            // 
            // SetAsVerified
            // 
            activitybind17.Name = "SubmitOrderWorkflow";
            activitybind17.Path = "CustomerOrder";
            this.SetAsVerified.CustomerOrderStatus = Commerce.Data.OrderStatus.Verified;
            this.SetAsVerified.Name = "SetAsVerified";
            activitybind18.Name = "SubmitOrderWorkflow";
            activitybind18.Path = "OrderServiceInterface";
            this.SetAsVerified.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
            this.SetAsVerified.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
            // 
            // AuthPaymentSequence
            // 
            this.AuthPaymentSequence.Activities.Add(this.AuthPayment);
            this.AuthPaymentSequence.Activities.Add(this.faultHandlersActivity2);
            this.AuthPaymentSequence.Name = "AuthPaymentSequence";
            // 
            // ShippingSequence
            // 
            this.ShippingSequence.Activities.Add(this.ValidateShipping);
            this.ShippingSequence.Activities.Add(this.HandleBadAddress);
            this.ShippingSequence.Name = "ShippingSequence";
            // 
            // SendThankYouEmail
            // 
            activitybind19.Name = "SubmitOrderWorkflow";
            activitybind19.Path = "CustomerOrder";
            activitybind20.Name = "SubmitOrderWorkflow";
            activitybind20.Path = "MailerServiceInterface";
            this.SendThankYouEmail.MailType = Commerce.Data.MailerType.CustomerOrderReceived;
            this.SendThankYouEmail.Name = "SendThankYouEmail";
            this.SendThankYouEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
            this.SendThankYouEmail.SetBinding(Commerce.Pipelines.Activities.SendEmailActivity.MailerServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
            // 
            // SaveInitialOrder
            // 
            activitybind21.Name = "SubmitOrderWorkflow";
            activitybind21.Path = "CustomerOrder";
            this.SaveInitialOrder.Name = "SaveInitialOrder";
            activitybind22.Name = "SubmitOrderWorkflow";
            activitybind22.Path = "OrderServiceInterface";
            this.SaveInitialOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind21)));
            this.SaveInitialOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind22)));
            // 
            // SetAsSubmitted
            // 
            activitybind23.Name = "SubmitOrderWorkflow";
            activitybind23.Path = "CustomerOrder";
            this.SetAsSubmitted.CustomerOrderStatus = Commerce.Data.OrderStatus.Submitted;
            this.SetAsSubmitted.Name = "SetAsSubmitted";
            activitybind24.Name = "SubmitOrderWorkflow";
            activitybind24.Path = "OrderServiceInterface";
            this.SetAsSubmitted.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind23)));
            this.SetAsSubmitted.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind24)));
            workflowserviceattributes1.ConfigurationName = "Commerce.Pipelines.Checkout";
            workflowserviceattributes1.Name = "Checkout";
            // 
            // SubmitOrderWorkflow
            // 
            this.Activities.Add(this.SetAsSubmitted);
            this.Activities.Add(this.SaveInitialOrder);
            this.Activities.Add(this.SendThankYouEmail);
            this.Activities.Add(this.ShippingSequence);
            this.Activities.Add(this.AuthPaymentSequence);
            this.Activities.Add(this.SetAsVerified);
            this.Activities.Add(this.SaveOrder);
            this.Activities.Add(this.AdjustInventory);
            this.Activities.Add(this.AdminNewOrderEmail);
            this.Activities.Add(this.PipeFailureHandler);
            this.Activities.Add(this.cancellationHandlerActivity1);
            this.Name = "SubmitOrderWorkflow";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.CanModifyActivities = false;

        }
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.myPolicyActivity1 = new CustomWorkflowLibrary.MyPolicyActivity();
            this.initializeActivity = new System.Workflow.Activities.CodeActivity();
            this.receiveActivity1 = new System.Workflow.Activities.ReceiveActivity();
            // 
            // myPolicyActivity1
            // 
            this.myPolicyActivity1.Name = "myPolicyActivity1";
            this.myPolicyActivity1.RuleFilePath = "../../../Workflow1.rules";
            // 
            // initializeActivity
            // 
            this.initializeActivity.Name = "initializeActivity";
            this.initializeActivity.ExecuteCode += new System.EventHandler(this.initializeActivity_ExecuteCode);
            // 
            // receiveActivity1
            // 
            this.receiveActivity1.Activities.Add(this.initializeActivity);
            this.receiveActivity1.Activities.Add(this.myPolicyActivity1);
            this.receiveActivity1.CanCreateInstance = true;
            this.receiveActivity1.Name = "receiveActivity1";
            activitybind1.Name = "Workflow1";
            activitybind1.Path = "paramCategory";
            workflowparameterbinding1.ParameterName = "category";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            activitybind2.Name = "Workflow1";
            activitybind2.Path = "paramPrivilege";
            workflowparameterbinding2.ParameterName = "privilege";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            activitybind3.Name = "Workflow1";
            activitybind3.Path = "paramUnitCost";
            workflowparameterbinding3.ParameterName = "unitcost";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            activitybind4.Name = "Workflow1";
            activitybind4.Path = "paramVolume";
            workflowparameterbinding4.ParameterName = "volume";
            workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            activitybind5.Name = "Workflow1";
            activitybind5.Path = "totalCost";
            workflowparameterbinding5.ParameterName = "(ReturnValue)";
            workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding1);
            this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding2);
            this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding3);
            this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding4);
            this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding5);
            typedoperationinfo1.ContractType = typeof(CustomWorkflowLibrary.IWorkflow1);
            typedoperationinfo1.Name = "CalcCost";
            this.receiveActivity1.ServiceOperationInfo = typedoperationinfo1;
            workflowserviceattributes1.ConfigurationName = "Workflow1";
            workflowserviceattributes1.Name = "Workflow1";
            // 
            // Workflow1
            // 
            this.Activities.Add(this.receiveActivity1);
            this.Name = "Workflow1";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.CanModifyActivities = false;

		}
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind             activitybind1             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind2             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind3             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo1       = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ChannelToken                 endpoint1                  = new System.Workflow.Activities.ChannelToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind4              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind5              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind6              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo2        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.WorkflowServiceAttributes    workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.DoReviewOrder       = new System.Workflow.Activities.CodeActivity();
     this.ReceiveOrderDetails = new System.Workflow.Activities.ReceiveActivity();
     this.DoDisplayStatus     = new System.Workflow.Activities.CodeActivity();
     this.SendSubmitOrder     = new System.Workflow.Activities.SendActivity();
     //
     // DoReviewOrder
     //
     this.DoReviewOrder.Name         = "DoReviewOrder";
     this.DoReviewOrder.ExecuteCode += new System.EventHandler(this.ReviewOrder);
     //
     // ReceiveOrderDetails
     //
     this.ReceiveOrderDetails.Activities.Add(this.DoReviewOrder);
     this.ReceiveOrderDetails.Name           = "ReceiveOrderDetails";
     activitybind1.Name                      = "CustomerWorkflow";
     activitybind1.Path                      = "orderDetails";
     workflowparameterbinding1.ParameterName = "po";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     activitybind2.Name = "CustomerWorkflow";
     activitybind2.Path = "shippingQuote";
     workflowparameterbinding2.ParameterName = "quote";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     activitybind3.Name = "CustomerWorkflow";
     activitybind3.Path = "customerAck";
     workflowparameterbinding3.ParameterName = "(ReturnValue)";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.ReceiveOrderDetails.ParameterBindings.Add(workflowparameterbinding1);
     this.ReceiveOrderDetails.ParameterBindings.Add(workflowparameterbinding2);
     this.ReceiveOrderDetails.ParameterBindings.Add(workflowparameterbinding3);
     typedoperationinfo1.ContractType = typeof(Microsoft.WorkflowServices.Samples.IOrderDetails);
     typedoperationinfo1.Name         = "OrderDetails";
     this.ReceiveOrderDetails.ServiceOperationInfo = typedoperationinfo1;
     //
     // DoDisplayStatus
     //
     this.DoDisplayStatus.Name         = "DoDisplayStatus";
     this.DoDisplayStatus.ExecuteCode += new System.EventHandler(this.DisplayStatus);
     //
     // SendSubmitOrder
     //
     endpoint1.EndpointName                  = "SupplierEndPoint";
     endpoint1.Name                          = "SupplierEndPoint";
     endpoint1.OwnerActivityName             = "CustomerWorkflow";
     this.SendSubmitOrder.ChannelToken       = endpoint1;
     this.SendSubmitOrder.Name               = "SendSubmitOrder";
     activitybind4.Name                      = "CustomerWorkflow";
     activitybind4.Path                      = "order";
     workflowparameterbinding4.ParameterName = "po";
     workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     activitybind5.Name = "CustomerWorkflow";
     activitybind5.Path = "contextToSend";
     workflowparameterbinding5.ParameterName = "context";
     workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     activitybind6.Name = "CustomerWorkflow";
     activitybind6.Path = "supplierAck";
     workflowparameterbinding6.ParameterName = "(ReturnValue)";
     workflowparameterbinding6.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.SendSubmitOrder.ParameterBindings.Add(workflowparameterbinding4);
     this.SendSubmitOrder.ParameterBindings.Add(workflowparameterbinding5);
     this.SendSubmitOrder.ParameterBindings.Add(workflowparameterbinding6);
     typedoperationinfo2.ContractType          = typeof(Microsoft.WorkflowServices.Samples.IOrder);
     typedoperationinfo2.Name                  = "SubmitOrder";
     this.SendSubmitOrder.ServiceOperationInfo = typedoperationinfo2;
     this.SendSubmitOrder.BeforeSend          += new System.EventHandler <System.Workflow.Activities.SendActivityEventArgs>(this.PrepareOrder);
     //
     // CustomerWorkflow
     //
     this.Activities.Add(this.SendSubmitOrder);
     this.Activities.Add(this.DoDisplayStatus);
     this.Activities.Add(this.ReceiveOrderDetails);
     this.Name = "CustomerWorkflow";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.CanModifyActivities = false;
 }
		private void InitializeComponent()
		{
			this.CanModifyActivities = true;
			System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
			System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
			System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
			System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
			System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
			System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
			this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
			this.receiveActivity1 = new System.Workflow.Activities.ReceiveActivity();
			this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity();
			this.stateActivity1 = new System.Workflow.Activities.StateActivity();
			this.Workflow1InitialState = new System.Workflow.Activities.StateActivity();
			// 
			// setStateActivity1
			// 
			this.setStateActivity1.Name = "setStateActivity1";
			this.setStateActivity1.TargetStateName = "stateActivity1";
			// 
			// receiveActivity1
			//
			this.receiveActivity1.CanCreateInstance = true; 
			this.receiveActivity1.Name = "receiveActivity1";
			activitybind1.Name = "Workflow1";
			activitybind1.Path = "ReturnValue";
			workflowparameterbinding1.ParameterName = "(ReturnValue)";
			workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
			activitybind2.Name = "Workflow1";
			activitybind2.Path = "InputValue";
			workflowparameterbinding2.ParameterName = "value";
			workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
			this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding1);
			this.receiveActivity1.ParameterBindings.Add(workflowparameterbinding2);
			typedoperationinfo1.ContractType = typeof(WFServiceLibrary1.IWorkflow1);
			typedoperationinfo1.Name = "GetData";
			this.receiveActivity1.ServiceOperationInfo = typedoperationinfo1;
			// 
			// eventDrivenActivity1
			// 
			this.eventDrivenActivity1.Activities.Add(this.receiveActivity1);
			this.eventDrivenActivity1.Activities.Add(this.setStateActivity1);
			this.eventDrivenActivity1.Name = "eventDrivenActivity1";
			// 
			// stateActivity1
			// 
			this.stateActivity1.Name = "stateActivity1";
			// 
			// Workflow1InitialState
			// 
			this.Workflow1InitialState.Activities.Add(this.eventDrivenActivity1);
			this.Workflow1InitialState.Name = "Workflow1InitialState";
			workflowserviceattributes1.ConfigurationName = "Workflow1";
			workflowserviceattributes1.Name = "Workflow1";
			// 
			// Workflow1
			// 
			this.Activities.Add(this.Workflow1InitialState);
			this.Activities.Add(this.stateActivity1);
			this.CompletedStateName = "stateActivity1";
			this.DynamicUpdateCondition = null;
			this.InitialStateName = "Workflow1InitialState";
			this.Name = "Workflow1";
			this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
			this.CanModifyActivities = false;

		}
 public void SetWorkflowServiceAttributes(Activity activity, WorkflowServiceAttributes value)
 {
     activity.SetValue(ReceiveActivity.WorkflowServiceAttributesProperty, value);
 }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.ContextToken                 contexttoken1              = new System.Workflow.Activities.ContextToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind1              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo1        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ChannelToken                 channeltoken1              = new System.Workflow.Activities.ChannelToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind2              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind3              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind4              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding4  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo2        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ContextToken                 contexttoken2              = new System.Workflow.Activities.ContextToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind5              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding5  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo3        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ChannelToken                 channeltoken2              = new System.Workflow.Activities.ChannelToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind6              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind7              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding7  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind8              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding8  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo4        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ContextToken                 contexttoken3              = new System.Workflow.Activities.ContextToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind9              = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding9  = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo5        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ChannelToken                 channeltoken3              = new System.Workflow.Activities.ChannelToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind10             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding10 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind11             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding11 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind12             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding12 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo6        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.ChannelToken                 channeltoken4              = new System.Workflow.Activities.ChannelToken();
     System.Workflow.ComponentModel.ActivityBind             activitybind13             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding13 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind14             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding14 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo7        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.ComponentModel.ActivityBind             activitybind15             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding15 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind16             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding16 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind17             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding17 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.TypedOperationInfo           typedoperationinfo8        = new System.Workflow.Activities.TypedOperationInfo();
     System.Workflow.Activities.WorkflowServiceAttributes    workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
     this.Shipper3ShippingQuote    = new System.Workflow.Activities.CodeActivity();
     this.Shipper2ShippingQuote    = new System.Workflow.Activities.CodeActivity();
     this.Shipper1ShippingQuote    = new System.Workflow.Activities.CodeActivity();
     this.ReceiveQuoteFromShipper3 = new System.Workflow.Activities.ReceiveActivity();
     this.RequestQuoteFromShipper3 = new System.Workflow.Activities.SendActivity();
     this.ReceiveQuoteFromShipper2 = new System.Workflow.Activities.ReceiveActivity();
     this.RequestQuoteFromShipper2 = new System.Workflow.Activities.SendActivity();
     this.ReceiveQuoteFromShipper1 = new System.Workflow.Activities.ReceiveActivity();
     this.RequestQuoteFromShipper1 = new System.Workflow.Activities.SendActivity();
     this.Shipper3Quote            = new System.Workflow.Activities.SequenceActivity();
     this.Shipper2Quote            = new System.Workflow.Activities.SequenceActivity();
     this.Shipper1Quote            = new System.Workflow.Activities.SequenceActivity();
     this.DoAcceptOrder            = new System.Workflow.Activities.CodeActivity();
     this.SendOrderDetails         = new System.Workflow.Activities.SendActivity();
     this.GetShippingQuotes        = new System.Workflow.Activities.ParallelActivity();
     this.ReceiveSubmitOrder       = new System.Workflow.Activities.ReceiveActivity();
     //
     // Shipper3ShippingQuote
     //
     this.Shipper3ShippingQuote.Name         = "Shipper3ShippingQuote";
     this.Shipper3ShippingQuote.ExecuteCode += new System.EventHandler(this.ReceiveShipper3ShippingQuote);
     //
     // Shipper2ShippingQuote
     //
     this.Shipper2ShippingQuote.Name         = "Shipper2ShippingQuote";
     this.Shipper2ShippingQuote.ExecuteCode += new System.EventHandler(this.ReceiveShipper2ShippingQuote);
     //
     // Shipper1ShippingQuote
     //
     this.Shipper1ShippingQuote.Name         = "Shipper1ShippingQuote";
     this.Shipper1ShippingQuote.ExecuteCode += new System.EventHandler(this.ReceiveShipper1ShippingQuote);
     //
     // ReceiveQuoteFromShipper3
     //
     this.ReceiveQuoteFromShipper3.Activities.Add(this.Shipper3ShippingQuote);
     contexttoken1.Name = "Shipper3Context";
     this.ReceiveQuoteFromShipper3.ContextToken = contexttoken1;
     this.ReceiveQuoteFromShipper3.Name         = "ReceiveQuoteFromShipper3";
     activitybind1.Name = "SupplierWorkflow";
     activitybind1.Path = "quoteShipper3";
     workflowparameterbinding1.ParameterName = "quote";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.ReceiveQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding1);
     typedoperationinfo1.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
     typedoperationinfo1.Name         = "ShippingQuote";
     this.ReceiveQuoteFromShipper3.ServiceOperationInfo = typedoperationinfo1;
     //
     // RequestQuoteFromShipper3
     //
     channeltoken1.EndpointName                 = "Shipper3Endpoint";
     channeltoken1.Name                         = "Shipper3Endpoint";
     channeltoken1.OwnerActivityName            = "GetShippingQuotes";
     this.RequestQuoteFromShipper3.ChannelToken = channeltoken1;
     this.RequestQuoteFromShipper3.Name         = "RequestQuoteFromShipper3";
     activitybind2.Name                         = "SupplierWorkflow";
     activitybind2.Path                         = "order";
     workflowparameterbinding2.ParameterName    = "po";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     activitybind3.Name = "SupplierWorkflow";
     activitybind3.Path = "contextShipper3";
     workflowparameterbinding3.ParameterName = "context";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     activitybind4.Name = "SupplierWorkflow";
     activitybind4.Path = "ackShipper3";
     workflowparameterbinding4.ParameterName = "(ReturnValue)";
     workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.RequestQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding2);
     this.RequestQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding3);
     this.RequestQuoteFromShipper3.ParameterBindings.Add(workflowparameterbinding4);
     typedoperationinfo2.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
     typedoperationinfo2.Name         = "RequestShippingQuote";
     this.RequestQuoteFromShipper3.ServiceOperationInfo = typedoperationinfo2;
     this.RequestQuoteFromShipper3.BeforeSend          += new System.EventHandler <System.Workflow.Activities.SendActivityEventArgs>(this.PrepareShipper3Request);
     //
     // ReceiveQuoteFromShipper2
     //
     this.ReceiveQuoteFromShipper2.Activities.Add(this.Shipper2ShippingQuote);
     contexttoken2.Name = "Shipper2Context";
     contexttoken2.OwnerActivityName            = "GetShippingQuotes";
     this.ReceiveQuoteFromShipper2.ContextToken = contexttoken2;
     this.ReceiveQuoteFromShipper2.Name         = "ReceiveQuoteFromShipper2";
     activitybind5.Name = "SupplierWorkflow";
     activitybind5.Path = "quoteShipper2";
     workflowparameterbinding5.ParameterName = "quote";
     workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.ReceiveQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding5);
     typedoperationinfo3.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
     typedoperationinfo3.Name         = "ShippingQuote";
     this.ReceiveQuoteFromShipper2.ServiceOperationInfo = typedoperationinfo3;
     //
     // RequestQuoteFromShipper2
     //
     channeltoken2.EndpointName                 = "Shipper2Endpoint";
     channeltoken2.Name                         = "Shipper2Endpoint";
     channeltoken2.OwnerActivityName            = "GetShippingQuotes";
     this.RequestQuoteFromShipper2.ChannelToken = channeltoken2;
     this.RequestQuoteFromShipper2.Name         = "RequestQuoteFromShipper2";
     activitybind6.Name                         = "SupplierWorkflow";
     activitybind6.Path                         = "ackShipper2";
     workflowparameterbinding6.ParameterName    = "(ReturnValue)";
     workflowparameterbinding6.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     activitybind7.Name = "SupplierWorkflow";
     activitybind7.Path = "order";
     workflowparameterbinding7.ParameterName = "po";
     workflowparameterbinding7.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     activitybind8.Name = "SupplierWorkflow";
     activitybind8.Path = "contextShipper2";
     workflowparameterbinding8.ParameterName = "context";
     workflowparameterbinding8.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     this.RequestQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding6);
     this.RequestQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding7);
     this.RequestQuoteFromShipper2.ParameterBindings.Add(workflowparameterbinding8);
     typedoperationinfo4.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
     typedoperationinfo4.Name         = "RequestShippingQuote";
     this.RequestQuoteFromShipper2.ServiceOperationInfo = typedoperationinfo4;
     this.RequestQuoteFromShipper2.BeforeSend          += new System.EventHandler <System.Workflow.Activities.SendActivityEventArgs>(this.PrepareShipper2Request);
     //
     // ReceiveQuoteFromShipper1
     //
     this.ReceiveQuoteFromShipper1.Activities.Add(this.Shipper1ShippingQuote);
     contexttoken3.Name = "Shipper1Context";
     contexttoken3.OwnerActivityName            = "GetShippingQuotes";
     this.ReceiveQuoteFromShipper1.ContextToken = contexttoken3;
     this.ReceiveQuoteFromShipper1.Name         = "ReceiveQuoteFromShipper1";
     activitybind9.Name = "SupplierWorkflow";
     activitybind9.Path = "quoteShipper1";
     workflowparameterbinding9.ParameterName = "quote";
     workflowparameterbinding9.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.ReceiveQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding9);
     typedoperationinfo5.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingQuote);
     typedoperationinfo5.Name         = "ShippingQuote";
     this.ReceiveQuoteFromShipper1.ServiceOperationInfo = typedoperationinfo5;
     //
     // RequestQuoteFromShipper1
     //
     channeltoken3.EndpointName                 = "Shipper1Endpoint";
     channeltoken3.Name                         = "Shipper1Endpoint";
     channeltoken3.OwnerActivityName            = "GetShippingQuotes";
     this.RequestQuoteFromShipper1.ChannelToken = channeltoken3;
     this.RequestQuoteFromShipper1.Name         = "RequestQuoteFromShipper1";
     activitybind10.Name                        = "SupplierWorkflow";
     activitybind10.Path                        = "order";
     workflowparameterbinding10.ParameterName   = "po";
     workflowparameterbinding10.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     activitybind11.Name = "SupplierWorkflow";
     activitybind11.Path = "contextShipper1";
     workflowparameterbinding11.ParameterName = "context";
     workflowparameterbinding11.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     activitybind12.Name = "SupplierWorkflow";
     activitybind12.Path = "ackShipper1";
     workflowparameterbinding12.ParameterName = "(ReturnValue)";
     workflowparameterbinding12.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.RequestQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding10);
     this.RequestQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding11);
     this.RequestQuoteFromShipper1.ParameterBindings.Add(workflowparameterbinding12);
     typedoperationinfo6.ContractType = typeof(Microsoft.WorkflowServices.Samples.IShippingRequest);
     typedoperationinfo6.Name         = "RequestShippingQuote";
     this.RequestQuoteFromShipper1.ServiceOperationInfo = typedoperationinfo6;
     this.RequestQuoteFromShipper1.BeforeSend          += new System.EventHandler <System.Workflow.Activities.SendActivityEventArgs>(this.PrepareShipper1Request);
     //
     // Shipper3Quote
     //
     this.Shipper3Quote.Activities.Add(this.RequestQuoteFromShipper3);
     this.Shipper3Quote.Activities.Add(this.ReceiveQuoteFromShipper3);
     this.Shipper3Quote.Name = "Shipper3Quote";
     //
     // Shipper2Quote
     //
     this.Shipper2Quote.Activities.Add(this.RequestQuoteFromShipper2);
     this.Shipper2Quote.Activities.Add(this.ReceiveQuoteFromShipper2);
     this.Shipper2Quote.Name = "Shipper2Quote";
     //
     // Shipper1Quote
     //
     this.Shipper1Quote.Activities.Add(this.RequestQuoteFromShipper1);
     this.Shipper1Quote.Activities.Add(this.ReceiveQuoteFromShipper1);
     this.Shipper1Quote.Name = "Shipper1Quote";
     //
     // DoAcceptOrder
     //
     this.DoAcceptOrder.Name         = "DoAcceptOrder";
     this.DoAcceptOrder.ExecuteCode += new System.EventHandler(this.AcceptOrder);
     //
     // SendOrderDetails
     //
     channeltoken4.EndpointName               = "CustomerEndpoint";
     channeltoken4.Name                       = "CustomerEndpoint";
     channeltoken4.OwnerActivityName          = "SupplierWorkflow";
     this.SendOrderDetails.ChannelToken       = channeltoken4;
     this.SendOrderDetails.Name               = "SendOrderDetails";
     activitybind13.Name                      = "SupplierWorkflow";
     activitybind13.Path                      = "confirmedQuote";
     workflowparameterbinding13.ParameterName = "quote";
     workflowparameterbinding13.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     activitybind14.Name = "SupplierWorkflow";
     activitybind14.Path = "confirmedOrder";
     workflowparameterbinding14.ParameterName = "po";
     workflowparameterbinding14.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.SendOrderDetails.ParameterBindings.Add(workflowparameterbinding13);
     this.SendOrderDetails.ParameterBindings.Add(workflowparameterbinding14);
     typedoperationinfo7.ContractType           = typeof(Microsoft.WorkflowServices.Samples.IOrderDetails);
     typedoperationinfo7.Name                   = "OrderDetails";
     this.SendOrderDetails.ServiceOperationInfo = typedoperationinfo7;
     this.SendOrderDetails.BeforeSend          += new System.EventHandler <System.Workflow.Activities.SendActivityEventArgs>(this.PrepareOrderConfirmation);
     //
     // GetShippingQuotes
     //
     this.GetShippingQuotes.Activities.Add(this.Shipper1Quote);
     this.GetShippingQuotes.Activities.Add(this.Shipper2Quote);
     this.GetShippingQuotes.Activities.Add(this.Shipper3Quote);
     this.GetShippingQuotes.Name = "GetShippingQuotes";
     //
     // ReceiveSubmitOrder
     //
     this.ReceiveSubmitOrder.Activities.Add(this.DoAcceptOrder);
     this.ReceiveSubmitOrder.CanCreateInstance = true;
     this.ReceiveSubmitOrder.Name             = "ReceiveSubmitOrder";
     activitybind15.Name                      = "SupplierWorkflow";
     activitybind15.Path                      = "order";
     workflowparameterbinding15.ParameterName = "po";
     workflowparameterbinding15.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     activitybind16.Name = "SupplierWorkflow";
     activitybind16.Path = "customerContext";
     workflowparameterbinding16.ParameterName = "context";
     workflowparameterbinding16.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     activitybind17.Name = "SupplierWorkflow";
     activitybind17.Path = "supplierAck";
     workflowparameterbinding17.ParameterName = "(ReturnValue)";
     workflowparameterbinding17.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     this.ReceiveSubmitOrder.ParameterBindings.Add(workflowparameterbinding15);
     this.ReceiveSubmitOrder.ParameterBindings.Add(workflowparameterbinding16);
     this.ReceiveSubmitOrder.ParameterBindings.Add(workflowparameterbinding17);
     typedoperationinfo8.ContractType             = typeof(Microsoft.WorkflowServices.Samples.IOrder);
     typedoperationinfo8.Name                     = "SubmitOrder";
     this.ReceiveSubmitOrder.ServiceOperationInfo = typedoperationinfo8;
     //
     // SupplierWorkflow
     //
     this.Activities.Add(this.ReceiveSubmitOrder);
     this.Activities.Add(this.GetShippingQuotes);
     this.Activities.Add(this.SendOrderDetails);
     this.Name = "SupplierWorkflow";
     this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
     this.CanModifyActivities = false;
 }
 public void SetWorkflowServiceAttributes(Activity activity, WorkflowServiceAttributes value)
 {
     activity.SetValue(ReceiveActivity.WorkflowServiceAttributesProperty, value);
 }