private void OnRuntimeInitialized(Activity activity)
        {
            Activity     contextActivity = null;
            ActivityBind bind            = GetContextBind(this, activity, out contextActivity);

            if ((bind != null) && (contextActivity != null))
            {
                Type dataSourceType = contextActivity.GetType();
                if (dataSourceType != null)
                {
                    MemberInfo info = GetMemberInfo(dataSourceType, bind.Path, null);
                    if ((info != null) && (((info is FieldInfo) || (info is PropertyInfo)) || (info is EventInfo)))
                    {
                        if (bind.UserData[UserDataKeys.BindDataSource] == null)
                        {
                            bind.UserData[UserDataKeys.BindDataSource] = new Hashtable();
                        }
                        ((Hashtable)bind.UserData[UserDataKeys.BindDataSource])[activity.QualifiedName] = info;
                        if (contextActivity != null)
                        {
                            if (bind.UserData[UserDataKeys.BindDataContextActivity] == null)
                            {
                                bind.UserData[UserDataKeys.BindDataContextActivity] = new Hashtable();
                            }
                            ((Hashtable)bind.UserData[UserDataKeys.BindDataContextActivity])[activity.QualifiedName] = contextActivity.QualifiedName;
                        }
                    }
                }
            }
        }
		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();
            this.UpdateAccount = new Dropthings.Business.Activities.UserAccountActivities.UpdateAccountActivity();
            this.GetUserGuid = new Dropthings.Business.Activities.GetUserGuidActivity();
            // 
            // UpdateAccount
            // 
            this.UpdateAccount.Name = "UpdateAccount";
            activitybind1.Name = "UpdateAccountWorkflow";
            activitybind1.Path = "Request.Email";
            activitybind2.Name = "GetUserGuid";
            activitybind2.Path = "UserGuid";
            this.UpdateAccount.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("NewEmail", typeof(Dropthings.Business.Activities.UserAccountActivities.UpdateAccountActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.UpdateAccount.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.UserAccountActivities.UpdateAccountActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GetUserGuid
            // 
            this.GetUserGuid.Name = "GetUserGuid";
            this.GetUserGuid.UserGuid = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind3.Name = "UpdateAccountWorkflow";
            activitybind3.Path = "Request.UserName";
            this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // UpdateAccountWorkflow
            // 
            this.Activities.Add(this.GetUserGuid);
            this.Activities.Add(this.UpdateAccount);
            this.Name = "UpdateAccountWorkflow";
            this.CanModifyActivities = false;

		}
        private void ReleaseDynamicUpdateMode(Activity seedActivity)
        {
            Queue <Activity> queue = new Queue <Activity>();

            queue.Enqueue(seedActivity);
            while (queue.Count > 0)
            {
                Activity activity = queue.Dequeue() as Activity;
                activity.Readonly          = false;
                activity.DynamicUpdateMode = false;
                foreach (DependencyProperty dependencyProperty in activity.MetaDependencyProperties)
                {
                    if (activity.IsBindingSet(dependencyProperty))
                    {
                        ActivityBind activityBind = activity.GetBinding(dependencyProperty);
                        if (activityBind != null)
                        {
                            activityBind.DynamicUpdateMode = false;
                        }
                    }
                }
                if (activity is CompositeActivity)
                {
                    CompositeActivity compositeActivity = activity as CompositeActivity;
                    compositeActivity.Activities.ListChanged -= new EventHandler <ActivityCollectionChangeEventArgs>(this.OnActivityListChanged);
                    foreach (Activity activity2 in ((CompositeActivity)activity).Activities)
                    {
                        queue.Enqueue(activity2);
                    }
                }
            }
        }
		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();
            this.Return = new RKiss.ActivityLibrary.ReturnActivity();
            // 
            // Return
            // 
            this.Return.ConnectorActivityName = "Workflow5";
            this.Return.Name = "Return";
            activitybind1.Name = "Workflow5";
            activitybind1.Path = "Workflow5_msg1";
            workflowparameterbinding1.ParameterName = "(ReturnValue)";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.Return.Parameters.Add(workflowparameterbinding1);
            // 
            // Workflow5
            // 
            this.Activities.Add(this.Return);
            this.MethodName = "SayHello";
            this.Name = "Workflow5";
            activitybind2.Name = "/Self";
            activitybind2.Path = "Workflow5_msg1";
            workflowparameterbinding2.ParameterName = "msg";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.Parameters.Add(workflowparameterbinding2);
            this.Type = typeof(InterfaceContract.ITest);
            this.Received += new System.EventHandler(this.Workflow5_Received);
            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();
            this.ReorderAllWidgetsOnSameColumn = new Dropthings.Business.Activities.ReorderWidgetInstancesOnWidgetZoneActivity();
            this.DeleteSpecifiedWidgetInstance = new Dropthings.Business.Activities.DeleteWidgetInstanceActivity();
            this.GetWidgetInstance = new Dropthings.Business.Activities.WidgetActivities.GetWidgetInstanceActivity();
            this.EnsureWidgetInstanceOwnership = new Dropthings.Business.Activities.EnsureOwnerActivity();
            // 
            // ReorderAllWidgetsOnSameColumn
            // 
            this.ReorderAllWidgetsOnSameColumn.Name = "ReorderAllWidgetsOnSameColumn";
            activitybind1.Name = "GetWidgetInstance";
            activitybind1.Path = "WidgetInstance.WidgetZoneId";
            this.ReorderAllWidgetsOnSameColumn.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("WidgetZoneId", typeof(Dropthings.Business.Activities.ReorderWidgetInstancesOnWidgetZoneActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // DeleteSpecifiedWidgetInstance
            // 
            this.DeleteSpecifiedWidgetInstance.Name = "DeleteSpecifiedWidgetInstance";
            activitybind2.Name = "DeleteWidgetInstanceWorkflow";
            activitybind2.Path = "Request.WidgetInstanceId";
            this.DeleteSpecifiedWidgetInstance.SetBinding(Dropthings.Business.Activities.DeleteWidgetInstanceActivity.WidgetInstanceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GetWidgetInstance
            // 
            this.GetWidgetInstance.Name = "GetWidgetInstance";
            activitybind3.Name = "DeleteWidgetInstanceWorkflow";
            activitybind3.Path = "WidgetInstance";
            activitybind4.Name = "DeleteWidgetInstanceWorkflow";
            activitybind4.Path = "Request.WidgetInstanceId";
            this.GetWidgetInstance.SetBinding(Dropthings.Business.Activities.WidgetActivities.GetWidgetInstanceActivity.WidgetInstanceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.GetWidgetInstance.SetBinding(Dropthings.Business.Activities.WidgetActivities.GetWidgetInstanceActivity.WidgetInstanceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // EnsureWidgetInstanceOwnership
            // 
            this.EnsureWidgetInstanceOwnership.Name = "EnsureWidgetInstanceOwnership";
            this.EnsureWidgetInstanceOwnership.PageId = 0;
            activitybind5.Name = "DeleteWidgetInstanceWorkflow";
            activitybind5.Path = "Request.UserName";
            activitybind6.Name = "DeleteWidgetInstanceWorkflow";
            activitybind6.Path = "Request.WidgetInstanceId";
            this.EnsureWidgetInstanceOwnership.WidgetZoneId = 0;
            this.EnsureWidgetInstanceOwnership.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("WidgetInstanceId", typeof(Dropthings.Business.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.EnsureWidgetInstanceOwnership.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // DeleteWidgetInstanceWorkflow
            // 
            this.Activities.Add(this.EnsureWidgetInstanceOwnership);
            this.Activities.Add(this.GetWidgetInstance);
            this.Activities.Add(this.DeleteSpecifiedWidgetInstance);
            this.Activities.Add(this.ReorderAllWidgetsOnSameColumn);
            this.Name = "DeleteWidgetInstanceWorkflow";
            this.CanModifyActivities = false;

        }
		private void InitializeComponent()
		{
         this.CanModifyActivities = true;
         System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
         this.msmqReceiveActivity1 = new Winterdom.Workflow.Activities.Msmq.MsmqReceiveActivity();
         this.terminateActivity1 = new System.Workflow.ComponentModel.TerminateActivity();
         activitybind1.Name = "Workflow1";
         activitybind1.Path = "Message";
         // 
         // msmqReceiveActivity1
         // 
         this.msmqReceiveActivity1.Name = "msmqReceiveActivity1";
         this.msmqReceiveActivity1.Queue = "\\\\.\\Private$\\QUeue1";
         this.msmqReceiveActivity1.SetBinding(Winterdom.Workflow.Activities.Msmq.MsmqBaseReceiveActivity.MessageReceivedProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
         // 
         // terminateActivity1
         // 
         this.terminateActivity1.Name = "terminateActivity1";
         // 
         // Workflow1
         // 
         this.Activities.Add(this.terminateActivity1);
         this.Activities.Add(this.msmqReceiveActivity1);
         this.Name = "Workflow1";
         this.CanModifyActivities = false;

		}
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
            this.readResourceActivity1 = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
            // 
            // codeActivity1
            // 
            this.codeActivity1.Name = "codeActivity1";
            this.codeActivity1.ExecuteCode += new System.EventHandler(this.SendOTPPassword);
            // 
            // readResourceActivity1
            // 
            this.readResourceActivity1.ActorId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.readResourceActivity1.Name = "readResourceActivity1";
            activitybind1.Name = "SMSPasswordReset";
            activitybind1.Path = "CurrentActor";
            this.readResourceActivity1.ResourceId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.readResourceActivity1.SelectionAttributes = null;
            this.readResourceActivity1.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ResourceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // SMSPasswordReset
            // 
            this.Activities.Add(this.readResourceActivity1);
            this.Activities.Add(this.codeActivity1);
            this.Name = "SMSPasswordReset";
            this.CanModifyActivities = false;

        }
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            this.callCreateFullName = new System.Workflow.Activities.CallExternalMethodActivity();
            // 
            // callCreateFullName
            // 
            this.callCreateFullName.InterfaceType = typeof(Castle.Facilities.WorkflowIntegration.Tests.Services.ITestingExternalData);
            this.callCreateFullName.MethodName = "CreateFullName";
            this.callCreateFullName.Name = "callCreateFullName";
            workflowparameterbinding1.ParameterName = "first";
            workflowparameterbinding1.Value = "hello";
            workflowparameterbinding2.ParameterName = "last";
            workflowparameterbinding2.Value = "world";
            activitybind1.Name = "CreateNameWorkflow";
            activitybind1.Path = "FullName";
            workflowparameterbinding3.ParameterName = "(ReturnValue)";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.callCreateFullName.ParameterBindings.Add(workflowparameterbinding1);
            this.callCreateFullName.ParameterBindings.Add(workflowparameterbinding2);
            this.callCreateFullName.ParameterBindings.Add(workflowparameterbinding3);
            // 
            // CreateNameWorkflow
            // 
            this.Activities.Add(this.callCreateFullName);
            this.Name = "CreateNameWorkflow";
            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();
            this.ChangePageLayout = new DashboardBusiness.Activities.ChangePageLayoutActivity();
            this.GetUserGuid = new DashboardBusiness.Activities.GetUserGuidActivity();
            // 
            // ChangePageLayout
            // 
            activitybind1.Name = "ModifyPageLayoutWorkflow";
            activitybind1.Path = "LayoutType";
            this.ChangePageLayout.Name = "ChangePageLayout";
            activitybind2.Name = "ModifyPageLayoutWorkflow";
            activitybind2.Path = "PageID";
            this.ChangePageLayout.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("LayoutType", typeof(DashboardBusiness.Activities.ChangePageLayoutActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.ChangePageLayout.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(DashboardBusiness.Activities.ChangePageLayoutActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GetUserGuid
            // 
            this.GetUserGuid.Name = "GetUserGuid";
            this.GetUserGuid.UserGuid = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind3.Name = "ModifyPageLayoutWorkflow";
            activitybind3.Path = "UserName";
            this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(DashboardBusiness.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // ModifyPageLayoutWorkflow
            // 
            this.Activities.Add(this.GetUserGuid);
            this.Activities.Add(this.ChangePageLayout);
            this.Name = "ModifyPageLayoutWorkflow";
            this.CanModifyActivities = false;

		}
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // onWorkflowActivated1
            // 
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "Workflow1";
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            this.onWorkflowActivated1.WorkflowId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind1.Name = "Workflow1";
            activitybind1.Path = "workflowId";
            activitybind2.Name = "Workflow1";
            activitybind2.Path = "workflowProperties";
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // Workflow1
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Name = "Workflow1";
            this.CanModifyActivities = false;

        }
        public void SetRuntimeValue(Activity activity, object value)
        {
            if (activity == null)
            {
                throw new ArgumentNullException("activity");
            }
            Activity dataSourceObject = Helpers.ParseActivityForBind(activity, this.Name);

            if (dataSourceObject != null)
            {
                MemberInfo memberInfo = GetMemberInfo(dataSourceObject.GetType(), this.Path, null);
                if (memberInfo != null)
                {
                    ActivityBind bind = GetMemberValue(dataSourceObject, memberInfo, this.Path, null) as ActivityBind;
                    if (bind != null)
                    {
                        bind.SetRuntimeValue(dataSourceObject, value);
                    }
                    else
                    {
                        MemberBind.SetValue(dataSourceObject, this.Path, value);
                    }
                }
            }
        }
Exemple #12
0
        private void ApplyDynamicUpdateMode(Activity seedActivity)
        {
            Queue <Activity> queue = new Queue <Activity>();

            queue.Enqueue(seedActivity);
            while (queue.Count > 0)
            {
                Activity activity = queue.Dequeue();
                activity.Readonly          = true;
                activity.DynamicUpdateMode = true;
                foreach (DependencyProperty property in activity.MetaDependencyProperties)
                {
                    if (activity.IsBindingSet(property))
                    {
                        ActivityBind binding = activity.GetBinding(property);
                        if (binding != null)
                        {
                            binding.DynamicUpdateMode = true;
                        }
                    }
                }
                if (activity is CompositeActivity)
                {
                    CompositeActivity activity2 = activity as CompositeActivity;
                    activity2.Activities.ListChanged += new EventHandler <ActivityCollectionChangeEventArgs>(this.OnActivityListChanged);
                    foreach (Activity activity3 in ((CompositeActivity)activity).Activities)
                    {
                        queue.Enqueue(activity3);
                    }
                }
            }
        }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            this.TraceWakeup = new System.Workflow.Activities.CodeActivity();
            this.Delay = new System.Workflow.Activities.DelayActivity();
            this.ConditionSatisfied = new System.Workflow.Activities.IfElseBranchActivity();
            this.IfActivityExecutionConditionSatisfied = new System.Workflow.Activities.IfElseActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.ParseExpressions = new System.Workflow.Activities.CodeActivity();
            // 
            // TraceWakeup
            // 
            this.TraceWakeup.Name = "TraceWakeup";
            this.TraceWakeup.ExecuteCode += new System.EventHandler(this.TraceWakeup_ExecuteCode);
            // 
            // Delay
            // 
            this.Delay.Name = "Delay";
            this.Delay.TimeoutDuration = System.TimeSpan.Parse("00:00:00");
            this.Delay.InitializeTimeoutDuration += new System.EventHandler(this.Delay_InitializeTimeoutDuration);
            // 
            // ConditionSatisfied
            // 
            this.ConditionSatisfied.Activities.Add(this.Delay);
            this.ConditionSatisfied.Activities.Add(this.TraceWakeup);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ActivityExecutionConditionSatisfied_Condition);
            this.ConditionSatisfied.Condition = codecondition1;
            this.ConditionSatisfied.Name = "ConditionSatisfied";
            // 
            // IfActivityExecutionConditionSatisfied
            // 
            this.IfActivityExecutionConditionSatisfied.Activities.Add(this.ConditionSatisfied);
            this.IfActivityExecutionConditionSatisfied.Name = "IfActivityExecutionConditionSatisfied";
            // 
            // Resolve
            // 
            this.Resolve.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind1.Name = "AddDelay";
            activitybind1.Path = "ActivityExpressionEvaluator.LookupCache";
            this.Resolve.Name = "Resolve";
            this.Resolve.QueryResults = null;
            this.Resolve.Value = null;
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // ParseExpressions
            // 
            this.ParseExpressions.Name = "ParseExpressions";
            this.ParseExpressions.ExecuteCode += new System.EventHandler(this.ParseExpressions_ExecuteCode);
            // 
            // AddDelay
            // 
            this.Activities.Add(this.ParseExpressions);
            this.Activities.Add(this.Resolve);
            this.Activities.Add(this.IfActivityExecutionConditionSatisfied);
            this.Name = "AddDelay";
            this.CanModifyActivities = false;

        }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            this.logToHistoryFirstMailSended = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.sendFirstEmail = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // logToHistoryFirstMailSended
            // 
            this.logToHistoryFirstMailSended.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryFirstMailSended.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryFirstMailSended.HistoryDescription = "";
            this.logToHistoryFirstMailSended.HistoryOutcome = "";
            this.logToHistoryFirstMailSended.Name = "logToHistoryFirstMailSended";
            this.logToHistoryFirstMailSended.OtherData = "";
            this.logToHistoryFirstMailSended.UserId = -1;
            this.logToHistoryFirstMailSended.MethodInvoking += new System.EventHandler(this.logToHistoryFirstMailSended_MethodInvoking);
            // 
            // sendFirstEmail
            // 
            this.sendFirstEmail.BCC = null;
            this.sendFirstEmail.Body = null;
            this.sendFirstEmail.CC = null;
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "PlugableApprovalFlow";
            this.sendFirstEmail.CorrelationToken = correlationtoken1;
            this.sendFirstEmail.From = null;
            this.sendFirstEmail.Headers = null;
            this.sendFirstEmail.IncludeStatus = false;
            this.sendFirstEmail.Name = "sendFirstEmail";
            this.sendFirstEmail.Subject = null;
            this.sendFirstEmail.To = null;
            this.sendFirstEmail.MethodInvoking += new System.EventHandler(this.sendFirstEmail_MethodInvoking);
            activitybind2.Name = "PlugableApprovalFlow";
            activitybind2.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind1.Name = "PlugableApprovalFlow";
            activitybind1.Path = "workflowProperties";
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // PlugableApprovalFlow
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.sendFirstEmail);
            this.Activities.Add(this.logToHistoryFirstMailSended);
            this.Name = "PlugableApprovalFlow";
            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();
            this.SaveOrder = new Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity();
            this.SetAsCharged = new Commerce.Pipelines.Activities.SetOrderStatusActivity();
            this.ChargePayment = new Commerce.Pipelines.WindowsWorkflow.Activities.ChargePaymentActivity();
            // 
            // SaveOrder
            // 
            activitybind1.Name = "ChargeWorkflow";
            activitybind1.Path = "CustomerOrder";
            this.SaveOrder.Name = "SaveOrder";
            activitybind2.Name = "ChargeWorkflow";
            activitybind2.Path = "OrderServiceInterface";
            this.SaveOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.SaveOrder.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.SaveOrderActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // SetAsCharged
            // 
            activitybind3.Name = "ChargeWorkflow";
            activitybind3.Path = "CustomerOrder";
            this.SetAsCharged.CustomerOrderStatus = Commerce.Data.OrderStatus.Charged;
            this.SetAsCharged.Name = "SetAsCharged";
            activitybind4.Name = "ChargeWorkflow";
            activitybind4.Path = "OrderServiceInterface";
            this.SetAsCharged.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.SetAsCharged.SetBinding(Commerce.Pipelines.Activities.SetOrderStatusActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // ChargePayment
            // 
            activitybind5.Name = "ChargeWorkflow";
            activitybind5.Path = "CustomerOrder";
            this.ChargePayment.Name = "ChargePayment";
            activitybind6.Name = "ChargeWorkflow";
            activitybind6.Path = "OrderServiceInterface";
            activitybind7.Name = "ChargeWorkflow";
            activitybind7.Path = "PaymentServiceInterface";
            this.ChargePayment.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.ChargePaymentActivity.CustomerOrderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.ChargePayment.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.ChargePaymentActivity.OrderServiceInterfaceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.ChargePayment.SetBinding(Commerce.Pipelines.WindowsWorkflow.Activities.ChargePaymentActivity.PaymentGatewayProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // ChargeWorkflow
            // 
            this.Activities.Add(this.ChargePayment);
            this.Activities.Add(this.SetAsCharged);
            this.Activities.Add(this.SaveOrder);
            this.Name = "ChargeWorkflow";
            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.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.completedTask = new System.Workflow.Activities.CodeActivity();
     this.taskApprovalActivity1 = new TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity();
     this.initialData = new System.Workflow.Activities.CodeActivity();
     this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
     this.whileActivity1 = new System.Workflow.Activities.WhileActivity();
     //
     // completedTask
     //
     this.completedTask.Name = "completedTask";
     this.completedTask.ExecuteCode += new System.EventHandler(this.completedTask_ExecuteCode);
     //
     // taskApprovalActivity1
     //
     activitybind1.Name = "TaskApproval";
     activitybind1.Path = "TaskInfo";
     this.taskApprovalActivity1.Name = "taskApprovalActivity1";
     activitybind2.Name = "TaskApproval";
     activitybind2.Path = "Parameter";
     activitybind3.Name = "TaskApproval";
     activitybind3.Path = "WorkflowProperties";
     this.taskApprovalActivity1.SetBinding(TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity.ParameterProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.taskApprovalActivity1.SetBinding(TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity.ApprovalInfoTaskProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.taskApprovalActivity1.SetBinding(TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // initialData
     //
     this.initialData.Name = "initialData";
     this.initialData.ExecuteCode += new System.EventHandler(this.initialData_ExecuteCode);
     //
     // sequenceActivity1
     //
     this.sequenceActivity1.Activities.Add(this.initialData);
     this.sequenceActivity1.Activities.Add(this.taskApprovalActivity1);
     this.sequenceActivity1.Activities.Add(this.completedTask);
     this.sequenceActivity1.Name = "sequenceActivity1";
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.sequenceActivity1);
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.havePreviousTask);
     this.whileActivity1.Condition = codecondition1;
     this.whileActivity1.Name = "whileActivity1";
     //
     // TaskApproval
     //
     this.Activities.Add(this.whileActivity1);
     this.Name = "TaskApproval";
     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();
            this.SetNewPageAsCurrent = new DashboardBusiness.Activities.SetCurrentPageActivity();
            this.CreateNewPage = new DashboardBusiness.Activities.CreateNewPageActivity();
            this.GetUserGuid = new DashboardBusiness.Activities.GetUserGuidActivity();
            // 
            // SetNewPageAsCurrent
            // 
            this.SetNewPageAsCurrent.Name = "SetNewPageAsCurrent";
            activitybind1.Name = "CreateNewPage";
            activitybind1.Path = "NewPageId";
            activitybind2.Name = "GetUserGuid";
            activitybind2.Path = "UserGuid";
            this.SetNewPageAsCurrent.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(DashboardBusiness.Activities.SetCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.SetNewPageAsCurrent.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(DashboardBusiness.Activities.SetCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // CreateNewPage
            // 
            activitybind3.Name = "AddNewTabWorkflow";
            activitybind3.Path = "LayoutType";
            this.CreateNewPage.Name = "CreateNewPage";
            activitybind4.Name = "AddNewTabWorkflow";
            activitybind4.Path = "NewPage";
            this.CreateNewPage.NewPageId = 0;
            this.CreateNewPage.Title = "New Page";
            activitybind5.Name = "GetUserGuid";
            activitybind5.Path = "UserGuid";
            this.CreateNewPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserId", typeof(DashboardBusiness.Activities.CreateNewPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.CreateNewPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("LayoutType", typeof(DashboardBusiness.Activities.CreateNewPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.CreateNewPage.SetBinding(DashboardBusiness.Activities.CreateNewPageActivity.NewPageProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // GetUserGuid
            // 
            this.GetUserGuid.Name = "GetUserGuid";
            this.GetUserGuid.UserGuid = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind6.Name = "AddNewTabWorkflow";
            activitybind6.Path = "UserName";
            this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(DashboardBusiness.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // AddNewTabWorkflow
            // 
            this.Activities.Add(this.GetUserGuid);
            this.Activities.Add(this.CreateNewPage);
            this.Activities.Add(this.SetNewPageAsCurrent);
            this.Name = "AddNewTabWorkflow";
            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 activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.codeActivity = new System.Workflow.Activities.CodeActivity();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // logToHistoryListActivity1
            // 
            this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind1.Name = "Workflow1";
            activitybind1.Path = "logHistoryDescriptions";
            activitybind2.Name = "Workflow1";
            activitybind2.Path = "logHistoryOutcome";
            this.logToHistoryListActivity1.Name = "logToHistoryListActivity1";
            this.logToHistoryListActivity1.OtherData = "";
            this.logToHistoryListActivity1.UserId = -1;
            this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // codeActivity
            // 
            this.codeActivity.Name = "codeActivity";
            this.codeActivity.ExecuteCode += new System.EventHandler(this.codeActivity_ExecuteCode);
            activitybind4.Name = "Workflow1";
            activitybind4.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            correlationtoken1.Name = "SampleWorkflowToken";
            correlationtoken1.OwnerActivityName = "Workflow1";
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind3.Name = "Workflow1";
            activitybind3.Path = "workflowProperties";
            this.onWorkflowActivated1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // Workflow1
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.codeActivity);
            this.Activities.Add(this.logToHistoryListActivity1);
            this.Name = "Workflow1";
            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();
            this.reorderWidgetInstanceOnColumnActivity1 = new DashboardBusiness.Activities.ReorderWidgetInstanceOnColumnActivity();
            this.deleteWidgetInstanceActivity1 = new DashboardBusiness.Activities.DeleteWidgetInstanceActivity();
            this.EnsureWidgetOwner = new DashboardBusiness.Activities.EnsureOwnerActivity();
            // 
            // reorderWidgetInstanceOnColumnActivity1
            // 
            activitybind1.Name = "DeleteWidgetInstanceWorkflow";
            activitybind1.Path = "WidgetInstance.ColumnNo";
            this.reorderWidgetInstanceOnColumnActivity1.Name = "reorderWidgetInstanceOnColumnActivity1";
            activitybind2.Name = "DeleteWidgetInstanceWorkflow";
            activitybind2.Path = "WidgetInstance.PageId";
            this.reorderWidgetInstanceOnColumnActivity1.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(DashboardBusiness.Activities.ReorderWidgetInstanceOnColumnActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.reorderWidgetInstanceOnColumnActivity1.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("ColumnNo", typeof(DashboardBusiness.Activities.ReorderWidgetInstanceOnColumnActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // deleteWidgetInstanceActivity1
            // 
            this.deleteWidgetInstanceActivity1.Name = "deleteWidgetInstanceActivity1";
            activitybind3.Name = "DeleteWidgetInstanceWorkflow";
            activitybind3.Path = "WidgetInstance";
            this.deleteWidgetInstanceActivity1.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("WidgetInstance", typeof(DashboardBusiness.Activities.DeleteWidgetInstanceActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // EnsureWidgetOwner
            // 
            this.EnsureWidgetOwner.Name = "EnsureWidgetOwner";
            activitybind4.Name = "DeleteWidgetInstanceWorkflow";
            activitybind4.Path = "WidgetInstance.PageId";
            activitybind5.Name = "DeleteWidgetInstanceWorkflow";
            activitybind5.Path = "UserName";
            activitybind6.Name = "DeleteWidgetInstanceWorkflow";
            activitybind6.Path = "WidgetInstance.Id";
            this.EnsureWidgetOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(DashboardBusiness.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.EnsureWidgetOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("WidgetInstanceId", typeof(DashboardBusiness.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.EnsureWidgetOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(DashboardBusiness.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // DeleteWidgetInstanceWorkflow
            // 
            this.Activities.Add(this.EnsureWidgetOwner);
            this.Activities.Add(this.deleteWidgetInstanceActivity1);
            this.Activities.Add(this.reorderWidgetInstanceOnColumnActivity1);
            this.Name = "DeleteWidgetInstanceWorkflow";
            this.CanModifyActivities = false;

		}
        private static ActivityBind GetContextBind(ActivityBind activityBind, Activity activity, out Activity contextActivity)
        {
            if (activityBind == null)
            {
                throw new ArgumentNullException("activityBind");
            }
            if (activity == null)
            {
                throw new ArgumentNullException("activity");
            }
            BindRecursionContext context = new BindRecursionContext();
            ActivityBind         bind    = activityBind;

            contextActivity = activity;
            while (bind != null)
            {
                Activity activity2 = Helpers.ParseActivityForBind(contextActivity, bind.Name);
                if (activity2 == null)
                {
                    return(null);
                }
                object     dataContext = activity2;
                MemberInfo memberInfo  = GetMemberInfo(dataContext.GetType(), bind.Path, null);
                if (memberInfo == null)
                {
                    contextActivity = activity2;
                    return(bind);
                }
                if (memberInfo is FieldInfo)
                {
                    contextActivity = activity2;
                    return(bind);
                }
                if ((!(memberInfo is PropertyInfo) || !((memberInfo as PropertyInfo).PropertyType == typeof(ActivityBind))) || (dataContext == null))
                {
                    return(null);
                }
                object obj3 = MemberBind.GetValue(memberInfo, dataContext, bind.Path);
                if (!(obj3 is ActivityBind))
                {
                    return(null);
                }
                if (context.Contains(contextActivity, bind))
                {
                    return(null);
                }
                context.Add(contextActivity, bind);
                contextActivity = activity2;
                bind            = obj3 as ActivityBind;
            }
            return(bind);
        }
        protected override object GetBoundValue(ActivityBind bind, Type targetType)
        {
            if (bind == null)
                throw new ArgumentNullException("bind");
            if (targetType == null)
                throw new ArgumentNullException("targetType");

            object returnVal = bind;
            Activity activity = this.ParentDependencyObject as Activity;
            if (activity != null)
                returnVal = bind.GetRuntimeValue(activity, targetType);
            return returnVal;
        }
        protected virtual void SetBoundValue(ActivityBind bind, object value)
        {
            if (bind == null)
            {
                throw new ArgumentNullException("bind");
            }
            Activity activity = this.ResolveOwnerActivity();

            if (activity != null)
            {
                bind.SetRuntimeValue(activity, value);
            }
        }
 private static ActivityBind GetContextBind(ActivityBind activityBind, Activity activity, out Activity contextActivity)
 {
     if (activityBind == null)
     {
         throw new ArgumentNullException("activityBind");
     }
     if (activity == null)
     {
         throw new ArgumentNullException("activity");
     }
     BindRecursionContext context = new BindRecursionContext();
     ActivityBind bind = activityBind;
     contextActivity = activity;
     while (bind != null)
     {
         Activity activity2 = Helpers.ParseActivityForBind(contextActivity, bind.Name);
         if (activity2 == null)
         {
             return null;
         }
         object dataContext = activity2;
         MemberInfo memberInfo = GetMemberInfo(dataContext.GetType(), bind.Path, null);
         if (memberInfo == null)
         {
             contextActivity = activity2;
             return bind;
         }
         if (memberInfo is FieldInfo)
         {
             contextActivity = activity2;
             return bind;
         }
         if ((!(memberInfo is PropertyInfo) || !((memberInfo as PropertyInfo).PropertyType == typeof(ActivityBind))) || (dataContext == null))
         {
             return null;
         }
         object obj3 = MemberBind.GetValue(memberInfo, dataContext, bind.Path);
         if (!(obj3 is ActivityBind))
         {
             return null;
         }
         if (context.Contains(contextActivity, bind))
         {
             return null;
         }
         context.Add(contextActivity, bind);
         contextActivity = activity2;
         bind = obj3 as ActivityBind;
     }
     return bind;
 }
        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();
            this.SetCurrentPage = new Dropthings.Business.Activities.SetCurrentPageActivity();
            this.GetUserGuid = new Dropthings.Business.Activities.GetUserGuidActivity();
            this.EnsurePageOwner = new Dropthings.Business.Activities.EnsureOwnerActivity();
            // 
            // SetCurrentPage
            // 
            this.SetCurrentPage.Name = "SetCurrentPage";
            activitybind1.Name = "ChangeTabWorkflow";
            activitybind1.Path = "Request.PageID";
            activitybind2.Name = "GetUserGuid";
            activitybind2.Path = "UserGuid";
            this.SetCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(Dropthings.Business.Activities.SetCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.SetCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.SetCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GetUserGuid
            // 
            this.GetUserGuid.Name = "GetUserGuid";
            this.GetUserGuid.UserGuid = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind3.Name = "ChangeTabWorkflow";
            activitybind3.Path = "Request.UserName";
            this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // EnsurePageOwner
            // 
            this.EnsurePageOwner.Name = "EnsurePageOwner";
            activitybind4.Name = "ChangeTabWorkflow";
            activitybind4.Path = "Request.PageID";
            activitybind5.Name = "ChangeTabWorkflow";
            activitybind5.Path = "Request.UserName";
            this.EnsurePageOwner.WidgetInstanceId = 0;
            this.EnsurePageOwner.WidgetZoneId = 0;
            this.EnsurePageOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(Dropthings.Business.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.EnsurePageOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // ChangeTabWorkflow
            // 
            this.Activities.Add(this.EnsurePageOwner);
            this.Activities.Add(this.GetUserGuid);
            this.Activities.Add(this.SetCurrentPage);
            this.Name = "ChangeTabWorkflow";
            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;

        }
		public void SetGetRuntimeValue ()
		{
			object obj;
			string st = string.Empty;
			ClassProvider cp = new ClassProvider ();
			ActivityBind ab = new ActivityBind ("ClassProvider", "Name");

			obj = ab.GetRuntimeValue (cp, st.GetType ());
			Assert.AreEqual ("Hello", obj.ToString (), "C1#1");
			ab.SetRuntimeValue (cp, "Bye");

			obj = ab.GetRuntimeValue (cp, st.GetType ());
			Assert.AreEqual ("Bye", obj.ToString (), "C1#2");		
		}
 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();
     Sage.SalesLogix.Process.Activities.RelativeDateTime relativedatetime1 = new Sage.SalesLogix.Process.Activities.RelativeDateTime();
     System.Workflow.Activities.Rules.RuleSetReference rulesetreference1 = new System.Workflow.Activities.Rules.RuleSetReference();
     this.createToDo1 = new Sage.SalesLogix.Process.Activities.CreateToDo();
     this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
     this.policyActivity1 = new System.Workflow.Activities.PolicyActivity();
     activitybind1.Name = "Workflow2";
     activitybind1.Path = "CurrentEntity.Id";
     activitybind2.Name = "Workflow2";
     activitybind2.Path = "CurrentEntity.ModifyUser";
     //
     // createToDo1
     //
     this.createToDo1.ActivityDescription = "Created from Process";
     this.createToDo1.Description = "Created from Process";
     this.createToDo1.Name = "createToDo1";
     relativedatetime1.BaseDateTime = new System.DateTime(2008, 10, 2, 0, 0, 0, 0);
     relativedatetime1.Offset = System.TimeSpan.Parse("00:00:00");
     relativedatetime1.RelativeTo = Sage.SalesLogix.Process.Activities.RelativeTo.UtcNow;
     this.createToDo1.StartDate = relativedatetime1;
     this.createToDo1.SetBinding(Sage.SalesLogix.Process.Activities.CreateActivityBase.AccountIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.createToDo1.SetBinding(Sage.SalesLogix.Process.Activities.CreateActivityBase.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // codeActivity1
     //
     this.codeActivity1.Name = "codeActivity1";
     this.codeActivity1.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
     //
     // policyActivity1
     //
     this.policyActivity1.Name = "policyActivity1";
     rulesetreference1.RuleSetName = "Rule Set1";
     this.policyActivity1.RuleSetReference = rulesetreference1;
     //
     // Workflow2
     //
     this.Activities.Add(this.policyActivity1);
     this.Activities.Add(this.codeActivity1);
     this.Activities.Add(this.createToDo1);
     this.Description = "y 2nd Workflow";
     this.EntityId = null;
     this.EntityType = typeof(Sage.Entity.Interfaces.IAccount);
     this.Name = "Workflow2";
     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();
            this.ResizeWidget = new Dropthings.Business.Activities.ResizeWidgetActivity();
            this.EnsureWidgetOwner = new Dropthings.Business.Activities.EnsureOwnerActivity();
            // 
            // ResizeWidget
            // 
            activitybind1.Name = "ResizeWidgetInstanceWorkflow";
            activitybind1.Path = "Request.Hidth";
            activitybind2.Name = "ResizeWidgetInstanceWorkflow";
            activitybind2.Path = "Response.WidgetInstanceAffected";
            this.ResizeWidget.Name = "ResizeWidget";
            activitybind3.Name = "ResizeWidgetInstanceWorkflow";
            activitybind3.Path = "Request.WidgetInstanceId";
            activitybind4.Name = "ResizeWidgetInstanceWorkflow";
            activitybind4.Path = "Request.Width";
            this.ResizeWidget.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Height", typeof(Dropthings.Business.Activities.ResizeWidgetActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.ResizeWidget.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("WidgetInstanceId", typeof(Dropthings.Business.Activities.ResizeWidgetActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.ResizeWidget.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Width", typeof(Dropthings.Business.Activities.ResizeWidgetActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.ResizeWidget.SetBinding(Dropthings.Business.Activities.ResizeWidgetActivity.ModifiedWidgetInstanceProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // EnsureWidgetOwner
            // 
            this.EnsureWidgetOwner.Name = "EnsureWidgetOwner";
            this.EnsureWidgetOwner.PageId = 0;
            activitybind5.Name = "ResizeWidgetInstanceWorkflow";
            activitybind5.Path = "Request.UserName";
            activitybind6.Name = "ResizeWidgetInstanceWorkflow";
            activitybind6.Path = "Request.WidgetInstanceId";
            this.EnsureWidgetOwner.WidgetZoneId = 0;
            this.EnsureWidgetOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.EnsureWidgetOwner.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("WidgetInstanceId", typeof(Dropthings.Business.Activities.EnsureOwnerActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // ResizeWidgetInstanceWorkflow
            // 
            this.Activities.Add(this.EnsureWidgetOwner);
            this.Activities.Add(this.ResizeWidget);
            this.Name = "ResizeWidgetInstanceWorkflow";
            this.CanModifyActivities = false;

        }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            this.createTask1 = new Microsoft.SharePoint.WorkflowActions.CreateTask();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // createTask1
            // 
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "PendirianPerusahaanBaruIndonesiaWorkflow";
            this.createTask1.CorrelationToken = correlationtoken1;
            this.createTask1.ListItemId = -1;
            this.createTask1.Name = "createTask1";
            this.createTask1.SpecialPermissions = null;
            activitybind1.Name = "PendirianPerusahaanBaruIndonesiaWorkflow";
            activitybind1.Path = "createTask1_TaskId1";
            activitybind2.Name = "PendirianPerusahaanBaruIndonesiaWorkflow";
            activitybind2.Path = "createTask1_TaskProperties1";
            this.createTask1.MethodInvoking += new System.EventHandler(this.createTask1_MethodInvoking);
            this.createTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.createTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            activitybind4.Name = "PendirianPerusahaanBaruIndonesiaWorkflow";
            activitybind4.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind3.Name = "PendirianPerusahaanBaruIndonesiaWorkflow";
            activitybind3.Path = "workflowProperties";
            this.onWorkflowActivated1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // PendirianPerusahaanBaruIndonesiaWorkflow
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.createTask1);
            this.Name = "PendirianPerusahaanBaruIndonesiaWorkflow";
            this.CanModifyActivities = false;

        }
Exemple #30
0
 public void Add(Activity activity, ActivityBind bind)
 {
     if (activity == null)
     {
         throw new ArgumentNullException("activity");
     }
     if (bind == null)
     {
         throw new ArgumentNullException("bind");
     }
     if (this.activityBinds[activity] == null)
     {
         this.activityBinds[activity] = new List <ActivityBind>();
     }
     ((List <ActivityBind>) this.activityBinds[activity]).Add(bind);
 }
 public void Add(Activity activity, ActivityBind bind)
 {
     if (activity == null)
     {
         throw new ArgumentNullException("activity");
     }
     if (bind == null)
     {
         throw new ArgumentNullException("bind");
     }
     if (this.activityBinds[activity] == null)
     {
         this.activityBinds[activity] = new List<ActivityBind>();
     }
     ((List<ActivityBind>) this.activityBinds[activity]).Add(bind);
 }
Exemple #32
0
        public void SetBinding(DependencyProperty dependencyProperty, ActivityBind bind)
        {
            if (dependencyProperty == null)
            {
                throw new ArgumentNullException("dependencyProperty");
            }

            if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsReadOnly)
            {
                throw new ArgumentException(SR.GetString(SR.Error_DPReadOnly), "dependencyProperty");
            }

            if (dependencyProperty.OwnerType == null)
            {
                throw new ArgumentException(SR.GetString(SR.Error_MissingOwnerTypeProperty), "dependencyProperty");
            }

            if (!dependencyProperty.IsAttached && !dependencyProperty.OwnerType.IsAssignableFrom(this.GetType()))
            {
                throw new InvalidOperationException(SR.GetString(SR.Error_InvalidDependencyProperty, this.GetType().FullName, dependencyProperty.Name, dependencyProperty.OwnerType.FullName));
            }

            if (!this.DesignMode)
            {
                throw new InvalidOperationException(SR.GetString(SR.Error_CanNotChangeAtRuntime));
            }

            if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsMetaProperty && !typeof(ActivityBind).IsAssignableFrom(dependencyProperty.PropertyType))
            {
                throw new ArgumentException(SR.GetString(SR.Error_DPMetaPropertyBinding), "dependencyProperty");
            }

            if (this.metaProperties.ContainsKey(dependencyProperty))
            {
                this.metaProperties[dependencyProperty] = bind;
            }
            else
            {
                this.metaProperties.Add(dependencyProperty, bind);
            }

            // Remove the instance value
            if (this.DependencyPropertyValues.ContainsKey(dependencyProperty))
            {
                this.DependencyPropertyValues.Remove(dependencyProperty);
            }
        }
		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();
            this.Return = new RKiss.ActivityLibrary.ReturnActivity();
            this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
            this.Connector = new RKiss.ActivityLibrary.ConnectorActivity();
            // 
            // Return
            // 
            this.Return.ConnectorActivityName = "Connector";
            this.Return.Name = "Return";
            activitybind1.Name = "Workflow2";
            activitybind1.Path = "Connector_msg1";
            workflowparameterbinding1.ParameterName = "(ReturnValue)";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.Return.Parameters.Add(workflowparameterbinding1);
            this.Return.Invoking += new System.EventHandler(this.callExternalMethodActivity1_MethodInvoking);
            // 
            // codeActivity1
            // 
            this.codeActivity1.Name = "codeActivity1";
            this.codeActivity1.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
            // 
            // Connector
            // 
            this.Connector.MethodName = "SayHello";
            this.Connector.Name = "Connector";
            activitybind2.Name = "Workflow2";
            activitybind2.Path = "connectorActivity1_msg1";
            workflowparameterbinding2.ParameterName = "msg";
            workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.Connector.Parameters.Add(workflowparameterbinding2);
            this.Connector.Type = typeof(InterfaceContract.ITest);
            // 
            // Workflow2
            // 
            this.Activities.Add(this.Connector);
            this.Activities.Add(this.codeActivity1);
            this.Activities.Add(this.Return);
            this.Name = "Workflow2";
            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();
            this.ChangeName = new Dropthings.Business.Activities.ChangePageNameActivity();
            this.GetCurrentPage = new Dropthings.Business.Activities.GetUserSettingActivity();
            this.GetUserGuid = new Dropthings.Business.Activities.GetUserGuidActivity();
            // 
            // ChangeName
            // 
            this.ChangeName.Name = "ChangeName";
            activitybind1.Name = "GetCurrentPage";
            activitybind1.Path = "UserSetting.CurrentPageId";
            activitybind2.Name = "ChangePageNameWorkflow";
            activitybind2.Path = "Request.PageName";
            this.ChangeName.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(Dropthings.Business.Activities.ChangePageNameActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.ChangeName.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageName", typeof(Dropthings.Business.Activities.ChangePageNameActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // GetCurrentPage
            // 
            this.GetCurrentPage.CurrentPage = null;
            this.GetCurrentPage.Name = "GetCurrentPage";
            activitybind3.Name = "GetUserGuid";
            activitybind3.Path = "UserGuid";
            this.GetCurrentPage.UserSetting = null;
            this.GetCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // GetUserGuid
            // 
            this.GetUserGuid.Name = "GetUserGuid";
            this.GetUserGuid.UserGuid = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind4.Name = "ChangePageNameWorkflow";
            activitybind4.Path = "Request.UserName";
            this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // ChangePageNameWorkflow
            // 
            this.Activities.Add(this.GetUserGuid);
            this.Activities.Add(this.GetCurrentPage);
            this.Activities.Add(this.ChangeName);
            this.Name = "ChangePageNameWorkflow";
            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();
            this.ResolveString = new System.Workflow.Activities.CodeActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.Parse = new System.Workflow.Activities.CodeActivity();
            // 
            // ResolveString
            // 
            this.ResolveString.Name = "ResolveString";
            this.ResolveString.ExecuteCode += new System.EventHandler(this.ResolveString_ExecuteCode);
            // 
            // Resolve
            // 
            activitybind1.Name = "ResolveLookupString";
            activitybind1.Path = "ComparedRequestId";
            activitybind2.Name = "ResolveLookupString";
            activitybind2.Path = "ActivityExpressionEvaluator.LookupCache";
            this.Resolve.Name = "Resolve";
            activitybind3.Name = "ResolveLookupString";
            activitybind3.Path = "QueryResults";
            activitybind4.Name = "ResolveLookupString";
            activitybind4.Path = "Value";
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ComparedRequestIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // Parse
            // 
            this.Parse.Name = "Parse";
            this.Parse.ExecuteCode += new System.EventHandler(this.Parse_ExecuteCode);
            // 
            // ResolveLookupString
            // 
            this.Activities.Add(this.Parse);
            this.Activities.Add(this.Resolve);
            this.Activities.Add(this.ResolveString);
            this.Name = "ResolveLookupString";
            this.CanModifyActivities = false;

        }
 protected override object GetBoundValue(ActivityBind bind, Type targetType)
 {
     if (bind == null)
     {
         throw new ArgumentNullException("bind");
     }
     if (targetType == null)
     {
         throw new ArgumentNullException("targetType");
     }
     object runtimeValue = bind;
     Activity parentDependencyObject = base.ParentDependencyObject as Activity;
     if (parentDependencyObject != null)
     {
         runtimeValue = bind.GetRuntimeValue(parentDependencyObject, targetType);
     }
     return runtimeValue;
 }
        private void addBtn_Click(object sender, EventArgs e)
        {
            // �A�N�e�B�r�e�B�̒lj�
            object o = Activator.CreateInstance(Type.GetType("CustomActivityLibrary.Add3Activity, CustomActivityLibrary"));
            IServiceProvider provider = (IServiceProvider) workflowView;
            IDesignerHost designerHost = (IDesignerHost) provider.GetService(typeof(IDesignerHost));
            SequentialWorkflowActivity rootActivity = (SequentialWorkflowActivity)designerHost.RootComponent;
            ((CompositeActivity) rootActivity.Activities[0]).Activities.Add((Activity) o);
            designerHost.RootComponent.Site.Container.Add((IComponent) o);

            // �v���p�e�B�̐ݒ�
            Activity activity = (Activity)o;
            PropertyDescriptor propertyDescriptor = TypeDescriptor.GetProperties(activity)["CalcValueProperty"];
            ActivityBind bind = new ActivityBind();
            bind.Name = "Workflow1";
            bind.Path = "paramValue";
            propertyDescriptor.SetValue(activity, bind);
        }
		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.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
            this.makeFullName = new System.Workflow.Activities.CallExternalMethodActivity();
            this.waitForSurveyComplete = new System.Workflow.Activities.HandleExternalEventActivity();
            // 
            // makeFullName
            // 
            this.makeFullName.InterfaceType = typeof(Castle.Facilities.WorkflowIntegration.Tests.Services.ITestingExternalData);
            this.makeFullName.MethodName = "CreateFullName";
            this.makeFullName.Name = "makeFullName";
            activitybind1.Name = "PausingWorkflow";
            activitybind1.Path = "surveyCompleteArgs.Name";
            workflowparameterbinding1.ParameterName = "first";
            workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            workflowparameterbinding2.ParameterName = "last";
            workflowparameterbinding2.Value = "called";
            this.makeFullName.ParameterBindings.Add(workflowparameterbinding1);
            this.makeFullName.ParameterBindings.Add(workflowparameterbinding2);
            // 
            // waitForSurveyComplete
            // 
            this.waitForSurveyComplete.EventName = "SurveyComplete";
            this.waitForSurveyComplete.InterfaceType = typeof(Castle.Facilities.WorkflowIntegration.Tests.Services.ITestingExternalData);
            this.waitForSurveyComplete.Name = "waitForSurveyComplete";
            activitybind2.Name = "PausingWorkflow";
            activitybind2.Path = "surveyCompleteArgs";
            workflowparameterbinding3.ParameterName = "e";
            workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.waitForSurveyComplete.ParameterBindings.Add(workflowparameterbinding3);
            // 
            // PausingWorkflow
            // 
            this.Activities.Add(this.waitForSurveyComplete);
            this.Activities.Add(this.makeFullName);
            this.Name = "PausingWorkflow";
            this.CanModifyActivities = false;

		}
        protected virtual object GetBoundValue(ActivityBind bind, Type targetType)
        {
            if (bind == null)
            {
                throw new ArgumentNullException("bind");
            }
            if (targetType == null)
            {
                throw new ArgumentNullException("targetType");
            }
            object   runtimeValue = bind;
            Activity activity     = this.ResolveOwnerActivity();

            if (activity != null)
            {
                runtimeValue = bind.GetRuntimeValue(activity, targetType);
            }
            return(runtimeValue);
        }
Exemple #40
0
        public void SetBinding(DependencyProperty dependencyProperty, ActivityBind bind)
        {
            if (dependencyProperty == null)
            {
                throw new ArgumentNullException("The dependencyProperty parameter cannot be null");
            }

            if (bind == null)
            {
                throw new ArgumentNullException("The binding parameter cannot be null");
            }

            if (bindings.ContainsKey(dependencyProperty) == true)
            {
                bindings[dependencyProperty] = bind;
            }
            else
            {
                bindings.Add(dependencyProperty, bind);
            }
        }
Exemple #41
0
 public bool Contains(Activity activity, ActivityBind bind)
 {
     if (activity == null)
     {
         throw new ArgumentNullException("activity");
     }
     if (bind == null)
     {
         throw new ArgumentNullException("bind");
     }
     if (this.activityBinds[activity] != null)
     {
         List <ActivityBind> list = this.activityBinds[activity] as List <ActivityBind>;
         foreach (ActivityBind bind2 in list)
         {
             if (bind2.Path == bind.Path)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Exemple #42
0
 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 activitybind8     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind9     = 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 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 activitybind15    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind14    = new System.Workflow.ComponentModel.ActivityBind();
     this.logToHistoryListActivity1   = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.subSiteCreationFaultHandler = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.faultHandlersActivity1      = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.SynchronizeStatus           = new Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.SynchronizeStatusActivity();
     this.logToHistoryListActivity3   = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.CreateSubSite               = new Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity();
     this.logToHistoryListActivity2   = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ResolveSiteTemplate         = new Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.ResolveSiteTemplateActivity();
     this.LogResolveSiteTemplateStart = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.onWorkflowActivated1        = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // logToHistoryListActivity1
     //
     this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity1.EventId  = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowError;
     activitybind1.Name = "subSiteCreationFaultHandler";
     activitybind1.Path = "Fault.Message";
     this.logToHistoryListActivity1.HistoryOutcome = "";
     this.logToHistoryListActivity1.Name           = "logToHistoryListActivity1";
     this.logToHistoryListActivity1.OtherData      = "";
     this.logToHistoryListActivity1.UserId         = -1;
     this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // subSiteCreationFaultHandler
     //
     this.subSiteCreationFaultHandler.Activities.Add(this.logToHistoryListActivity1);
     this.subSiteCreationFaultHandler.FaultType = typeof(Microsoft.Practices.SPG.SubSiteCreation.SubSiteCreationException);
     this.subSiteCreationFaultHandler.Name      = "subSiteCreationFaultHandler";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.subSiteCreationFaultHandler);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // SynchronizeStatus
     //
     this.SynchronizeStatus.Name   = "SynchronizeStatus";
     this.SynchronizeStatus.Status = "\"Active\"";
     activitybind2.Name            = "SubSiteCreationActivity";
     activitybind2.Path            = "SubSiteUrl";
     this.SynchronizeStatus.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.SynchronizeStatusActivity.TargetWebUrlProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // logToHistoryListActivity3
     //
     this.logToHistoryListActivity3.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity3.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity3.HistoryDescription = "synchronizing status";
     this.logToHistoryListActivity3.HistoryOutcome     = "";
     this.logToHistoryListActivity3.Name      = "logToHistoryListActivity3";
     this.logToHistoryListActivity3.OtherData = "";
     this.logToHistoryListActivity3.UserId    = -1;
     activitybind8.Name = "SubSiteCreationActivity";
     activitybind8.Path = "SubSiteUrl";
     activitybind9.Name = "SubSiteCreationActivity";
     activitybind9.Path = "BusinessEventIdKey";
     //
     // CreateSubSite
     //
     activitybind3.Name      = "SubSiteCreationActivity";
     activitybind3.Path      = "BusinessEvent";
     activitybind4.Name      = "SubSiteCreationActivity";
     activitybind4.Path      = "EventId";
     this.CreateSubSite.Name = "CreateSubSite";
     activitybind5.Name      = "SubSiteCreationActivity";
     activitybind5.Path      = "SiteCollectionUrl";
     activitybind6.Name      = "SubSiteCreationActivity";
     activitybind6.Path      = "SiteTemplateName";
     activitybind7.Name      = "SubSiteCreationActivity";
     activitybind7.Path      = "TopLevelSiteRelativeUrl";
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.BusinessEventProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.BusinessEventIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.SiteCollectionUrlProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.SiteTemplateNameProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.SubSiteUrlProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.TopLevelSiteRelativeUrlProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.CreateSubSite.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.CreateSubSiteActivity.BusinessEventIdKeyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     //
     // logToHistoryListActivity2
     //
     this.logToHistoryListActivity2.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity2.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity2.HistoryDescription = "creating subsite";
     this.logToHistoryListActivity2.HistoryOutcome     = "";
     this.logToHistoryListActivity2.Name      = "logToHistoryListActivity2";
     this.logToHistoryListActivity2.OtherData = "";
     this.logToHistoryListActivity2.UserId    = -1;
     //
     // ResolveSiteTemplate
     //
     activitybind10.Name           = "SubSiteCreationActivity";
     activitybind10.Path           = "BusinessEventIdKey";
     activitybind11.Name           = "SubSiteCreationActivity";
     activitybind11.Path           = "BusinessEvent";
     this.ResolveSiteTemplate.Name = "ResolveSiteTemplate";
     activitybind12.Name           = "SubSiteCreationActivity";
     activitybind12.Path           = "SiteTemplateName";
     activitybind13.Name           = "SubSiteCreationActivity";
     activitybind13.Path           = "TopLevelSiteRelativeUrl";
     this.ResolveSiteTemplate.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.ResolveSiteTemplateActivity.BusinessEventNameProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     this.ResolveSiteTemplate.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.ResolveSiteTemplateActivity.SiteTemplateNameProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.ResolveSiteTemplate.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.ResolveSiteTemplateActivity.TopLevelSiteRelativeUrlProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.ResolveSiteTemplate.SetBinding(Microsoft.Practices.SPG.SubSiteCreation.Workflow.Activities.ResolveSiteTemplateActivity.BusinessEventIdKeyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     //
     // LogResolveSiteTemplateStart
     //
     this.LogResolveSiteTemplateStart.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.LogResolveSiteTemplateStart.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.LogResolveSiteTemplateStart.HistoryDescription = "resolving site template";
     this.LogResolveSiteTemplateStart.HistoryOutcome     = "";
     this.LogResolveSiteTemplateStart.Name      = "LogResolveSiteTemplateStart";
     this.LogResolveSiteTemplateStart.OtherData = "";
     this.LogResolveSiteTemplateStart.UserId    = -1;
     activitybind15.Name = "SubSiteCreationActivity";
     activitybind15.Path = "WorkflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "SubSiteCreationActivity";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind14.Name = "SubSiteCreationActivity";
     activitybind14.Path = "WorkflowProperties";
     this.onWorkflowActivated1.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     //
     // SubSiteCreationActivity
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.LogResolveSiteTemplateStart);
     this.Activities.Add(this.ResolveSiteTemplate);
     this.Activities.Add(this.logToHistoryListActivity2);
     this.Activities.Add(this.CreateSubSite);
     this.Activities.Add(this.logToHistoryListActivity3);
     this.Activities.Add(this.SynchronizeStatus);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "SubSiteCreationActivity";
     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();
     this.eaFHCheckAttendence        = new V2.Orbit.Workflow.Activities.MailActivity.EmailActivity();
     this.caFHCheckAttendence        = new System.Workflow.Activities.CodeActivity();
     this.eafhOnStop                 = new V2.Orbit.Workflow.Activities.MailActivity.EmailActivity();
     this.cafhOnStop                 = new System.Workflow.Activities.CodeActivity();
     this.eafhOnDemand               = new V2.Orbit.Workflow.Activities.MailActivity.EmailActivity();
     this.cafhOnDemand               = new System.Workflow.Activities.CodeActivity();
     this.eafhDelay                  = new V2.Orbit.Workflow.Activities.MailActivity.EmailActivity();
     this.cafhDelay                  = new System.Workflow.Activities.CodeActivity();
     this.eaFHAttendance             = new V2.Orbit.Workflow.Activities.MailActivity.EmailActivity();
     this.caSetValuestoSendMailtoPMO = new System.Workflow.Activities.CodeActivity();
     this.fhCheckAttendence          = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.fhOnStop                     = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.fhOnDemand                   = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.fhDelay                      = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.fhException                  = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.faultHandlersActivity2       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.ssaCheckAttendenceToWait     = new System.Workflow.Activities.SetStateActivity();
     this.caCheckAttendance            = new System.Workflow.Activities.CodeActivity();
     this.faultHandlersActivity5       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.ssaToCompleted               = new System.Workflow.Activities.SetStateActivity();
     this.heaStopAttendanceChecker     = new System.Workflow.Activities.HandleExternalEventActivity();
     this.faultHandlersActivity4       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.cancellationHandlerActivity1 = new System.Workflow.ComponentModel.CancellationHandlerActivity();
     this.ssaGoToSleepfromhea          = new System.Workflow.Activities.SetStateActivity();
     this.heaOnDemandAttendanceCheck   = new System.Workflow.Activities.HandleExternalEventActivity();
     this.faultHandlersActivity3       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.ssaGotoSleepFromChecker      = new System.Workflow.Activities.SetStateActivity();
     this.daCheckAttendance            = new System.Workflow.Activities.DelayActivity();
     this.faultHandlersActivity1       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.ssaGotoCheckAttendence       = new System.Workflow.Activities.SetStateActivity();
     this.siaAttendenceSendMail        = new System.Workflow.Activities.StateInitializationActivity();
     this.edaOnStop                    = new System.Workflow.Activities.EventDrivenActivity();
     this.edaOnDemand                  = new System.Workflow.Activities.EventDrivenActivity();
     this.edaDelay                     = new System.Workflow.Activities.EventDrivenActivity();
     this.siaAttendance                = new System.Workflow.Activities.StateInitializationActivity();
     this.saCheckAttendenceSendMail    = new System.Workflow.Activities.StateActivity();
     this.saCheckAttendance            = new System.Workflow.Activities.StateActivity();
     this.csaCompleted                 = new System.Workflow.Activities.StateActivity();
     this.isaAttendance                = new System.Workflow.Activities.StateActivity();
     //
     // eaFHCheckAttendence
     //
     activitybind1.Name            = "AttendanceWF";
     activitybind1.Path            = "Body";
     activitybind2.Name            = "AttendanceWF";
     activitybind2.Path            = "From";
     this.eaFHCheckAttendence.Name = "eaFHCheckAttendence";
     activitybind3.Name            = "AttendanceWF";
     activitybind3.Path            = "SMTPServer";
     activitybind4.Name            = "AttendanceWF";
     activitybind4.Path            = "Subject";
     activitybind5.Name            = "AttendanceWF";
     activitybind5.Path            = "To";
     this.eaFHCheckAttendence.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.eaFHCheckAttendence.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.eaFHCheckAttendence.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SMTPServerProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.eaFHCheckAttendence.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.eaFHCheckAttendence.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // caFHCheckAttendence
     //
     this.caFHCheckAttendence.Name         = "caFHCheckAttendence";
     this.caFHCheckAttendence.ExecuteCode += new System.EventHandler(this.caFHCheckAttendence_ExecuteCode);
     //
     // eafhOnStop
     //
     activitybind6.Name   = "AttendanceWF";
     activitybind6.Path   = "Body";
     activitybind7.Name   = "AttendanceWF";
     activitybind7.Path   = "From";
     this.eafhOnStop.Name = "eafhOnStop";
     activitybind8.Name   = "AttendanceWF";
     activitybind8.Path   = "SMTPServer";
     activitybind9.Name   = "AttendanceWF";
     activitybind9.Path   = "Subject";
     activitybind10.Name  = "AttendanceWF";
     activitybind10.Path  = "To";
     this.eafhOnStop.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.eafhOnStop.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.eafhOnStop.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SMTPServerProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     this.eafhOnStop.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.eafhOnStop.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     //
     // cafhOnStop
     //
     this.cafhOnStop.Name         = "cafhOnStop";
     this.cafhOnStop.ExecuteCode += new System.EventHandler(this.cafhOnStop_ExecuteCode);
     //
     // eafhOnDemand
     //
     activitybind11.Name    = "AttendanceWF";
     activitybind11.Path    = "Body";
     activitybind12.Name    = "AttendanceWF";
     activitybind12.Path    = "From";
     this.eafhOnDemand.Name = "eafhOnDemand";
     activitybind13.Name    = "AttendanceWF";
     activitybind13.Path    = "SMTPServer";
     activitybind14.Name    = "AttendanceWF";
     activitybind14.Path    = "Subject";
     activitybind15.Name    = "AttendanceWF";
     activitybind15.Path    = "To";
     this.eafhOnDemand.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     this.eafhOnDemand.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.eafhOnDemand.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SMTPServerProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.eafhOnDemand.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.eafhOnDemand.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     //
     // cafhOnDemand
     //
     this.cafhOnDemand.Name         = "cafhOnDemand";
     this.cafhOnDemand.ExecuteCode += new System.EventHandler(this.cafhOnDemand_ExecuteCode);
     //
     // eafhDelay
     //
     this.eafhDelay.Body       = null;
     this.eafhDelay.From       = null;
     this.eafhDelay.Name       = "eafhDelay";
     this.eafhDelay.SMTPServer = null;
     this.eafhDelay.Subject    = null;
     this.eafhDelay.To         = null;
     //
     // cafhDelay
     //
     this.cafhDelay.Name         = "cafhDelay";
     this.cafhDelay.ExecuteCode += new System.EventHandler(this.cafhDelay_ExecuteCode);
     //
     // eaFHAttendance
     //
     activitybind16.Name      = "AttendanceWF";
     activitybind16.Path      = "Body";
     activitybind17.Name      = "AttendanceWF";
     activitybind17.Path      = "From";
     this.eaFHAttendance.Name = "eaFHAttendance";
     activitybind18.Name      = "AttendanceWF";
     activitybind18.Path      = "SMTPServer";
     activitybind19.Name      = "AttendanceWF";
     activitybind19.Path      = "Subject";
     activitybind20.Name      = "AttendanceWF";
     activitybind20.Path      = "To";
     this.eaFHAttendance.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     this.eaFHAttendance.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     this.eaFHAttendance.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SMTPServerProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
     this.eaFHAttendance.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
     this.eaFHAttendance.SetBinding(V2.Orbit.Workflow.Activities.MailActivity.EmailActivity.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
     //
     // caSetValuestoSendMailtoPMO
     //
     this.caSetValuestoSendMailtoPMO.Name         = "caSetValuestoSendMailtoPMO";
     this.caSetValuestoSendMailtoPMO.ExecuteCode += new System.EventHandler(this.caFHSendMailFromIsaAttendance);
     //
     // fhCheckAttendence
     //
     this.fhCheckAttendence.Activities.Add(this.caFHCheckAttendence);
     this.fhCheckAttendence.Activities.Add(this.eaFHCheckAttendence);
     this.fhCheckAttendence.FaultType = typeof(System.Exception);
     this.fhCheckAttendence.Name      = "fhCheckAttendence";
     //
     // fhOnStop
     //
     this.fhOnStop.Activities.Add(this.cafhOnStop);
     this.fhOnStop.Activities.Add(this.eafhOnStop);
     this.fhOnStop.FaultType = typeof(System.Exception);
     this.fhOnStop.Name      = "fhOnStop";
     //
     // fhOnDemand
     //
     this.fhOnDemand.Activities.Add(this.cafhOnDemand);
     this.fhOnDemand.Activities.Add(this.eafhOnDemand);
     this.fhOnDemand.FaultType = typeof(System.Exception);
     this.fhOnDemand.Name      = "fhOnDemand";
     //
     // fhDelay
     //
     this.fhDelay.Activities.Add(this.cafhDelay);
     this.fhDelay.Activities.Add(this.eafhDelay);
     this.fhDelay.FaultType = typeof(System.Exception);
     this.fhDelay.Name      = "fhDelay";
     //
     // fhException
     //
     this.fhException.Activities.Add(this.caSetValuestoSendMailtoPMO);
     this.fhException.Activities.Add(this.eaFHAttendance);
     this.fhException.FaultType = typeof(System.Exception);
     this.fhException.Name      = "fhException";
     //
     // faultHandlersActivity2
     //
     this.faultHandlersActivity2.Activities.Add(this.fhCheckAttendence);
     this.faultHandlersActivity2.Name = "faultHandlersActivity2";
     //
     // ssaCheckAttendenceToWait
     //
     this.ssaCheckAttendenceToWait.Name            = "ssaCheckAttendenceToWait";
     this.ssaCheckAttendenceToWait.TargetStateName = "saCheckAttendance";
     //
     // caCheckAttendance
     //
     this.caCheckAttendance.Name         = "caCheckAttendance";
     this.caCheckAttendance.ExecuteCode += new System.EventHandler(this.caCheckAttendance_ExecuteCode);
     //
     // faultHandlersActivity5
     //
     this.faultHandlersActivity5.Activities.Add(this.fhOnStop);
     this.faultHandlersActivity5.Name = "faultHandlersActivity5";
     //
     // ssaToCompleted
     //
     this.ssaToCompleted.Name            = "ssaToCompleted";
     this.ssaToCompleted.TargetStateName = "csaCompleted";
     //
     // heaStopAttendanceChecker
     //
     this.heaStopAttendanceChecker.EventName     = "Stop";
     this.heaStopAttendanceChecker.InterfaceType = typeof(V2.Orbit.Workflow.AttendanceCheckerWF.IAttendanceChecker);
     this.heaStopAttendanceChecker.Name          = "heaStopAttendanceChecker";
     //
     // faultHandlersActivity4
     //
     this.faultHandlersActivity4.Activities.Add(this.fhOnDemand);
     this.faultHandlersActivity4.Name = "faultHandlersActivity4";
     //
     // cancellationHandlerActivity1
     //
     this.cancellationHandlerActivity1.Name = "cancellationHandlerActivity1";
     //
     // ssaGoToSleepfromhea
     //
     this.ssaGoToSleepfromhea.Name            = "ssaGoToSleepfromhea";
     this.ssaGoToSleepfromhea.TargetStateName = "saCheckAttendenceSendMail";
     //
     // heaOnDemandAttendanceCheck
     //
     this.heaOnDemandAttendanceCheck.EventName     = "OnDemandAttendanceCheck";
     this.heaOnDemandAttendanceCheck.InterfaceType = typeof(V2.Orbit.Workflow.AttendanceCheckerWF.IAttendanceChecker);
     this.heaOnDemandAttendanceCheck.Name          = "heaOnDemandAttendanceCheck";
     //
     // faultHandlersActivity3
     //
     this.faultHandlersActivity3.Activities.Add(this.fhDelay);
     this.faultHandlersActivity3.Name = "faultHandlersActivity3";
     //
     // ssaGotoSleepFromChecker
     //
     this.ssaGotoSleepFromChecker.Name            = "ssaGotoSleepFromChecker";
     this.ssaGotoSleepFromChecker.TargetStateName = "saCheckAttendenceSendMail";
     //
     // daCheckAttendance
     //
     this.daCheckAttendance.Name            = "daCheckAttendance";
     this.daCheckAttendance.TimeoutDuration = System.TimeSpan.Parse("05:00:00");
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.fhException);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // ssaGotoCheckAttendence
     //
     this.ssaGotoCheckAttendence.Name            = "ssaGotoCheckAttendence";
     this.ssaGotoCheckAttendence.TargetStateName = "saCheckAttendenceSendMail";
     //
     // siaAttendenceSendMail
     //
     this.siaAttendenceSendMail.Activities.Add(this.caCheckAttendance);
     this.siaAttendenceSendMail.Activities.Add(this.ssaCheckAttendenceToWait);
     this.siaAttendenceSendMail.Activities.Add(this.faultHandlersActivity2);
     this.siaAttendenceSendMail.Name = "siaAttendenceSendMail";
     //
     // edaOnStop
     //
     this.edaOnStop.Activities.Add(this.heaStopAttendanceChecker);
     this.edaOnStop.Activities.Add(this.ssaToCompleted);
     this.edaOnStop.Activities.Add(this.faultHandlersActivity5);
     this.edaOnStop.Name = "edaOnStop";
     //
     // edaOnDemand
     //
     this.edaOnDemand.Activities.Add(this.heaOnDemandAttendanceCheck);
     this.edaOnDemand.Activities.Add(this.ssaGoToSleepfromhea);
     this.edaOnDemand.Activities.Add(this.cancellationHandlerActivity1);
     this.edaOnDemand.Activities.Add(this.faultHandlersActivity4);
     this.edaOnDemand.Name = "edaOnDemand";
     //
     // edaDelay
     //
     this.edaDelay.Activities.Add(this.daCheckAttendance);
     this.edaDelay.Activities.Add(this.ssaGotoSleepFromChecker);
     this.edaDelay.Activities.Add(this.faultHandlersActivity3);
     this.edaDelay.Name = "edaDelay";
     //
     // siaAttendance
     //
     this.siaAttendance.Activities.Add(this.ssaGotoCheckAttendence);
     this.siaAttendance.Activities.Add(this.faultHandlersActivity1);
     this.siaAttendance.Name = "siaAttendance";
     //
     // saCheckAttendenceSendMail
     //
     this.saCheckAttendenceSendMail.Activities.Add(this.siaAttendenceSendMail);
     this.saCheckAttendenceSendMail.Name = "saCheckAttendenceSendMail";
     //
     // saCheckAttendance
     //
     this.saCheckAttendance.Activities.Add(this.edaDelay);
     this.saCheckAttendance.Activities.Add(this.edaOnDemand);
     this.saCheckAttendance.Activities.Add(this.edaOnStop);
     this.saCheckAttendance.Name = "saCheckAttendance";
     //
     // csaCompleted
     //
     this.csaCompleted.Name = "csaCompleted";
     //
     // isaAttendance
     //
     this.isaAttendance.Activities.Add(this.siaAttendance);
     this.isaAttendance.Name = "isaAttendance";
     //
     // AttendanceWF
     //
     this.Activities.Add(this.isaAttendance);
     this.Activities.Add(this.csaCompleted);
     this.Activities.Add(this.saCheckAttendance);
     this.Activities.Add(this.saCheckAttendenceSendMail);
     this.CompletedStateName     = "csaCompleted";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "isaAttendance";
     this.Name = "AttendanceWF";
     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();
     this.Adapter2 = new RKiss.ActivityLibrary.AdapterActivity();
     this.Return   = new RKiss.ActivityLibrary.ReturnActivity();
     this.transactionScopeActivity1 = new System.Workflow.ComponentModel.TransactionScopeActivity();
     this.Adapter   = new RKiss.ActivityLibrary.AdapterActivity();
     this.Connector = new RKiss.ActivityLibrary.ConnectorActivity();
     //
     // Adapter2
     //
     this.Adapter2.MethodName = "Fire";
     this.Adapter2.Name       = "Adapter2";
     activitybind1.Name       = "Workflow4";
     activitybind1.Path       = "Connector_msg1";
     workflowparameterbinding1.ParameterName = "msg";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.Adapter2.Parameters.Add(workflowparameterbinding1);
     this.Adapter2.Type = typeof(InterfaceContract.IFireTest);
     this.Adapter2.Uri  = "@asyncWorkflow";
     //
     // Return
     //
     this.Return.ConnectorActivityName = "Connector";
     this.Return.Name   = "Return";
     activitybind2.Name = "Workflow4";
     activitybind2.Path = "Return__ReturnValue_1";
     workflowparameterbinding2.ParameterName = "(ReturnValue)";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.Return.Parameters.Add(workflowparameterbinding2);
     //
     // transactionScopeActivity1
     //
     this.transactionScopeActivity1.Activities.Add(this.Adapter2);
     this.transactionScopeActivity1.Name = "transactionScopeActivity1";
     this.transactionScopeActivity1.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
     //
     // Adapter
     //
     this.Adapter.MethodName = "SayHello";
     this.Adapter.Name       = "Adapter";
     activitybind3.Name      = "Workflow4";
     activitybind3.Path      = "Connector_msg1";
     workflowparameterbinding3.ParameterName = "msg";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     activitybind4.Name = "Workflow4";
     activitybind4.Path = "Return__ReturnValue_1";
     workflowparameterbinding4.ParameterName = "(ReturnValue)";
     workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.Adapter.Parameters.Add(workflowparameterbinding3);
     this.Adapter.Parameters.Add(workflowparameterbinding4);
     this.Adapter.Type = typeof(InterfaceContract.ITest);
     this.Adapter.Uri  = "wf://localhost/MyWorkflow5";
     //
     // Connector
     //
     this.Connector.MethodName = "SayHello";
     this.Connector.Name       = "Connector";
     activitybind5.Name        = "Workflow4";
     activitybind5.Path        = "Connector_msg1";
     workflowparameterbinding5.ParameterName = "msg";
     workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.Connector.Parameters.Add(workflowparameterbinding5);
     this.Connector.Type      = typeof(InterfaceContract.ITest);
     this.Connector.Received += new System.EventHandler(this.Connector_Received);
     //
     // Workflow4
     //
     this.Activities.Add(this.Connector);
     this.Activities.Add(this.Adapter);
     this.Activities.Add(this.transactionScopeActivity1);
     this.Activities.Add(this.Return);
     this.Name = "Workflow4";
     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.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     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.Activities.CodeCondition    codecondition2    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition3    = new System.Workflow.Activities.CodeCondition();
     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.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     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.Activities.CodeCondition    codecondition4    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind16    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind15    = new System.Workflow.ComponentModel.ActivityBind();
     this.ErrorHandler2               = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity3       = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.faultHandlersActivity3      = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.Remove_ZaimportowaneFaktury = new System.Workflow.Activities.CodeActivity();
     this.Add_FakturyDoRejestru       = new System.Workflow.Activities.CodeActivity();
     this.logRecord3             = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Create_Message         = new System.Workflow.Activities.CodeActivity();
     this.logRecord2             = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Select_FaturyKlienta   = new System.Workflow.Activities.CodeActivity();
     this.ErrorHandler1          = new System.Workflow.Activities.CodeActivity();
     this.faultHandlersActivity5 = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.PrzygotujWiadomosc     = new System.Workflow.Activities.SequenceActivity();
     this.faultHandlerActivity2  = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.Weryfikcja             = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlersActivity6 = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.whileActivity2         = new System.Workflow.Activities.WhileActivity();
     this.Get_KlientEnumerator   = new System.Workflow.Activities.CodeActivity();
     this.Select_Rozliczenia     = new System.Workflow.Activities.CodeActivity();
     this.Select_ListaKlientow   = new System.Workflow.Activities.CodeActivity();
     this.Wysyłka = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlersActivity2 = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.Update_Faktura         = new System.Workflow.Activities.CodeActivity();
     this.logTerminPlatnosci     = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Try_TerminPłatności    = new System.Workflow.Activities.CodeActivity();
     this.Try_Dokument           = new System.Workflow.Activities.CodeActivity();
     this.logDataWystawienia     = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Try_Okres              = new System.Workflow.Activities.CodeActivity();
     this.Try_Klient             = new System.Workflow.Activities.CodeActivity();
     this.logRecord              = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Set_Faktura            = new System.Workflow.Activities.CodeActivity();
     this.elseMode_Weryfikacja   = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifMode_Wysylka         = new System.Workflow.Activities.IfElseBranchActivity();
     this.faultHandlersActivity4 = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.ObsługaFaktury         = new System.Workflow.Activities.SequenceActivity();
     this.Test_MODE              = new System.Workflow.Activities.IfElseActivity();
     this.whileActivity1         = new System.Workflow.Activities.WhileActivity();
     this.Get_Enumerator         = new System.Workflow.Activities.CodeActivity();
     this.Validate_Records       = new System.Workflow.Activities.SequenceActivity();
     this.logLiczbaRekordow      = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Preset_Data            = new System.Workflow.Activities.CodeActivity();
     this.logErrorMessage        = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ErrorHandler           = new System.Workflow.Activities.CodeActivity();
     this.LogErrCT             = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.SetStatus_Zakonczone = new System.Workflow.Activities.CodeActivity();
     this.Send_Report          = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.ManageImportFaktur   = new System.Workflow.Activities.SequenceActivity();
     this.Init_Report          = new System.Workflow.Activities.CodeActivity();
     this.logCT = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlerActivity1 = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.else1        = new System.Workflow.Activities.IfElseBranchActivity();
     this.ImportFaktur = new System.Workflow.Activities.IfElseBranchActivity();
     this.cancellationHandlerActivity1 = new System.Workflow.ComponentModel.CancellationHandlerActivity();
     this.faultHandlersActivity1       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.Test_CT = new System.Workflow.Activities.IfElseActivity();
     this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // ErrorHandler2
     //
     this.ErrorHandler2.Name         = "ErrorHandler2";
     this.ErrorHandler2.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
     //
     // faultHandlerActivity3
     //
     this.faultHandlerActivity3.Activities.Add(this.ErrorHandler2);
     this.faultHandlerActivity3.FaultType = typeof(System.Exception);
     this.faultHandlerActivity3.Name      = "faultHandlerActivity3";
     //
     // faultHandlersActivity3
     //
     this.faultHandlersActivity3.Activities.Add(this.faultHandlerActivity3);
     this.faultHandlersActivity3.Name = "faultHandlersActivity3";
     //
     // Remove_ZaimportowaneFaktury
     //
     this.Remove_ZaimportowaneFaktury.Name         = "Remove_ZaimportowaneFaktury";
     this.Remove_ZaimportowaneFaktury.ExecuteCode += new System.EventHandler(this.Remove_ZaimportowaneFaktury_ExecuteCode);
     //
     // Add_FakturyDoRejestru
     //
     this.Add_FakturyDoRejestru.Name         = "Add_FakturyDoRejestru";
     this.Add_FakturyDoRejestru.ExecuteCode += new System.EventHandler(this.Add_FakturyDoRejestru_ExecuteCode);
     //
     // logRecord3
     //
     this.logRecord3.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logRecord3.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logRecord3.HistoryDescription = "WiadomośćId";
     activitybind1.Name        = "ImportFakturWF";
     activitybind1.Path        = "logRecord_HistoryOutcome";
     this.logRecord3.Name      = "logRecord3";
     this.logRecord3.OtherData = "";
     this.logRecord3.UserId    = -1;
     this.logRecord3.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // Create_Message
     //
     this.Create_Message.Name         = "Create_Message";
     this.Create_Message.ExecuteCode += new System.EventHandler(this.Create_Message_ExecuteCode);
     //
     // logRecord2
     //
     this.logRecord2.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logRecord2.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logRecord2.HistoryDescription = "KlientId";
     activitybind2.Name        = "ImportFakturWF";
     activitybind2.Path        = "logRecord_HistoryOutcome";
     this.logRecord2.Name      = "logRecord2";
     this.logRecord2.OtherData = "";
     this.logRecord2.UserId    = -1;
     this.logRecord2.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // Select_FaturyKlienta
     //
     this.Select_FaturyKlienta.Name         = "Select_FaturyKlienta";
     this.Select_FaturyKlienta.ExecuteCode += new System.EventHandler(this.Select_FakturyKlienta_ExecuteCode);
     //
     // ErrorHandler1
     //
     this.ErrorHandler1.Name         = "ErrorHandler1";
     this.ErrorHandler1.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
     //
     // faultHandlersActivity5
     //
     this.faultHandlersActivity5.Name = "faultHandlersActivity5";
     //
     // PrzygotujWiadomosc
     //
     this.PrzygotujWiadomosc.Activities.Add(this.Select_FaturyKlienta);
     this.PrzygotujWiadomosc.Activities.Add(this.logRecord2);
     this.PrzygotujWiadomosc.Activities.Add(this.Create_Message);
     this.PrzygotujWiadomosc.Activities.Add(this.logRecord3);
     this.PrzygotujWiadomosc.Activities.Add(this.Add_FakturyDoRejestru);
     this.PrzygotujWiadomosc.Activities.Add(this.Remove_ZaimportowaneFaktury);
     this.PrzygotujWiadomosc.Activities.Add(this.faultHandlersActivity3);
     this.PrzygotujWiadomosc.Name = "PrzygotujWiadomosc";
     //
     // faultHandlerActivity2
     //
     this.faultHandlerActivity2.Activities.Add(this.ErrorHandler1);
     this.faultHandlerActivity2.FaultType = typeof(System.Exception);
     this.faultHandlerActivity2.Name      = "faultHandlerActivity2";
     //
     // Weryfikcja
     //
     this.Weryfikcja.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.Weryfikcja.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.Weryfikcja.HistoryDescription = "MODE";
     this.Weryfikcja.HistoryOutcome     = "Weryfikacja";
     this.Weryfikcja.Name      = "Weryfikcja";
     this.Weryfikcja.OtherData = "";
     this.Weryfikcja.UserId    = -1;
     //
     // faultHandlersActivity6
     //
     this.faultHandlersActivity6.Name = "faultHandlersActivity6";
     //
     // whileActivity2
     //
     this.whileActivity2.Activities.Add(this.PrzygotujWiadomosc);
     this.whileActivity2.Activities.Add(this.faultHandlersActivity5);
     codecondition1.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.whileKlientExist);
     this.whileActivity2.Condition = codecondition1;
     this.whileActivity2.Name      = "whileActivity2";
     //
     // Get_KlientEnumerator
     //
     this.Get_KlientEnumerator.Name         = "Get_KlientEnumerator";
     this.Get_KlientEnumerator.ExecuteCode += new System.EventHandler(this.Get_KlientEnumerator_ExecuteCode);
     //
     // Select_Rozliczenia
     //
     this.Select_Rozliczenia.Name         = "Select_Rozliczenia";
     this.Select_Rozliczenia.ExecuteCode += new System.EventHandler(this.Select_Rozliczenia_ExecuteCode);
     //
     // Select_ListaKlientow
     //
     this.Select_ListaKlientow.Name         = "Select_ListaKlientow";
     this.Select_ListaKlientow.ExecuteCode += new System.EventHandler(this.Select_ListaKlientow_ExecuteCode);
     //
     // Wysyłka
     //
     this.Wysyłka.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.Wysyłka.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.Wysyłka.HistoryDescription = "MODE";
     this.Wysyłka.HistoryOutcome     = "Wysyłka";
     this.Wysyłka.Name      = "Wysyłka";
     this.Wysyłka.OtherData = "";
     this.Wysyłka.UserId    = -1;
     //
     // faultHandlersActivity2
     //
     this.faultHandlersActivity2.Activities.Add(this.faultHandlerActivity2);
     this.faultHandlersActivity2.Name = "faultHandlersActivity2";
     //
     // Update_Faktura
     //
     this.Update_Faktura.Name         = "Update_Faktura";
     this.Update_Faktura.ExecuteCode += new System.EventHandler(this.Update_Faktura_ExecuteCode);
     //
     // logTerminPlatnosci
     //
     this.logTerminPlatnosci.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logTerminPlatnosci.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logTerminPlatnosci.HistoryDescription = "TerminPlatnosci";
     activitybind3.Name                = "ImportFakturWF";
     activitybind3.Path                = "logTerminPlatnosci_HistoryOutcome";
     this.logTerminPlatnosci.Name      = "logTerminPlatnosci";
     this.logTerminPlatnosci.OtherData = "";
     this.logTerminPlatnosci.UserId    = -1;
     this.logTerminPlatnosci.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // Try_TerminPłatności
     //
     this.Try_TerminPłatności.Name         = "Try_TerminPłatności";
     this.Try_TerminPłatności.ExecuteCode += new System.EventHandler(this.Try_TerminPlatnosci_ExecuteCode);
     //
     // Try_Dokument
     //
     this.Try_Dokument.Name         = "Try_Dokument";
     this.Try_Dokument.ExecuteCode += new System.EventHandler(this.Try_Dokument_ExecuteCode);
     //
     // logDataWystawienia
     //
     this.logDataWystawienia.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logDataWystawienia.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logDataWystawienia.HistoryDescription = "DataWystawienia";
     activitybind4.Name                = "ImportFakturWF";
     activitybind4.Path                = "logDataWystawienia_HistoryOutcome";
     this.logDataWystawienia.Name      = "logDataWystawienia";
     this.logDataWystawienia.OtherData = "";
     this.logDataWystawienia.UserId    = -1;
     this.logDataWystawienia.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     //
     // Try_Okres
     //
     this.Try_Okres.Name         = "Try_Okres";
     this.Try_Okres.ExecuteCode += new System.EventHandler(this.Try_Okres_ExecuteCode);
     //
     // Try_Klient
     //
     this.Try_Klient.Name         = "Try_Klient";
     this.Try_Klient.ExecuteCode += new System.EventHandler(this.Try_Klient_ExecuteCode);
     //
     // logRecord
     //
     this.logRecord.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logRecord.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logRecord.HistoryDescription = "FakturaId";
     activitybind5.Name       = "ImportFakturWF";
     activitybind5.Path       = "logRecord_HistoryOutcome";
     this.logRecord.Name      = "logRecord";
     this.logRecord.OtherData = "";
     this.logRecord.UserId    = -1;
     this.logRecord.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // Set_Faktura
     //
     this.Set_Faktura.Name         = "Set_Faktura";
     this.Set_Faktura.ExecuteCode += new System.EventHandler(this.Set_Faktura_ExecuteCode);
     //
     // elseMode_Weryfikacja
     //
     this.elseMode_Weryfikacja.Activities.Add(this.Weryfikcja);
     this.elseMode_Weryfikacja.Name = "elseMode_Weryfikacja";
     //
     // ifMode_Wysylka
     //
     this.ifMode_Wysylka.Activities.Add(this.Wysyłka);
     this.ifMode_Wysylka.Activities.Add(this.Select_ListaKlientow);
     this.ifMode_Wysylka.Activities.Add(this.Select_Rozliczenia);
     this.ifMode_Wysylka.Activities.Add(this.Get_KlientEnumerator);
     this.ifMode_Wysylka.Activities.Add(this.whileActivity2);
     this.ifMode_Wysylka.Activities.Add(this.faultHandlersActivity6);
     codecondition2.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isMode_Wysylka);
     this.ifMode_Wysylka.Condition = codecondition2;
     this.ifMode_Wysylka.Name      = "ifMode_Wysylka";
     //
     // faultHandlersActivity4
     //
     this.faultHandlersActivity4.Name = "faultHandlersActivity4";
     //
     // ObsługaFaktury
     //
     this.ObsługaFaktury.Activities.Add(this.Set_Faktura);
     this.ObsługaFaktury.Activities.Add(this.logRecord);
     this.ObsługaFaktury.Activities.Add(this.Try_Klient);
     this.ObsługaFaktury.Activities.Add(this.Try_Okres);
     this.ObsługaFaktury.Activities.Add(this.logDataWystawienia);
     this.ObsługaFaktury.Activities.Add(this.Try_Dokument);
     this.ObsługaFaktury.Activities.Add(this.Try_TerminPłatności);
     this.ObsługaFaktury.Activities.Add(this.logTerminPlatnosci);
     this.ObsługaFaktury.Activities.Add(this.Update_Faktura);
     this.ObsługaFaktury.Activities.Add(this.faultHandlersActivity2);
     this.ObsługaFaktury.Name = "ObsługaFaktury";
     //
     // Test_MODE
     //
     this.Test_MODE.Activities.Add(this.ifMode_Wysylka);
     this.Test_MODE.Activities.Add(this.elseMode_Weryfikacja);
     this.Test_MODE.Name = "Test_MODE";
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.ObsługaFaktury);
     this.whileActivity1.Activities.Add(this.faultHandlersActivity4);
     codecondition3.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.whileRecordExist);
     this.whileActivity1.Condition = codecondition3;
     this.whileActivity1.Name      = "whileActivity1";
     //
     // Get_Enumerator
     //
     this.Get_Enumerator.Name         = "Get_Enumerator";
     this.Get_Enumerator.ExecuteCode += new System.EventHandler(this.Get_Enumerator_ExecuteCode);
     //
     // Validate_Records
     //
     this.Validate_Records.Activities.Add(this.Get_Enumerator);
     this.Validate_Records.Activities.Add(this.whileActivity1);
     this.Validate_Records.Activities.Add(this.Test_MODE);
     this.Validate_Records.Name = "Validate_Records";
     //
     // logLiczbaRekordow
     //
     this.logLiczbaRekordow.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logLiczbaRekordow.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logLiczbaRekordow.HistoryDescription = "Liczba rekordów";
     activitybind6.Name               = "ImportFakturWF";
     activitybind6.Path               = "logLiczbaRekordow_HistoryOutcome";
     this.logLiczbaRekordow.Name      = "logLiczbaRekordow";
     this.logLiczbaRekordow.OtherData = "";
     this.logLiczbaRekordow.UserId    = -1;
     this.logLiczbaRekordow.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // Preset_Data
     //
     this.Preset_Data.Name         = "Preset_Data";
     this.Preset_Data.ExecuteCode += new System.EventHandler(this.Preset_Data_ExecuteCode);
     //
     // logErrorMessage
     //
     this.logErrorMessage.Duration  = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logErrorMessage.EventId   = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind7.Name             = "ImportFakturWF";
     activitybind7.Path             = "logErrorMessage_HistoryDescription";
     activitybind8.Name             = "ImportFakturWF";
     activitybind8.Path             = "logErrorMessage_HistoryOutcome";
     this.logErrorMessage.Name      = "logErrorMessage";
     this.logErrorMessage.OtherData = "";
     this.logErrorMessage.UserId    = -1;
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     //
     // ErrorHandler
     //
     this.ErrorHandler.Name         = "ErrorHandler";
     this.ErrorHandler.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
     //
     // LogErrCT
     //
     this.LogErrCT.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.LogErrCT.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.LogErrCT.HistoryDescription = "Nieobsługiwany CT";
     activitybind9.Name      = "ImportFakturWF";
     activitybind9.Path      = "logMessage_HistoryOutcome";
     this.LogErrCT.Name      = "LogErrCT";
     this.LogErrCT.OtherData = "";
     this.LogErrCT.UserId    = -1;
     this.LogErrCT.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     //
     // SetStatus_Zakonczone
     //
     this.SetStatus_Zakonczone.Name         = "SetStatus_Zakonczone";
     this.SetStatus_Zakonczone.ExecuteCode += new System.EventHandler(this.SetStatus_Zakonczone_ExecuteCode);
     //
     // Send_Report
     //
     this.Send_Report.BCC   = null;
     activitybind10.Name    = "ImportFakturWF";
     activitybind10.Path    = "msgBody";
     this.Send_Report.CC    = null;
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName = "ImportFakturWF";
     this.Send_Report.CorrelationToken   = correlationtoken1;
     this.Send_Report.From            = null;
     activitybind11.Name              = "ImportFakturWF";
     activitybind11.Path              = "msgHeaders";
     this.Send_Report.IncludeStatus   = false;
     this.Send_Report.Name            = "Send_Report";
     activitybind12.Name              = "ImportFakturWF";
     activitybind12.Path              = "msgSubject";
     activitybind13.Name              = "ImportFakturWF";
     activitybind13.Path              = "msgTo";
     this.Send_Report.MethodInvoking += new System.EventHandler(this.Send_Report_MethodInvoking);
     this.Send_Report.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.Send_Report.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.Send_Report.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.Send_Report.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.HeadersProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     //
     // ManageImportFaktur
     //
     this.ManageImportFaktur.Activities.Add(this.Preset_Data);
     this.ManageImportFaktur.Activities.Add(this.logLiczbaRekordow);
     this.ManageImportFaktur.Activities.Add(this.Validate_Records);
     this.ManageImportFaktur.Name = "ManageImportFaktur";
     //
     // Init_Report
     //
     this.Init_Report.Name         = "Init_Report";
     this.Init_Report.ExecuteCode += new System.EventHandler(this.Init_Report_ExecuteCode);
     //
     // logCT
     //
     this.logCT.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logCT.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logCT.HistoryDescription = "CT";
     activitybind14.Name           = "ImportFakturWF";
     activitybind14.Path           = "logMessage_HistoryOutcome";
     this.logCT.Name      = "logCT";
     this.logCT.OtherData = "";
     this.logCT.UserId    = -1;
     this.logCT.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.ErrorHandler);
     this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
     this.faultHandlerActivity1.FaultType = typeof(System.Exception);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // else1
     //
     this.else1.Activities.Add(this.LogErrCT);
     this.else1.Name = "else1";
     //
     // ImportFaktur
     //
     this.ImportFaktur.Activities.Add(this.logCT);
     this.ImportFaktur.Activities.Add(this.Init_Report);
     this.ImportFaktur.Activities.Add(this.ManageImportFaktur);
     this.ImportFaktur.Activities.Add(this.Send_Report);
     this.ImportFaktur.Activities.Add(this.SetStatus_Zakonczone);
     codecondition4.Condition   += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isImportFaktur);
     this.ImportFaktur.Condition = codecondition4;
     this.ImportFaktur.Name      = "ImportFaktur";
     //
     // cancellationHandlerActivity1
     //
     this.cancellationHandlerActivity1.Name = "cancellationHandlerActivity1";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // Test_CT
     //
     this.Test_CT.Activities.Add(this.ImportFaktur);
     this.Test_CT.Activities.Add(this.else1);
     this.Test_CT.Name   = "Test_CT";
     activitybind16.Name = "ImportFakturWF";
     activitybind16.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind15.Name = "ImportFakturWF";
     activitybind15.Path = "workflowProperties";
     this.onWorkflowActivated1.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     //
     // ImportFakturWF
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.Test_CT);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Activities.Add(this.cancellationHandlerActivity1);
     this.Name = "ImportFakturWF";
     this.CanModifyActivities = false;
 }
Exemple #46
0
 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.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind3     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind4     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind5     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind7     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind6     = new System.Workflow.ComponentModel.ActivityBind();
     this.onTaskChanged1       = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
     this.whileActivity1       = new System.Workflow.Activities.WhileActivity();
     this.createTask1          = new Microsoft.SharePoint.WorkflowActions.CreateTask();
     this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // onTaskChanged1
     //
     activitybind1.Name     = "Workflow1";
     activitybind1.Path     = "afterProperties";
     activitybind2.Name     = "Workflow1";
     activitybind2.Path     = "beforeProperties1";
     correlationtoken1.Name = "taskToken";
     correlationtoken1.OwnerActivityName  = "Workflow1";
     this.onTaskChanged1.CorrelationToken = correlationtoken1;
     this.onTaskChanged1.Executor         = null;
     this.onTaskChanged1.Name             = "onTaskChanged1";
     activitybind3.Name           = "Workflow1";
     activitybind3.Path           = "taskId1";
     this.onTaskChanged1.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked);
     this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.onTaskChanged1);
     codecondition1.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.notCompleted);
     this.whileActivity1.Condition = codecondition1;
     this.whileActivity1.Name      = "whileActivity1";
     //
     // createTask1
     //
     this.createTask1.CorrelationToken   = correlationtoken1;
     this.createTask1.ListItemId         = -1;
     this.createTask1.Name               = "createTask1";
     this.createTask1.SpecialPermissions = null;
     activitybind4.Name = "Workflow1";
     activitybind4.Path = "taskId1";
     activitybind5.Name = "Workflow1";
     activitybind5.Path = "taskProperties";
     this.createTask1.MethodInvoking += new System.EventHandler(this.createTask1_MethodInvoking);
     this.createTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.createTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTask.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     activitybind7.Name = "Workflow1";
     activitybind7.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken2.Name = "workflowToken";
     correlationtoken2.OwnerActivityName        = "Workflow1";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken2;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind6.Name = "Workflow1";
     activitybind6.Path = "workflowProperties";
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // Workflow1
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.createTask1);
     this.Activities.Add(this.whileActivity1);
     this.Name = "Workflow1";
     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.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind8             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind9             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1   = new System.Workflow.Activities.Rules.RuleConditionReference();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference2   = new System.Workflow.Activities.Rules.RuleConditionReference();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference3   = new System.Workflow.Activities.Rules.RuleConditionReference();
     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();
     this.CreateUserToken   = new Dropthings.Business.Activities.UserAccountActivities.CreateUserTokenActivity();
     this.TransferOwnership = new Dropthings.Business.Activities.UserAccountActivities.TransferOwnershipActivity();
     this.GetOldAspnetUser  = new Dropthings.Business.Activities.UserAccountActivities.GetAspnetUserActivity();
     this.CallCloneUserFromTemplateWorkflow = new Dropthings.Business.Activities.CallWorkflowActivity();
     this.SetUserName                          = new System.Workflow.Activities.CodeActivity();
     this.IfActivationRequired                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.SettingTemplateDisabled              = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfCloneRegisteredProfileEnabled      = new System.Workflow.Activities.IfElseBranchActivity();
     this.ChckIfActivationRequired             = new System.Workflow.Activities.IfElseActivity();
     this.CheckIfCloneRegisteredProfileEnabled = new System.Workflow.Activities.IfElseActivity();
     this.AddUserToRegisteredRole              = new Dropthings.Business.Activities.SetUserRolesActivity();
     this.GetUserSettingTemplates              = new Dropthings.Business.Activities.GetUserSettingTemplatesActivity();
     this.CreateNewUser                        = new Dropthings.Business.Activities.UserAccountActivities.CreateUserActivity();
     //
     // CreateUserToken
     //
     activitybind1.Name        = "UserRegistrationWorkflow";
     activitybind1.Path        = "Request.Email";
     this.CreateUserToken.Name = "CreateUserToken";
     activitybind2.Name        = "UserRegistrationWorkflow";
     activitybind2.Path        = "Response.UnlockKey";
     activitybind3.Name        = "CreateNewUser";
     activitybind3.Path        = "NewUserGuid";
     this.CreateUserToken.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Email", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserTokenActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.CreateUserToken.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserTokenActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.CreateUserToken.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UnlockKey", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserTokenActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // TransferOwnership
     //
     this.TransferOwnership.Name = "TransferOwnership";
     activitybind4.Name          = "CreateNewUser";
     activitybind4.Path          = "NewUserGuid";
     activitybind5.Name          = "GetOldAspnetUser";
     activitybind5.Path          = "aspnet_User.UserId";
     this.TransferOwnership.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserNewGuid", typeof(Dropthings.Business.Activities.UserAccountActivities.TransferOwnershipActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.TransferOwnership.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserOldGuid", typeof(Dropthings.Business.Activities.UserAccountActivities.TransferOwnershipActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // GetOldAspnetUser
     //
     this.GetOldAspnetUser.aspnet_User = null;
     this.GetOldAspnetUser.Name        = "GetOldAspnetUser";
     activitybind6.Name = "UserRegistrationWorkflow";
     activitybind6.Path = "Request.UserName";
     this.GetOldAspnetUser.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.UserAccountActivities.GetAspnetUserActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // CallCloneUserFromTemplateWorkflow
     //
     this.CallCloneUserFromTemplateWorkflow.Name = "CallCloneUserFromTemplateWorkflow";
     activitybind7.Name = "GetUserSettingTemplateActivity1";
     activitybind7.Path = "RegisteredUserTemplate";
     workflowparameterbinding1.ParameterName = "CloneWithUserName";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     activitybind8.Name = "UserRegistrationWorkflow";
     activitybind8.Path = "Request";
     workflowparameterbinding2.ParameterName = "Request";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     activitybind9.Name = "UserRegistrationWorkflow";
     activitybind9.Path = "Response";
     workflowparameterbinding3.ParameterName = "Response";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.CallCloneUserFromTemplateWorkflow.Parameters.Add(workflowparameterbinding1);
     this.CallCloneUserFromTemplateWorkflow.Parameters.Add(workflowparameterbinding2);
     this.CallCloneUserFromTemplateWorkflow.Parameters.Add(workflowparameterbinding3);
     this.CallCloneUserFromTemplateWorkflow.Type = typeof(Dropthings.Business.Workflows.UserAccountWorkflow.SetupUserWithTemplateWorkflow);
     //
     // SetUserName
     //
     this.SetUserName.Name         = "SetUserName";
     this.SetUserName.ExecuteCode += new System.EventHandler(this.SetUsernameForSetupUserFromTemplateWotkflow_ExecuteCode);
     //
     // IfActivationRequired
     //
     this.IfActivationRequired.Activities.Add(this.CreateUserToken);
     ruleconditionreference1.ConditionName = "ActivationRequired";
     this.IfActivationRequired.Condition   = ruleconditionreference1;
     this.IfActivationRequired.Name        = "IfActivationRequired";
     //
     // SettingTemplateDisabled
     //
     this.SettingTemplateDisabled.Activities.Add(this.GetOldAspnetUser);
     this.SettingTemplateDisabled.Activities.Add(this.TransferOwnership);
     ruleconditionreference2.ConditionName  = "CloneRegisteredProfileDisabled";
     this.SettingTemplateDisabled.Condition = ruleconditionreference2;
     this.SettingTemplateDisabled.Name      = "SettingTemplateDisabled";
     //
     // IfCloneRegisteredProfileEnabled
     //
     this.IfCloneRegisteredProfileEnabled.Activities.Add(this.SetUserName);
     this.IfCloneRegisteredProfileEnabled.Activities.Add(this.CallCloneUserFromTemplateWorkflow);
     ruleconditionreference3.ConditionName          = "CloneRegisteredProfileEnabled";
     this.IfCloneRegisteredProfileEnabled.Condition = ruleconditionreference3;
     this.IfCloneRegisteredProfileEnabled.Name      = "IfCloneRegisteredProfileEnabled";
     //
     // ChckIfActivationRequired
     //
     this.ChckIfActivationRequired.Activities.Add(this.IfActivationRequired);
     this.ChckIfActivationRequired.Name = "ChckIfActivationRequired";
     //
     // CheckIfCloneRegisteredProfileEnabled
     //
     this.CheckIfCloneRegisteredProfileEnabled.Activities.Add(this.IfCloneRegisteredProfileEnabled);
     this.CheckIfCloneRegisteredProfileEnabled.Activities.Add(this.SettingTemplateDisabled);
     this.CheckIfCloneRegisteredProfileEnabled.Name = "CheckIfCloneRegisteredProfileEnabled";
     //
     // AddUserToRegisteredRole
     //
     this.AddUserToRegisteredRole.Name = "AddUserToRegisteredRole";
     activitybind10.Name = "GetUserSettingTemplates";
     activitybind10.Path = "RegisteredUserSettingTemplate.RoleNames";
     activitybind11.Name = "UserRegistrationWorkflow";
     activitybind11.Path = "Request.RequestedUsername";
     this.AddUserToRegisteredRole.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.SetUserRolesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     this.AddUserToRegisteredRole.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("RoleName", typeof(Dropthings.Business.Activities.SetUserRolesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     //
     // GetUserSettingTemplates
     //
     this.GetUserSettingTemplates.AllUserSettingTemplate        = null;
     this.GetUserSettingTemplates.AnonUserSettingTemplate       = null;
     this.GetUserSettingTemplates.CloneAnonProfileEnabled       = false;
     this.GetUserSettingTemplates.CloneRegisteredProfileEnabled = false;
     this.GetUserSettingTemplates.Name = "GetUserSettingTemplates";
     this.GetUserSettingTemplates.RegisteredUserSettingTemplate = null;
     //
     // CreateNewUser
     //
     activitybind12.Name     = "UserRegistrationWorkflow";
     activitybind12.Path     = "Request.Email";
     this.CreateNewUser.Name = "CreateNewUser";
     activitybind13.Name     = "UserRegistrationWorkflow";
     activitybind13.Path     = "Response.UserGuid";
     activitybind14.Name     = "UserRegistrationWorkflow";
     activitybind14.Path     = "Request.Password";
     activitybind15.Name     = "UserRegistrationWorkflow";
     activitybind15.Path     = "Request.RequestedUsername";
     this.CreateNewUser.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Email", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.CreateNewUser.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Password", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.CreateNewUser.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("NewUserGuid", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.CreateNewUser.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("RequestedUsername", typeof(Dropthings.Business.Activities.UserAccountActivities.CreateUserActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     //
     // UserRegistrationWorkflow
     //
     this.Activities.Add(this.CreateNewUser);
     this.Activities.Add(this.GetUserSettingTemplates);
     this.Activities.Add(this.AddUserToRegisteredRole);
     this.Activities.Add(this.CheckIfCloneRegisteredProfileEnabled);
     this.Activities.Add(this.ChckIfActivationRequired);
     this.Name = "UserRegistrationWorkflow";
     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.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     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 activitybind20    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind19    = new System.Workflow.ComponentModel.ActivityBind();
     this.ExceptionHandlerHistoryListActivity = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ApplicationErrorLogToHistory        = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.lLgClosingResult                     = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.CloseManyAccountCodeActivity         = new System.Workflow.Activities.CodeActivity();
     this.WhileLogToHistory                    = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.GeneralFaultHandlerActivity          = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.ApplicationErrorfaultHandlerActivity = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.WhileSequenceActivity                = new System.Workflow.Activities.SequenceActivity();
     this.faultHandlersActivity1               = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.FinishedHistoryListActivity          = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.whileActivity1 = new System.Workflow.Activities.WhileActivity();
     this.StartingHistoryListActivity = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.WorkflowActivated           = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // ExceptionHandlerHistoryListActivity
     //
     this.ExceptionHandlerHistoryListActivity.Description = "Log to the history information about teh exception.";
     this.ExceptionHandlerHistoryListActivity.Duration    = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.ExceptionHandlerHistoryListActivity.EventId     = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowError;
     activitybind1.Name = "CloseManyIPRAccounts";
     activitybind1.Path = "ExceptionHandlerHistoryListActivity_HistoryDescription";
     activitybind2.Name = "CloseManyIPRAccounts";
     activitybind2.Path = "ExceptionHandlerHistoryListActivity_HistoryOutcome";
     this.ExceptionHandlerHistoryListActivity.Name      = "ExceptionHandlerHistoryListActivity";
     this.ExceptionHandlerHistoryListActivity.OtherData = "";
     activitybind3.Name = "CloseManyIPRAccounts";
     activitybind3.Path = "workflowProperties.OriginatorUser.ID";
     this.ExceptionHandlerHistoryListActivity.MethodInvoking += new System.EventHandler(this.onExceptionHandlerHistoryListActivity);
     this.ExceptionHandlerHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.ExceptionHandlerHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.ExceptionHandlerHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // ApplicationErrorLogToHistory
     //
     this.ApplicationErrorLogToHistory.Description = "ApplicationErrorLogToHistory";
     this.ApplicationErrorLogToHistory.Duration    = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.ApplicationErrorLogToHistory.EventId     = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowError;
     activitybind4.Name = "CloseManyIPRAccounts";
     activitybind4.Path = "ApplicationErrorLogToHistory_HistoryDescription1";
     activitybind5.Name = "CloseManyIPRAccounts";
     activitybind5.Path = "ApplicationErrorLogToHistory_HistoryOutcome";
     this.ApplicationErrorLogToHistory.Name      = "ApplicationErrorLogToHistory";
     this.ApplicationErrorLogToHistory.OtherData = "";
     activitybind6.Name = "CloseManyIPRAccounts";
     activitybind6.Path = "workflowProperties.OriginatorUser.ID";
     this.ApplicationErrorLogToHistory.MethodInvoking += new System.EventHandler(this.onApplicationErrorLogToHistory);
     this.ApplicationErrorLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.ApplicationErrorLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.ApplicationErrorLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // lLgClosingResult
     //
     this.lLgClosingResult.Duration  = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.lLgClosingResult.EventId   = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind7.Name              = "CloseManyIPRAccounts";
     activitybind7.Path              = "lLgClosingResult_HistoryDescription";
     activitybind8.Name              = "CloseManyIPRAccounts";
     activitybind8.Path              = "lLgClosingResult_HistoryOutcome";
     this.lLgClosingResult.Name      = "lLgClosingResult";
     this.lLgClosingResult.OtherData = "";
     activitybind9.Name              = "CloseManyIPRAccounts";
     activitybind9.Path              = "workflowProperties.OriginatorUser.ID";
     this.lLgClosingResult.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.lLgClosingResult.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     this.lLgClosingResult.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     //
     // CloseManyAccountCodeActivity
     //
     this.CloseManyAccountCodeActivity.Description  = "Workflow code.";
     this.CloseManyAccountCodeActivity.Name         = "CloseManyAccountCodeActivity";
     this.CloseManyAccountCodeActivity.ExecuteCode += new System.EventHandler(this.DoCloseManyAccount);
     //
     // WhileLogToHistory
     //
     this.WhileLogToHistory.Duration        = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.WhileLogToHistory.EventId         = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind10.Name                    = "CloseManyIPRAccounts";
     activitybind10.Path                    = "WhileLogToHistory_HistoryDescription";
     activitybind11.Name                    = "CloseManyIPRAccounts";
     activitybind11.Path                    = "WhileLogToHistory_HistoryOutcome";
     this.WhileLogToHistory.Name            = "WhileLogToHistory";
     this.WhileLogToHistory.OtherData       = "";
     activitybind12.Name                    = "CloseManyIPRAccounts";
     activitybind12.Path                    = "workflowProperties.OriginatorUser.ID";
     this.WhileLogToHistory.MethodInvoking += new System.EventHandler(this.onWhileLogToHistory);
     this.WhileLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.WhileLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     this.WhileLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     //
     // GeneralFaultHandlerActivity
     //
     this.GeneralFaultHandlerActivity.Activities.Add(this.ExceptionHandlerHistoryListActivity);
     this.GeneralFaultHandlerActivity.Description = "General fault handler";
     this.GeneralFaultHandlerActivity.FaultType   = typeof(System.Exception);
     this.GeneralFaultHandlerActivity.Name        = "GeneralFaultHandlerActivity";
     //
     // ApplicationErrorfaultHandlerActivity
     //
     this.ApplicationErrorfaultHandlerActivity.Activities.Add(this.ApplicationErrorLogToHistory);
     this.ApplicationErrorfaultHandlerActivity.Description = "Application Error Handler";
     this.ApplicationErrorfaultHandlerActivity.FaultType   = typeof(CAS.SharePoint.ApplicationError);
     this.ApplicationErrorfaultHandlerActivity.Name        = "ApplicationErrorfaultHandlerActivity";
     //
     // WhileSequenceActivity
     //
     this.WhileSequenceActivity.Activities.Add(this.WhileLogToHistory);
     this.WhileSequenceActivity.Activities.Add(this.CloseManyAccountCodeActivity);
     this.WhileSequenceActivity.Activities.Add(this.lLgClosingResult);
     this.WhileSequenceActivity.Description = "Content of the while loop";
     this.WhileSequenceActivity.Name        = "WhileSequenceActivity";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.ApplicationErrorfaultHandlerActivity);
     this.faultHandlersActivity1.Activities.Add(this.GeneralFaultHandlerActivity);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // FinishedHistoryListActivity
     //
     this.FinishedHistoryListActivity.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.FinishedHistoryListActivity.EventId  = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind13.Name = "CloseManyIPRAccounts";
     activitybind13.Path = "FinishedHistoryListActivity_HistoryDescription";
     activitybind14.Name = "CloseManyIPRAccounts";
     activitybind14.Path = "FinishedHistoryListActivity_HistoryOutcome";
     this.FinishedHistoryListActivity.Name      = "FinishedHistoryListActivity";
     this.FinishedHistoryListActivity.OtherData = "";
     activitybind15.Name = "CloseManyIPRAccounts";
     activitybind15.Path = "workflowProperties.OriginatorUser.ID";
     this.FinishedHistoryListActivity.MethodInvoking += new System.EventHandler(this.onFinishedHistoryListActivity);
     this.FinishedHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.FinishedHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.FinishedHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.WhileSequenceActivity);
     codecondition1.Condition       += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.WhileActivityCondition);
     this.whileActivity1.Condition   = codecondition1;
     this.whileActivity1.Description = "Iretase closing operation for all selected accounts.";
     this.whileActivity1.Name        = "whileActivity1";
     //
     // StartingHistoryListActivity
     //
     this.StartingHistoryListActivity.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.StartingHistoryListActivity.EventId  = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowStarted;
     activitybind16.Name = "CloseManyIPRAccounts";
     activitybind16.Path = "StartingHistoryListActivity_HistoryDescription";
     activitybind17.Name = "CloseManyIPRAccounts";
     activitybind17.Path = "StartingHistoryListActivity_HistoryOutcome";
     this.StartingHistoryListActivity.Name      = "StartingHistoryListActivity";
     this.StartingHistoryListActivity.OtherData = "";
     activitybind18.Name = "CloseManyIPRAccounts";
     activitybind18.Path = "workflowProperties.OriginatorUser.ID";
     this.StartingHistoryListActivity.MethodInvoking += new System.EventHandler(this.OnStartingLogToHistory);
     this.StartingHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     this.StartingHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     this.StartingHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
     activitybind20.Name = "CloseManyIPRAccounts";
     activitybind20.Path = "workflowId";
     //
     // WorkflowActivated
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName     = "CloseManyIPRAccounts";
     this.WorkflowActivated.CorrelationToken = correlationtoken1;
     this.WorkflowActivated.Description      = "Initialize the workflow";
     this.WorkflowActivated.EventName        = "OnWorkflowActivated";
     this.WorkflowActivated.Name             = "WorkflowActivated";
     activitybind19.Name             = "CloseManyIPRAccounts";
     activitybind19.Path             = "workflowProperties";
     this.WorkflowActivated.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.GetParameters);
     this.WorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
     this.WorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
     //
     // CloseManyIPRAccounts
     //
     this.Activities.Add(this.WorkflowActivated);
     this.Activities.Add(this.StartingHistoryListActivity);
     this.Activities.Add(this.whileActivity1);
     this.Activities.Add(this.FinishedHistoryListActivity);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "CloseManyIPRAccounts";
     this.CanModifyActivities = false;
 }
Exemple #49
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.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.ComponentModel.ActivityBind             activitybind6             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding6 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     this.terminateWorkflow            = new System.Workflow.ComponentModel.TerminateActivity();
     this.handleExternalEventActivity1 = new System.Workflow.Activities.HandleExternalEventActivity();
     this.setOrderCompletedState       = new System.Workflow.Activities.SetStateActivity();
     this.handleOrderShipped           = new System.Workflow.Activities.HandleExternalEventActivity();
     this.setOrderOpenState3           = new System.Workflow.Activities.SetStateActivity();
     this.handleOrderUpdated2          = new System.Workflow.Activities.HandleExternalEventActivity();
     this.setOrderProcessedState       = new System.Workflow.Activities.SetStateActivity();
     this.handleOrderProcessed         = new System.Workflow.Activities.HandleExternalEventActivity();
     this.setOrderOpenState2           = new System.Workflow.Activities.SetStateActivity();
     this.handleOrderUpdated           = new System.Workflow.Activities.HandleExternalEventActivity();
     this.setOrderOpenState            = new System.Workflow.Activities.SetStateActivity();
     this.handleOrderCreated           = new System.Workflow.Activities.HandleExternalEventActivity();
     this.OnOrderCanceled      = new System.Workflow.Activities.EventDrivenActivity();
     this.OnOrderShipped       = new System.Workflow.Activities.EventDrivenActivity();
     this.OnOrderUpdated2      = new System.Workflow.Activities.EventDrivenActivity();
     this.OnOrderProcessed     = new System.Workflow.Activities.EventDrivenActivity();
     this.OnOrderUpdated       = new System.Workflow.Activities.EventDrivenActivity();
     this.OnOrderCreated       = new System.Workflow.Activities.EventDrivenActivity();
     this.OrderProcessedState  = new System.Workflow.Activities.StateActivity();
     this.OrderOpenState       = new System.Workflow.Activities.StateActivity();
     this.OrderCompletedState  = new System.Workflow.Activities.StateActivity();
     this.WaitingForOrderState = new System.Workflow.Activities.StateActivity();
     //
     // terminateWorkflow
     //
     this.terminateWorkflow.Name = "terminateWorkflow";
     //
     // handleExternalEventActivity1
     //
     this.handleExternalEventActivity1.EventName     = "OrderCanceled";
     this.handleExternalEventActivity1.InterfaceType = typeof(Microsoft.Samples.Workflow.OrderApplication.IOrderService);
     this.handleExternalEventActivity1.Name          = "handleExternalEventActivity1";
     activitybind1.Name = "SampleWorkflow";
     activitybind1.Path = "OrderSender";
     workflowparameterbinding1.ParameterName = "sender";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.handleExternalEventActivity1.ParameterBindings.Add(workflowparameterbinding1);
     //
     // setOrderCompletedState
     //
     this.setOrderCompletedState.Name            = "setOrderCompletedState";
     this.setOrderCompletedState.TargetStateName = "OrderCompletedState";
     //
     // handleOrderShipped
     //
     this.handleOrderShipped.EventName     = "OrderShipped";
     this.handleOrderShipped.InterfaceType = typeof(Microsoft.Samples.Workflow.OrderApplication.IOrderService);
     this.handleOrderShipped.Name          = "handleOrderShipped";
     activitybind2.Name = "SampleWorkflow";
     activitybind2.Path = "OrderSender";
     workflowparameterbinding2.ParameterName = "sender";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.handleOrderShipped.ParameterBindings.Add(workflowparameterbinding2);
     //
     // setOrderOpenState3
     //
     this.setOrderOpenState3.Name            = "setOrderOpenState3";
     this.setOrderOpenState3.TargetStateName = "OrderOpenState";
     //
     // handleOrderUpdated2
     //
     this.handleOrderUpdated2.EventName     = "OrderUpdated";
     this.handleOrderUpdated2.InterfaceType = typeof(Microsoft.Samples.Workflow.OrderApplication.IOrderService);
     this.handleOrderUpdated2.Name          = "handleOrderUpdated2";
     activitybind3.Name = "SampleWorkflow";
     activitybind3.Path = "OrderSender";
     workflowparameterbinding3.ParameterName = "sender";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.handleOrderUpdated2.ParameterBindings.Add(workflowparameterbinding3);
     //
     // setOrderProcessedState
     //
     this.setOrderProcessedState.Name            = "setOrderProcessedState";
     this.setOrderProcessedState.TargetStateName = "OrderProcessedState";
     //
     // handleOrderProcessed
     //
     this.handleOrderProcessed.EventName     = "OrderProcessed";
     this.handleOrderProcessed.InterfaceType = typeof(Microsoft.Samples.Workflow.OrderApplication.IOrderService);
     this.handleOrderProcessed.Name          = "handleOrderProcessed";
     activitybind4.Name = "SampleWorkflow";
     activitybind4.Path = "OrderSender";
     workflowparameterbinding4.ParameterName = "sender";
     workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.handleOrderProcessed.ParameterBindings.Add(workflowparameterbinding4);
     //
     // setOrderOpenState2
     //
     this.setOrderOpenState2.Name            = "setOrderOpenState2";
     this.setOrderOpenState2.TargetStateName = "OrderOpenState";
     //
     // handleOrderUpdated
     //
     this.handleOrderUpdated.EventName     = "OrderUpdated";
     this.handleOrderUpdated.InterfaceType = typeof(Microsoft.Samples.Workflow.OrderApplication.IOrderService);
     this.handleOrderUpdated.Name          = "handleOrderUpdated";
     activitybind5.Name = "SampleWorkflow";
     activitybind5.Path = "OrderSender";
     workflowparameterbinding5.ParameterName = "sender";
     workflowparameterbinding5.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.handleOrderUpdated.ParameterBindings.Add(workflowparameterbinding5);
     //
     // setOrderOpenState
     //
     this.setOrderOpenState.Name            = "setOrderOpenState";
     this.setOrderOpenState.TargetStateName = "OrderOpenState";
     //
     // handleOrderCreated
     //
     this.handleOrderCreated.EventName     = "OrderCreated";
     this.handleOrderCreated.InterfaceType = typeof(Microsoft.Samples.Workflow.OrderApplication.IOrderService);
     this.handleOrderCreated.Name          = "handleOrderCreated";
     activitybind6.Name = "SampleWorkflow";
     activitybind6.Path = "OrderSender";
     workflowparameterbinding6.ParameterName = "sender";
     workflowparameterbinding6.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.handleOrderCreated.ParameterBindings.Add(workflowparameterbinding6);
     //
     // OnOrderCanceled
     //
     this.OnOrderCanceled.Activities.Add(this.handleExternalEventActivity1);
     this.OnOrderCanceled.Activities.Add(this.terminateWorkflow);
     this.OnOrderCanceled.Name = "OnOrderCanceled";
     //
     // OnOrderShipped
     //
     this.OnOrderShipped.Activities.Add(this.handleOrderShipped);
     this.OnOrderShipped.Activities.Add(this.setOrderCompletedState);
     this.OnOrderShipped.Name = "OnOrderShipped";
     //
     // OnOrderUpdated2
     //
     this.OnOrderUpdated2.Activities.Add(this.handleOrderUpdated2);
     this.OnOrderUpdated2.Activities.Add(this.setOrderOpenState3);
     this.OnOrderUpdated2.Name = "OnOrderUpdated2";
     //
     // OnOrderProcessed
     //
     this.OnOrderProcessed.Activities.Add(this.handleOrderProcessed);
     this.OnOrderProcessed.Activities.Add(this.setOrderProcessedState);
     this.OnOrderProcessed.Name = "OnOrderProcessed";
     //
     // OnOrderUpdated
     //
     this.OnOrderUpdated.Activities.Add(this.handleOrderUpdated);
     this.OnOrderUpdated.Activities.Add(this.setOrderOpenState2);
     this.OnOrderUpdated.Name = "OnOrderUpdated";
     //
     // OnOrderCreated
     //
     this.OnOrderCreated.Activities.Add(this.handleOrderCreated);
     this.OnOrderCreated.Activities.Add(this.setOrderOpenState);
     this.OnOrderCreated.Name = "OnOrderCreated";
     //
     // OrderProcessedState
     //
     this.OrderProcessedState.Activities.Add(this.OnOrderUpdated2);
     this.OrderProcessedState.Activities.Add(this.OnOrderShipped);
     this.OrderProcessedState.Activities.Add(this.OnOrderCanceled);
     this.OrderProcessedState.Name = "OrderProcessedState";
     //
     // OrderOpenState
     //
     this.OrderOpenState.Activities.Add(this.OnOrderUpdated);
     this.OrderOpenState.Activities.Add(this.OnOrderProcessed);
     this.OrderOpenState.Name = "OrderOpenState";
     //
     // OrderCompletedState
     //
     this.OrderCompletedState.Name = "OrderCompletedState";
     //
     // WaitingForOrderState
     //
     this.WaitingForOrderState.Activities.Add(this.OnOrderCreated);
     this.WaitingForOrderState.Name = "WaitingForOrderState";
     //
     // SampleWorkflow
     //
     this.Activities.Add(this.WaitingForOrderState);
     this.Activities.Add(this.OrderCompletedState);
     this.Activities.Add(this.OrderOpenState);
     this.Activities.Add(this.OrderProcessedState);
     this.CompletedStateName     = "OrderCompletedState";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "WaitingForOrderState";
     this.Name = "SampleWorkflow";
     this.CanModifyActivities = false;
 }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind activitybind2     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind1     = new System.Workflow.ComponentModel.ActivityBind();
     this.logToHistoryListActivity2 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.CoreProcedure             = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.SequenceActivity1         = new System.Workflow.Activities.SequenceActivity();
     this.onWorkflowActivated1      = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // logToHistoryListActivity2
     //
     this.logToHistoryListActivity2.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity2.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity2.HistoryDescription = "";
     this.logToHistoryListActivity2.HistoryOutcome     = "Completed";
     this.logToHistoryListActivity2.Name      = "logToHistoryListActivity2";
     this.logToHistoryListActivity2.OtherData = "";
     this.logToHistoryListActivity2.UserId    = -1;
     //
     // CoreProcedure
     //
     this.CoreProcedure.Name         = "CoreProcedure";
     this.CoreProcedure.ExecuteCode += new System.EventHandler(this.SelectBatch_ExecuteCode);
     //
     // logToHistoryListActivity1
     //
     this.logToHistoryListActivity1.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity1.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity1.HistoryDescription = "";
     this.logToHistoryListActivity1.HistoryOutcome     = "Initiated";
     this.logToHistoryListActivity1.Name      = "logToHistoryListActivity1";
     this.logToHistoryListActivity1.OtherData = "";
     this.logToHistoryListActivity1.UserId    = -1;
     //
     // SequenceActivity1
     //
     this.SequenceActivity1.Activities.Add(this.logToHistoryListActivity1);
     this.SequenceActivity1.Activities.Add(this.CoreProcedure);
     this.SequenceActivity1.Activities.Add(this.logToHistoryListActivity2);
     this.SequenceActivity1.Description = "Create/Select Batch";
     this.SequenceActivity1.Name        = "SequenceActivity1";
     activitybind2.Name = "Workflow1";
     activitybind2.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "Workflow1";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind1.Name = "Workflow1";
     activitybind1.Path = "workflowProperties";
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // Workflow1
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.SequenceActivity1);
     this.Name = "Workflow1";
     this.CanModifyActivities = false;
 }
Exemple #51
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.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.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.stopWorkflowInput     = new System.Workflow.Activities.WebServiceInputActivity();
     this.getLastQuotientOutput = new System.Workflow.Activities.WebServiceOutputActivity();
     this.getLastQuotientInput  = new System.Workflow.Activities.WebServiceInputActivity();
     this.divideNumbersOutput   = new System.Workflow.Activities.WebServiceOutputActivity();
     this.codeDoDivision        = new System.Workflow.Activities.CodeActivity();
     this.divideNumbersInput    = new System.Workflow.Activities.WebServiceInputActivity();
     this.eventDrivenActivity3  = new System.Workflow.Activities.EventDrivenActivity();
     this.eventDrivenActivity2  = new System.Workflow.Activities.EventDrivenActivity();
     this.eventDrivenActivity1  = new System.Workflow.Activities.EventDrivenActivity();
     this.listenActivity1       = new System.Workflow.Activities.ListenActivity();
     this.whileActivity1        = new System.Workflow.Activities.WhileActivity();
     this.startWorkflowInput    = new System.Workflow.Activities.WebServiceInputActivity();
     //
     // stopWorkflowInput
     //
     this.stopWorkflowInput.InterfaceType  = typeof(SharedWorkflows.IMathServiceStateful);
     this.stopWorkflowInput.MethodName     = "StopWorkflow";
     this.stopWorkflowInput.Name           = "stopWorkflowInput";
     this.stopWorkflowInput.InputReceived += new System.EventHandler(this.stopWorkflowInput_InputReceived);
     //
     // getLastQuotientOutput
     //
     this.getLastQuotientOutput.InputActivityName = "getLastQuotientInput";
     this.getLastQuotientOutput.Name = "getLastQuotientOutput";
     activitybind1.Name = "MathServiceStatefulWorkflow";
     activitybind1.Path = "quotient";
     workflowparameterbinding1.ParameterName = "(ReturnValue)";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.getLastQuotientOutput.ParameterBindings.Add(workflowparameterbinding1);
     //
     // getLastQuotientInput
     //
     this.getLastQuotientInput.InterfaceType = typeof(SharedWorkflows.IMathServiceStateful);
     this.getLastQuotientInput.MethodName    = "GetLastQuotient";
     this.getLastQuotientInput.Name          = "getLastQuotientInput";
     //
     // divideNumbersOutput
     //
     this.divideNumbersOutput.InputActivityName = "divideNumbersInput";
     this.divideNumbersOutput.Name           = "divideNumbersOutput";
     activitybind2.Name                      = "MathServiceStatefulWorkflow";
     activitybind2.Path                      = "quotient";
     workflowparameterbinding2.ParameterName = "(ReturnValue)";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.divideNumbersOutput.ParameterBindings.Add(workflowparameterbinding2);
     //
     // codeDoDivision
     //
     this.codeDoDivision.Name         = "codeDoDivision";
     this.codeDoDivision.ExecuteCode += new System.EventHandler(this.codeDoDivision_ExecuteCode);
     //
     // divideNumbersInput
     //
     this.divideNumbersInput.InterfaceType = typeof(SharedWorkflows.IMathServiceStateful);
     this.divideNumbersInput.MethodName    = "DivideNumbers";
     this.divideNumbersInput.Name          = "divideNumbersInput";
     activitybind3.Name = "MathServiceStatefulWorkflow";
     activitybind3.Path = "dividend";
     workflowparameterbinding3.ParameterName = "dividend";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     activitybind4.Name = "MathServiceStatefulWorkflow";
     activitybind4.Path = "divisor";
     workflowparameterbinding4.ParameterName = "divisor";
     workflowparameterbinding4.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.divideNumbersInput.ParameterBindings.Add(workflowparameterbinding3);
     this.divideNumbersInput.ParameterBindings.Add(workflowparameterbinding4);
     //
     // eventDrivenActivity3
     //
     this.eventDrivenActivity3.Activities.Add(this.stopWorkflowInput);
     this.eventDrivenActivity3.Name = "eventDrivenActivity3";
     //
     // eventDrivenActivity2
     //
     this.eventDrivenActivity2.Activities.Add(this.getLastQuotientInput);
     this.eventDrivenActivity2.Activities.Add(this.getLastQuotientOutput);
     this.eventDrivenActivity2.Name = "eventDrivenActivity2";
     //
     // eventDrivenActivity1
     //
     this.eventDrivenActivity1.Activities.Add(this.divideNumbersInput);
     this.eventDrivenActivity1.Activities.Add(this.codeDoDivision);
     this.eventDrivenActivity1.Activities.Add(this.divideNumbersOutput);
     this.eventDrivenActivity1.Name = "eventDrivenActivity1";
     //
     // listenActivity1
     //
     this.listenActivity1.Activities.Add(this.eventDrivenActivity1);
     this.listenActivity1.Activities.Add(this.eventDrivenActivity2);
     this.listenActivity1.Activities.Add(this.eventDrivenActivity3);
     this.listenActivity1.Name = "listenActivity1";
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.listenActivity1);
     codecondition1.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CheckIsTimeToStop);
     this.whileActivity1.Condition = codecondition1;
     this.whileActivity1.Name      = "whileActivity1";
     //
     // startWorkflowInput
     //
     this.startWorkflowInput.InterfaceType = typeof(SharedWorkflows.IMathServiceStateful);
     this.startWorkflowInput.IsActivating  = true;
     this.startWorkflowInput.MethodName    = "StartWorkflow";
     this.startWorkflowInput.Name          = "startWorkflowInput";
     //
     // MathServiceStatefulWorkflow
     //
     this.Activities.Add(this.startWorkflowInput);
     this.Activities.Add(this.whileActivity1);
     this.Name = "MathServiceStatefulWorkflow";
     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.WorkflowParameterBinding workflowparameterbinding1 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind9             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1   = new System.Workflow.Activities.Rules.RuleConditionReference();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference2   = new System.Workflow.Activities.Rules.RuleConditionReference();
     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.Activities.Rules.RuleConditionReference ruleconditionreference3   = new System.Workflow.Activities.Rules.RuleConditionReference();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference4   = new System.Workflow.Activities.Rules.RuleConditionReference();
     System.Workflow.ComponentModel.ActivityBind             activitybind17            = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind             activitybind18            = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference5   = new System.Workflow.Activities.Rules.RuleConditionReference();
     System.Workflow.ComponentModel.ActivityBind             activitybind19            = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind             activitybind20            = new System.Workflow.ComponentModel.ActivityBind();
     this.ReloadUserSetting = new Dropthings.Business.Activities.GetUserSettingActivity();
     this.ChangeCurrentPage = new Dropthings.Business.Activities.SetCurrentPageActivity();
     this.GetUserPagesRetry = new Dropthings.Business.Activities.GetUserPagesActivity();
     this.CallWorkflowSetupUserWithTemplate       = new Dropthings.Business.Activities.CallWorkflowActivity();
     this.IfCurrentPageIsDifferentThanUserSetting = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfSettingTemplateEnabled     = new System.Workflow.Activities.IfElseBranchActivity();
     this.ReturnUserPageSetup          = new System.Workflow.Activities.CodeActivity();
     this.CheckIfCurrentPageHasChanged = new System.Workflow.Activities.IfElseActivity();
     this.DecideCurrentPage            = new Dropthings.Business.Activities.DecideCurrentPageActivity();
     this.GetUserSetting = new Dropthings.Business.Activities.GetUserSettingActivity();
     this.CheckIfSettingTemplateEnabled = new System.Workflow.Activities.IfElseActivity();
     this.GetUserSettingTemplates       = new Dropthings.Business.Activities.GetUserSettingTemplatesActivity();
     this.IfUserHasPages        = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfUserHasNoPages      = new System.Workflow.Activities.IfElseBranchActivity();
     this.CheckIfUserHasPages   = new System.Workflow.Activities.IfElseActivity();
     this.CheckIfUserHasNoPages = new System.Workflow.Activities.IfElseActivity();
     this.GetUserPages          = new Dropthings.Business.Activities.GetUserPagesActivity();
     this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfUserGuidNotEmpty    = new System.Workflow.Activities.IfElseBranchActivity();
     this.CheckUserGuid         = new System.Workflow.Activities.IfElseActivity();
     this.GetUserGuid           = new Dropthings.Business.Activities.GetUserGuidActivity();
     //
     // ReloadUserSetting
     //
     activitybind1.Name          = "UserVisitWorkflow";
     activitybind1.Path          = "Response.CurrentPage";
     this.ReloadUserSetting.Name = "ReloadUserSetting";
     activitybind2.Name          = "GetUserGuid";
     activitybind2.Path          = "UserGuid";
     activitybind3.Name          = "UserVisitWorkflow";
     activitybind3.Path          = "Response.UserSetting";
     this.ReloadUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("CurrentPage", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.ReloadUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserSetting", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.ReloadUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // ChangeCurrentPage
     //
     this.ChangeCurrentPage.Name = "ChangeCurrentPage";
     activitybind4.Name          = "DecideCurrentPage";
     activitybind4.Path          = "CurrentPageId";
     activitybind5.Name          = "GetUserGuid";
     activitybind5.Path          = "UserGuid";
     this.ChangeCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.SetCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.ChangeCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageId", typeof(Dropthings.Business.Activities.SetCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     //
     // GetUserPagesRetry
     //
     this.GetUserPagesRetry.Name = "GetUserPagesRetry";
     activitybind6.Name          = "UserVisitWorkflow";
     activitybind6.Path          = "Response.UserPages";
     activitybind7.Name          = "GetUserGuid";
     activitybind7.Path          = "UserGuid";
     this.GetUserPagesRetry.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Pages", typeof(Dropthings.Business.Activities.GetUserPagesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.GetUserPagesRetry.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.GetUserPagesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // CallWorkflowSetupUserWithTemplate
     //
     this.CallWorkflowSetupUserWithTemplate.Name = "CallWorkflowSetupUserWithTemplate";
     activitybind8.Name = "UserVisitWorkflow";
     activitybind8.Path = "Request";
     workflowparameterbinding1.ParameterName = "Request";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     activitybind9.Name = "UserVisitWorkflow";
     activitybind9.Path = "Response";
     workflowparameterbinding2.ParameterName = "Response";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.CallWorkflowSetupUserWithTemplate.Parameters.Add(workflowparameterbinding1);
     this.CallWorkflowSetupUserWithTemplate.Parameters.Add(workflowparameterbinding2);
     this.CallWorkflowSetupUserWithTemplate.Type = typeof(Dropthings.Business.Workflows.UserAccountWorkflow.SetupUserWithTemplateWorkflow);
     //
     // IfCurrentPageIsDifferentThanUserSetting
     //
     this.IfCurrentPageIsDifferentThanUserSetting.Activities.Add(this.ChangeCurrentPage);
     this.IfCurrentPageIsDifferentThanUserSetting.Activities.Add(this.ReloadUserSetting);
     ruleconditionreference1.ConditionName = "CurrentPageHasChanged";
     this.IfCurrentPageIsDifferentThanUserSetting.Condition = ruleconditionreference1;
     this.IfCurrentPageIsDifferentThanUserSetting.Name      = "IfCurrentPageIsDifferentThanUserSetting";
     //
     // IfSettingTemplateEnabled
     //
     this.IfSettingTemplateEnabled.Activities.Add(this.CallWorkflowSetupUserWithTemplate);
     this.IfSettingTemplateEnabled.Activities.Add(this.GetUserPagesRetry);
     ruleconditionreference2.ConditionName   = "SettingTemplateEnabled";
     this.IfSettingTemplateEnabled.Condition = ruleconditionreference2;
     this.IfSettingTemplateEnabled.Name      = "IfSettingTemplateEnabled";
     //
     // ReturnUserPageSetup
     //
     this.ReturnUserPageSetup.Name         = "ReturnUserPageSetup";
     this.ReturnUserPageSetup.ExecuteCode += new System.EventHandler(this.ReturnUserPageSetup_ExecuteCode);
     //
     // CheckIfCurrentPageHasChanged
     //
     this.CheckIfCurrentPageHasChanged.Activities.Add(this.IfCurrentPageIsDifferentThanUserSetting);
     this.CheckIfCurrentPageHasChanged.Name = "CheckIfCurrentPageHasChanged";
     //
     // DecideCurrentPage
     //
     activitybind10.Name         = "UserVisitWorkflow";
     activitybind10.Path         = "Response.CurrentPage";
     activitybind11.Name         = "UserVisitWorkflow";
     activitybind11.Path         = "Response.CurrentPage.ID";
     this.DecideCurrentPage.Name = "DecideCurrentPage";
     activitybind12.Name         = "UserVisitWorkflow";
     activitybind12.Path         = "Request.PageName";
     activitybind13.Name         = "GetUserGuid";
     activitybind13.Path         = "UserGuid";
     this.DecideCurrentPage.SetBinding(Dropthings.Business.Activities.DecideCurrentPageActivity.CurrentPageProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.DecideCurrentPage.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("PageName", typeof(Dropthings.Business.Activities.DecideCurrentPageActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.DecideCurrentPage.SetBinding(Dropthings.Business.Activities.DecideCurrentPageActivity.UserGuidProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.DecideCurrentPage.SetBinding(Dropthings.Business.Activities.DecideCurrentPageActivity.CurrentPageIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     //
     // GetUserSetting
     //
     activitybind14.Name      = "UserVisitWorkflow";
     activitybind14.Path      = "Response.CurrentPage";
     this.GetUserSetting.Name = "GetUserSetting";
     activitybind15.Name      = "GetUserGuid";
     activitybind15.Path      = "UserGuid";
     activitybind16.Name      = "UserVisitWorkflow";
     activitybind16.Path      = "Response.UserSetting";
     this.GetUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("CurrentPage", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.GetUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserSetting", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     this.GetUserSetting.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.GetUserSettingActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     //
     // CheckIfSettingTemplateEnabled
     //
     this.CheckIfSettingTemplateEnabled.Activities.Add(this.IfSettingTemplateEnabled);
     this.CheckIfSettingTemplateEnabled.Name = "CheckIfSettingTemplateEnabled";
     //
     // GetUserSettingTemplates
     //
     this.GetUserSettingTemplates.AllUserSettingTemplate        = null;
     this.GetUserSettingTemplates.AnonUserSettingTemplate       = null;
     this.GetUserSettingTemplates.CloneAnonProfileEnabled       = false;
     this.GetUserSettingTemplates.CloneRegisteredProfileEnabled = false;
     this.GetUserSettingTemplates.Name = "GetUserSettingTemplates";
     this.GetUserSettingTemplates.RegisteredUserSettingTemplate = null;
     //
     // IfUserHasPages
     //
     this.IfUserHasPages.Activities.Add(this.GetUserSetting);
     this.IfUserHasPages.Activities.Add(this.DecideCurrentPage);
     this.IfUserHasPages.Activities.Add(this.CheckIfCurrentPageHasChanged);
     this.IfUserHasPages.Activities.Add(this.ReturnUserPageSetup);
     ruleconditionreference3.ConditionName = "UserHasPages";
     this.IfUserHasPages.Condition         = ruleconditionreference3;
     this.IfUserHasPages.Name = "IfUserHasPages";
     //
     // IfUserHasNoPages
     //
     this.IfUserHasNoPages.Activities.Add(this.GetUserSettingTemplates);
     this.IfUserHasNoPages.Activities.Add(this.CheckIfSettingTemplateEnabled);
     ruleconditionreference4.ConditionName = "UserHasNoPages";
     this.IfUserHasNoPages.Condition       = ruleconditionreference4;
     this.IfUserHasNoPages.Name            = "IfUserHasNoPages";
     //
     // CheckIfUserHasPages
     //
     this.CheckIfUserHasPages.Activities.Add(this.IfUserHasPages);
     this.CheckIfUserHasPages.Name = "CheckIfUserHasPages";
     //
     // CheckIfUserHasNoPages
     //
     this.CheckIfUserHasNoPages.Activities.Add(this.IfUserHasNoPages);
     this.CheckIfUserHasNoPages.Name = "CheckIfUserHasNoPages";
     //
     // GetUserPages
     //
     this.GetUserPages.Name = "GetUserPages";
     activitybind17.Name    = "UserVisitWorkflow";
     activitybind17.Path    = "Response.UserPages";
     activitybind18.Name    = "GetUserGuid";
     activitybind18.Path    = "UserGuid";
     this.GetUserPages.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.GetUserPagesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
     this.GetUserPages.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("Pages", typeof(Dropthings.Business.Activities.GetUserPagesActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // IfUserGuidNotEmpty
     //
     this.IfUserGuidNotEmpty.Activities.Add(this.GetUserPages);
     this.IfUserGuidNotEmpty.Activities.Add(this.CheckIfUserHasNoPages);
     this.IfUserGuidNotEmpty.Activities.Add(this.CheckIfUserHasPages);
     ruleconditionreference5.ConditionName = "UserGuidNotEmpty";
     this.IfUserGuidNotEmpty.Condition     = ruleconditionreference5;
     this.IfUserGuidNotEmpty.Name          = "IfUserGuidNotEmpty";
     //
     // CheckUserGuid
     //
     this.CheckUserGuid.Activities.Add(this.IfUserGuidNotEmpty);
     this.CheckUserGuid.Activities.Add(this.ifElseBranchActivity2);
     this.CheckUserGuid.Name = "CheckUserGuid";
     //
     // GetUserGuid
     //
     this.GetUserGuid.Description = "name";
     this.GetUserGuid.Name        = "GetUserGuid";
     activitybind19.Name          = "UserVisitWorkflow";
     activitybind19.Path          = "Response.UserGuid";
     activitybind20.Name          = "UserVisitWorkflow";
     activitybind20.Path          = "Request.UserName";
     this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserName", typeof(Dropthings.Business.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
     this.GetUserGuid.SetBinding(System.Workflow.ComponentModel.DependencyProperty.FromName("UserGuid", typeof(Dropthings.Business.Activities.GetUserGuidActivity)), ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
     //
     // UserVisitWorkflow
     //
     this.Activities.Add(this.GetUserGuid);
     this.Activities.Add(this.CheckUserGuid);
     this.Name = "UserVisitWorkflow";
     this.CanModifyActivities = false;
 }
Exemple #53
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind activitybind1     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind3     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind2     = new System.Workflow.ComponentModel.ActivityBind();
     this.logErrorMessage           = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ErrorHandler              = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity6 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Update_tabKartyKontrolne  = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity5 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Mail_Send = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity4 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Mail_Setup = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity3 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlerActivity1     = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.Else                         = new System.Workflow.Activities.IfElseBranchActivity();
     this.isMailSent                   = new System.Workflow.Activities.IfElseBranchActivity();
     this.faultHandlersActivity1       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.cancellationHandlerActivity1 = new System.Workflow.ComponentModel.CancellationHandlerActivity();
     this.CzyWiadomośćWysłana          = new System.Workflow.Activities.IfElseActivity();
     this.logToHistoryListActivity2    = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.onWorkflowActivated1         = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // logErrorMessage
     //
     this.logErrorMessage.Duration       = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logErrorMessage.EventId        = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind1.Name                  = "ObslugaWiadomosci";
     activitybind1.Path                  = "logErrorMessage_HistoryDescription";
     this.logErrorMessage.HistoryOutcome = "";
     this.logErrorMessage.Name           = "logErrorMessage";
     this.logErrorMessage.OtherData      = "";
     this.logErrorMessage.UserId         = -1;
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // ErrorHandler
     //
     this.ErrorHandler.Name         = "ErrorHandler";
     this.ErrorHandler.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
     //
     // logToHistoryListActivity6
     //
     this.logToHistoryListActivity6.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity6.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity6.HistoryDescription = "Aktualizacja kartotek zakończona";
     this.logToHistoryListActivity6.HistoryOutcome     = "";
     this.logToHistoryListActivity6.Name      = "logToHistoryListActivity6";
     this.logToHistoryListActivity6.OtherData = "";
     this.logToHistoryListActivity6.UserId    = -1;
     //
     // Update_tabKartyKontrolne
     //
     this.Update_tabKartyKontrolne.Name         = "Update_tabKartyKontrolne";
     this.Update_tabKartyKontrolne.ExecuteCode += new System.EventHandler(this.Update_tabKartyKontrolne_ExecuteCode);
     //
     // logToHistoryListActivity5
     //
     this.logToHistoryListActivity5.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity5.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity5.HistoryDescription = "Wysyłka zakończona";
     this.logToHistoryListActivity5.HistoryOutcome     = "";
     this.logToHistoryListActivity5.Name      = "logToHistoryListActivity5";
     this.logToHistoryListActivity5.OtherData = "";
     this.logToHistoryListActivity5.UserId    = -1;
     //
     // Mail_Send
     //
     this.Mail_Send.Name         = "Mail_Send";
     this.Mail_Send.ExecuteCode += new System.EventHandler(this.Mail_Send_ExecuteCode);
     //
     // logToHistoryListActivity4
     //
     this.logToHistoryListActivity4.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity4.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity4.HistoryDescription = "Zlecenie wysyłki";
     this.logToHistoryListActivity4.HistoryOutcome     = "";
     this.logToHistoryListActivity4.Name      = "logToHistoryListActivity4";
     this.logToHistoryListActivity4.OtherData = "";
     this.logToHistoryListActivity4.UserId    = -1;
     //
     // Mail_Setup
     //
     this.Mail_Setup.Name         = "Mail_Setup";
     this.Mail_Setup.ExecuteCode += new System.EventHandler(this.Mail_Setup_ExecuteCode);
     //
     // logToHistoryListActivity3
     //
     this.logToHistoryListActivity3.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity3.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity3.HistoryDescription = "Przygotowanie";
     this.logToHistoryListActivity3.HistoryOutcome     = "";
     this.logToHistoryListActivity3.Name      = "logToHistoryListActivity3";
     this.logToHistoryListActivity3.OtherData = "";
     this.logToHistoryListActivity3.UserId    = -1;
     //
     // logToHistoryListActivity1
     //
     this.logToHistoryListActivity1.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity1.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity1.HistoryDescription = "STOP: wiadomość oznaczona jako wysłana";
     this.logToHistoryListActivity1.HistoryOutcome     = "";
     this.logToHistoryListActivity1.Name      = "logToHistoryListActivity1";
     this.logToHistoryListActivity1.OtherData = "";
     this.logToHistoryListActivity1.UserId    = -1;
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.ErrorHandler);
     this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
     this.faultHandlerActivity1.FaultType = typeof(System.Exception);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // Else
     //
     this.Else.Activities.Add(this.logToHistoryListActivity3);
     this.Else.Activities.Add(this.Mail_Setup);
     this.Else.Activities.Add(this.logToHistoryListActivity4);
     this.Else.Activities.Add(this.Mail_Send);
     this.Else.Activities.Add(this.logToHistoryListActivity5);
     this.Else.Activities.Add(this.Update_tabKartyKontrolne);
     this.Else.Activities.Add(this.logToHistoryListActivity6);
     this.Else.Name = "Else";
     //
     // isMailSent
     //
     this.isMailSent.Activities.Add(this.logToHistoryListActivity1);
     codecondition1.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isFlagaWysłanoUstawiona);
     this.isMailSent.Condition = codecondition1;
     this.isMailSent.Name      = "isMailSent";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // cancellationHandlerActivity1
     //
     this.cancellationHandlerActivity1.Name = "cancellationHandlerActivity1";
     //
     // CzyWiadomośćWysłana
     //
     this.CzyWiadomośćWysłana.Activities.Add(this.isMailSent);
     this.CzyWiadomośćWysłana.Activities.Add(this.Else);
     this.CzyWiadomośćWysłana.Name = "CzyWiadomośćWysłana";
     //
     // logToHistoryListActivity2
     //
     this.logToHistoryListActivity2.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity2.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity2.HistoryDescription = "Obsługa";
     this.logToHistoryListActivity2.HistoryOutcome     = "";
     this.logToHistoryListActivity2.Name      = "logToHistoryListActivity2";
     this.logToHistoryListActivity2.OtherData = "";
     this.logToHistoryListActivity2.UserId    = -1;
     activitybind3.Name = "ObslugaWiadomosci";
     activitybind3.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "ObslugaWiadomosci";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind2.Name = "ObslugaWiadomosci";
     activitybind2.Path = "workflowProperties";
     this.onWorkflowActivated1.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // ObslugaWiadomosci
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.logToHistoryListActivity2);
     this.Activities.Add(this.CzyWiadomośćWysłana);
     this.Activities.Add(this.cancellationHandlerActivity1);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "ObslugaWiadomosci";
     this.CanModifyActivities = false;
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
     this.CreateFile = new FileSystemActivity.FileSystem();
     this.Write      = new System.Workflow.Activities.CodeActivity();
     this.CloseFile  = new FileSystemActivity.FileSystem();
     this.ReadFile   = new FileSystemActivity.FileSystem();
     this.Print      = new System.Workflow.Activities.CodeActivity();
     this.CloseFile2 = new FileSystemActivity.FileSystem();
     this.FindFiles  = new FileSystemActivity.FileSystem();
     //
     // CreateFile
     //
     this.CreateFile.FileAccess = System.IO.FileAccess.Write;
     this.CreateFile.FileMode   = System.IO.FileMode.Create;
     this.CreateFile.Name       = "CreateFile";
     this.CreateFile.Source     = "HelloWorld.txt";
     //
     // Write
     //
     this.Write.Name         = "Write";
     this.Write.ExecuteCode += new System.EventHandler(this.Write_ExecuteCode);
     //
     // CloseFile
     //
     this.CloseFile.Command      = FileSystemActivity.CommandType.CloseFile;
     this.CloseFile.Name         = "CloseFile";
     this.CloseFile.StreamReader = null;
     //
     // ReadFile
     //
     this.ReadFile.Command      = FileSystemActivity.CommandType.OpenTextFile;
     this.ReadFile.Name         = "ReadFile";
     this.ReadFile.Source       = "HelloWorld.txt";
     this.ReadFile.StreamReader = null;
     //
     // Print
     //
     this.Print.Name         = "Print";
     this.Print.ExecuteCode += new System.EventHandler(this.Print_ExecuteCode);
     //
     // CloseFile2
     //
     this.CloseFile2.Command = FileSystemActivity.CommandType.CloseFile;
     this.CloseFile2.Name    = "CloseFile2";
     activitybind1.Name      = "ReadFile";
     activitybind1.Path      = "StreamReader";
     this.CloseFile2.SetBinding(FileSystemActivity.FileSystem.StreamReaderProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // FindFiles
     //
     this.FindFiles.Command          = FileSystemActivity.CommandType.FindFiles;
     this.FindFiles.Name             = "FindFiles";
     this.FindFiles.Recursive        = false;
     this.FindFiles.SearchPattern    = "*.txt";
     this.FindFiles.Source           = "C:\\Temp";
     this.FindFiles.CommandExecuted += new System.EventHandler(this.OnFilesFound);
     //
     // Workflow1
     //
     this.Activities.Add(this.CreateFile);
     this.Activities.Add(this.Write);
     this.Activities.Add(this.CloseFile);
     this.Activities.Add(this.ReadFile);
     this.Activities.Add(this.Print);
     this.Activities.Add(this.CloseFile2);
     this.Activities.Add(this.FindFiles);
     this.Name = "Workflow1";
     this.CanModifyActivities = false;
 }
Exemple #55
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     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.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition2    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Runtime.CorrelationToken    correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
     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.Activities.CodeCondition    codecondition3    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Runtime.CorrelationToken    correlationtoken3 = new System.Workflow.Runtime.CorrelationToken();
     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.Activities.CodeCondition    codecondition4    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition5    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition6    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition7    = new System.Workflow.Activities.CodeCondition();
     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.Activities.CodeCondition    codecondition8    = new System.Workflow.Activities.CodeCondition();
     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.ComponentModel.ActivityBind activitybind26    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind25    = new System.Workflow.ComponentModel.ActivityBind();
     this.Delete_SourceData            = new System.Workflow.Activities.CodeActivity();
     this.sendEmail7                   = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.Report_InvSent_UpdateKKIssue = new System.Workflow.Activities.CodeActivity();
     this.ifUpdateKKOK                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifUpdateKKIssue              = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity3              = new System.Workflow.Activities.IfElseActivity();
     this.Update_KK                  = new System.Workflow.Activities.CodeActivity();
     this.ifSent                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.sendEmail4                 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.Report_NoRelatedPDF        = new System.Workflow.Activities.CodeActivity();
     this.ifElseActivity1            = new System.Workflow.Activities.IfElseActivity();
     this.Setup_Faktura              = new System.Workflow.Activities.CodeActivity();
     this.logPowiazanyDokument       = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ifHasNoRelatedPDF          = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifHasRelatedPDF            = new System.Workflow.Activities.IfElseBranchActivity();
     this.sendEmail3                 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.Report_KKNieIstnieje       = new System.Workflow.Activities.CodeActivity();
     this.PowiązanieZPlikiemPDF      = new System.Workflow.Activities.IfElseActivity();
     this.Find_RelatedPDF            = new System.Workflow.Activities.CodeActivity();
     this.ifNIeIstniejeKK2           = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifIstniejeKK2              = new System.Workflow.Activities.IfElseBranchActivity();
     this.Manage_LFE                 = new System.Workflow.Activities.CodeActivity();
     this.Manage_LFZO                = new System.Workflow.Activities.CodeActivity();
     this.ifElseActivity2            = new System.Workflow.Activities.IfElseActivity();
     this.Find_KK                    = new System.Workflow.Activities.CodeActivity();
     this.CopySrcData                = new System.Workflow.Activities.CodeActivity();
     this.whileLFE                   = new System.Workflow.Activities.WhileActivity();
     this.Select_LFE                 = new System.Workflow.Activities.CodeActivity();
     this.whileLFZO                  = new System.Workflow.Activities.WhileActivity();
     this.Select_LFZO                = new System.Workflow.Activities.CodeActivity();
     this.ObsługaFaktury             = new System.Workflow.Activities.SequenceActivity();
     this.ListaFakturElektronicznych = new System.Workflow.Activities.SequenceActivity();
     this.ListaFakturZaObslugę       = new System.Workflow.Activities.SequenceActivity();
     this.whileRecord                = new System.Workflow.Activities.WhileActivity();
     this.Select_LFDO                = new System.Workflow.Activities.CodeActivity();
     this.Preset_kkList              = new System.Workflow.Activities.CodeActivity();
     this.Preset_BiuroRachunkowe     = new System.Workflow.Activities.CodeActivity();
     this.sequenceActivity2          = new System.Workflow.Activities.SequenceActivity();
     this.sequenceActivity1          = new System.Workflow.Activities.SequenceActivity();
     this.logToHistoryListActivity1  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.UpdateItem_Anulowany       = new System.Workflow.Activities.CodeActivity();
     this.logErrorMessage            = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ErrorHandler               = new System.Workflow.Activities.CodeActivity();
     this.sendEmail5                 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.ListaFakturDoObsługi       = new System.Workflow.Activities.SequenceActivity();
     this.UpdateItem_ObslugaFaza2    = new System.Workflow.Activities.CodeActivity();
     this.sendEmail1                 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.parallelActivity1          = new System.Workflow.Activities.ParallelActivity();
     this.Init_Lists                 = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity1      = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.ifElse                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifValidParams              = new System.Workflow.Activities.IfElseBranchActivity();
     this.faultHandlersActivity1     = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.sendEmail2                 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.logZakonczony              = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.UpdateItem_Zakonczony      = new System.Workflow.Activities.CodeActivity();
     this.ValidacjaParametrów        = new System.Workflow.Activities.IfElseActivity();
     this.logParameters              = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.sendEmail6                 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.UpdateItem_ObslugaFaza1    = new System.Workflow.Activities.CodeActivity();
     this.Get_Parameteres            = new System.Workflow.Activities.CodeActivity();
     this.onWorkflowActivated1       = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // Delete_SourceData
     //
     this.Delete_SourceData.Name         = "Delete_SourceData";
     this.Delete_SourceData.ExecuteCode += new System.EventHandler(this.Delete_SourceData_ExecuteCode);
     //
     // sendEmail7
     //
     this.sendEmail7.BCC    = null;
     this.sendEmail7.Body   = null;
     this.sendEmail7.CC     = null;
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName = "ImportFakturSWF";
     this.sendEmail7.CorrelationToken    = correlationtoken1;
     activitybind1.Name              = "ImportFakturSWF";
     activitybind1.Path              = "msgFrom";
     this.sendEmail7.Headers         = null;
     this.sendEmail7.IncludeStatus   = false;
     this.sendEmail7.Name            = "sendEmail7";
     activitybind2.Name              = "ImportFakturSWF";
     activitybind2.Path              = "msgSubject";
     activitybind3.Name              = "ImportFakturSWF";
     activitybind3.Path              = "msgTo";
     this.sendEmail7.MethodInvoking += new System.EventHandler(this.sendEmail7_MethodInvoking);
     this.sendEmail7.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.sendEmail7.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.sendEmail7.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // Report_InvSent_UpdateKKIssue
     //
     this.Report_InvSent_UpdateKKIssue.Name         = "Report_InvSent_UpdateKKIssue";
     this.Report_InvSent_UpdateKKIssue.ExecuteCode += new System.EventHandler(this.Report_InvSent_UpdateKKIssue_ExecuteCode);
     //
     // ifUpdateKKOK
     //
     this.ifUpdateKKOK.Activities.Add(this.Delete_SourceData);
     this.ifUpdateKKOK.Name = "ifUpdateKKOK";
     //
     // ifUpdateKKIssue
     //
     this.ifUpdateKKIssue.Activities.Add(this.Report_InvSent_UpdateKKIssue);
     this.ifUpdateKKIssue.Activities.Add(this.sendEmail7);
     codecondition1.Condition      += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isUpdateKKIssue);
     this.ifUpdateKKIssue.Condition = codecondition1;
     this.ifUpdateKKIssue.Name      = "ifUpdateKKIssue";
     //
     // ifElseActivity3
     //
     this.ifElseActivity3.Activities.Add(this.ifUpdateKKIssue);
     this.ifElseActivity3.Activities.Add(this.ifUpdateKKOK);
     this.ifElseActivity3.Name = "ifElseActivity3";
     //
     // Update_KK
     //
     this.Update_KK.Name         = "Update_KK";
     this.Update_KK.ExecuteCode += new System.EventHandler(this.Update_KK_ExecuteCode);
     //
     // ifSent
     //
     this.ifSent.Activities.Add(this.Update_KK);
     this.ifSent.Activities.Add(this.ifElseActivity3);
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isSent);
     this.ifSent.Condition     = codecondition2;
     this.ifSent.Name          = "ifSent";
     //
     // sendEmail4
     //
     this.sendEmail4.BCC    = null;
     this.sendEmail4.Body   = null;
     this.sendEmail4.CC     = null;
     correlationtoken2.Name = "workflowToken";
     correlationtoken2.OwnerActivityName = "ImportFakturSWF";
     this.sendEmail4.CorrelationToken    = correlationtoken2;
     activitybind4.Name              = "ImportFakturSWF";
     activitybind4.Path              = "msgFrom";
     this.sendEmail4.Headers         = null;
     this.sendEmail4.IncludeStatus   = false;
     this.sendEmail4.Name            = "sendEmail4";
     activitybind5.Name              = "ImportFakturSWF";
     activitybind5.Path              = "msgSubject";
     activitybind6.Name              = "ImportFakturSWF";
     activitybind6.Path              = "msgTo";
     this.sendEmail4.MethodInvoking += new System.EventHandler(this.sendEmail4_MethodInvoking);
     this.sendEmail4.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.sendEmail4.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.sendEmail4.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     //
     // Report_NoRelatedPDF
     //
     this.Report_NoRelatedPDF.Name         = "Report_NoRelatedPDF";
     this.Report_NoRelatedPDF.ExecuteCode += new System.EventHandler(this.Report_NoRelatedPDF_ExecuteCode);
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifSent);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // Setup_Faktura
     //
     this.Setup_Faktura.Name         = "Setup_Faktura";
     this.Setup_Faktura.ExecuteCode += new System.EventHandler(this.Setup_Faktura_ExecuteCode);
     //
     // logPowiazanyDokument
     //
     this.logPowiazanyDokument.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logPowiazanyDokument.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logPowiazanyDokument.HistoryDescription = "Powiązany dokument";
     activitybind7.Name                  = "ImportFakturSWF";
     activitybind7.Path                  = "logPowiazanyDokument_HistoryOutcome";
     this.logPowiazanyDokument.Name      = "logPowiazanyDokument";
     this.logPowiazanyDokument.OtherData = "";
     this.logPowiazanyDokument.UserId    = -1;
     this.logPowiazanyDokument.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // ifHasNoRelatedPDF
     //
     this.ifHasNoRelatedPDF.Activities.Add(this.Report_NoRelatedPDF);
     this.ifHasNoRelatedPDF.Activities.Add(this.sendEmail4);
     this.ifHasNoRelatedPDF.Name = "ifHasNoRelatedPDF";
     //
     // ifHasRelatedPDF
     //
     this.ifHasRelatedPDF.Activities.Add(this.logPowiazanyDokument);
     this.ifHasRelatedPDF.Activities.Add(this.Setup_Faktura);
     this.ifHasRelatedPDF.Activities.Add(this.ifElseActivity1);
     codecondition3.Condition      += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.hasRelatedPDF);
     this.ifHasRelatedPDF.Condition = codecondition3;
     this.ifHasRelatedPDF.Name      = "ifHasRelatedPDF";
     //
     // sendEmail3
     //
     this.sendEmail3.BCC    = null;
     this.sendEmail3.Body   = null;
     this.sendEmail3.CC     = null;
     correlationtoken3.Name = "workflowToken";
     correlationtoken3.OwnerActivityName = "ImportFakturSWF";
     this.sendEmail3.CorrelationToken    = correlationtoken3;
     activitybind8.Name              = "ImportFakturSWF";
     activitybind8.Path              = "msgFrom";
     this.sendEmail3.Headers         = null;
     this.sendEmail3.IncludeStatus   = false;
     this.sendEmail3.Name            = "sendEmail3";
     activitybind9.Name              = "ImportFakturSWF";
     activitybind9.Path              = "msgSubject";
     activitybind10.Name             = "ImportFakturSWF";
     activitybind10.Path             = "msgTo";
     this.sendEmail3.MethodInvoking += new System.EventHandler(this.sendEmail3_MethodInvoking);
     this.sendEmail3.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.sendEmail3.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.sendEmail3.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     //
     // Report_KKNieIstnieje
     //
     this.Report_KKNieIstnieje.Name         = "Report_KKNieIstnieje";
     this.Report_KKNieIstnieje.ExecuteCode += new System.EventHandler(this.Report_KKNieIstnieje_ExecuteCode);
     //
     // PowiązanieZPlikiemPDF
     //
     this.PowiązanieZPlikiemPDF.Activities.Add(this.ifHasRelatedPDF);
     this.PowiązanieZPlikiemPDF.Activities.Add(this.ifHasNoRelatedPDF);
     this.PowiązanieZPlikiemPDF.Name = "PowiązanieZPlikiemPDF";
     //
     // Find_RelatedPDF
     //
     this.Find_RelatedPDF.Description  = "wyszukuje plik PDF w/g numeru faktury i kodu klienta";
     this.Find_RelatedPDF.Name         = "Find_RelatedPDF";
     this.Find_RelatedPDF.ExecuteCode += new System.EventHandler(this.Find_RelatedPDF_ExecuteCode);
     //
     // ifNIeIstniejeKK2
     //
     this.ifNIeIstniejeKK2.Activities.Add(this.Report_KKNieIstnieje);
     this.ifNIeIstniejeKK2.Activities.Add(this.sendEmail3);
     this.ifNIeIstniejeKK2.Name = "ifNIeIstniejeKK2";
     //
     // ifIstniejeKK2
     //
     this.ifIstniejeKK2.Activities.Add(this.Find_RelatedPDF);
     this.ifIstniejeKK2.Activities.Add(this.PowiązanieZPlikiemPDF);
     codecondition4.Condition    += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isIstniejeKK);
     this.ifIstniejeKK2.Condition = codecondition4;
     this.ifIstniejeKK2.Name      = "ifIstniejeKK2";
     //
     // Manage_LFE
     //
     this.Manage_LFE.Name         = "Manage_LFE";
     this.Manage_LFE.ExecuteCode += new System.EventHandler(this.Manage_LFE_ExecuteCode);
     //
     // Manage_LFZO
     //
     this.Manage_LFZO.Name         = "Manage_LFZO";
     this.Manage_LFZO.ExecuteCode += new System.EventHandler(this.Manage_LFZO_ExecuteCode);
     //
     // ifElseActivity2
     //
     this.ifElseActivity2.Activities.Add(this.ifIstniejeKK2);
     this.ifElseActivity2.Activities.Add(this.ifNIeIstniejeKK2);
     this.ifElseActivity2.Name = "ifElseActivity2";
     //
     // Find_KK
     //
     this.Find_KK.Name         = "Find_KK";
     this.Find_KK.ExecuteCode += new System.EventHandler(this.Find_KK_ExecuteCode);
     //
     // CopySrcData
     //
     this.CopySrcData.Description  = "sprawdza czy wszystkie dane są potrzebe";
     this.CopySrcData.Name         = "CopySrcData";
     this.CopySrcData.ExecuteCode += new System.EventHandler(this.CopySrcData_ExecuteCode);
     //
     // whileLFE
     //
     this.whileLFE.Activities.Add(this.Manage_LFE);
     codecondition5.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.whileLFEExist);
     this.whileLFE.Condition   = codecondition5;
     this.whileLFE.Name        = "whileLFE";
     //
     // Select_LFE
     //
     this.Select_LFE.Name         = "Select_LFE";
     this.Select_LFE.ExecuteCode += new System.EventHandler(this.Select_LFE_ExecuteCode);
     //
     // whileLFZO
     //
     this.whileLFZO.Activities.Add(this.Manage_LFZO);
     codecondition6.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.whileLFZOExist);
     this.whileLFZO.Condition  = codecondition6;
     this.whileLFZO.Name       = "whileLFZO";
     //
     // Select_LFZO
     //
     this.Select_LFZO.Name         = "Select_LFZO";
     this.Select_LFZO.ExecuteCode += new System.EventHandler(this.Select_LFZO_ExecuteCode);
     //
     // ObsługaFaktury
     //
     this.ObsługaFaktury.Activities.Add(this.CopySrcData);
     this.ObsługaFaktury.Activities.Add(this.Find_KK);
     this.ObsługaFaktury.Activities.Add(this.ifElseActivity2);
     this.ObsługaFaktury.Name = "ObsługaFaktury";
     //
     // ListaFakturElektronicznych
     //
     this.ListaFakturElektronicznych.Activities.Add(this.Select_LFE);
     this.ListaFakturElektronicznych.Activities.Add(this.whileLFE);
     this.ListaFakturElektronicznych.Name = "ListaFakturElektronicznych";
     //
     // ListaFakturZaObslugę
     //
     this.ListaFakturZaObslugę.Activities.Add(this.Select_LFZO);
     this.ListaFakturZaObslugę.Activities.Add(this.whileLFZO);
     this.ListaFakturZaObslugę.Name = "ListaFakturZaObslugę";
     //
     // whileRecord
     //
     this.whileRecord.Activities.Add(this.ObsługaFaktury);
     codecondition7.Condition  += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.whileRecordExist);
     this.whileRecord.Condition = codecondition7;
     this.whileRecord.Name      = "whileRecord";
     //
     // Select_LFDO
     //
     this.Select_LFDO.Name         = "Select_LFDO";
     this.Select_LFDO.ExecuteCode += new System.EventHandler(this.Select_LFDO_ExecuteCode);
     //
     // Preset_kkList
     //
     this.Preset_kkList.Name         = "Preset_kkList";
     this.Preset_kkList.ExecuteCode += new System.EventHandler(this.Preset_kkList_ExecuteCode);
     //
     // Preset_BiuroRachunkowe
     //
     this.Preset_BiuroRachunkowe.Name         = "Preset_BiuroRachunkowe";
     this.Preset_BiuroRachunkowe.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
     //
     // sequenceActivity2
     //
     this.sequenceActivity2.Activities.Add(this.ListaFakturElektronicznych);
     this.sequenceActivity2.Name = "sequenceActivity2";
     //
     // sequenceActivity1
     //
     this.sequenceActivity1.Activities.Add(this.ListaFakturZaObslugę);
     this.sequenceActivity1.Name = "sequenceActivity1";
     //
     // logToHistoryListActivity1
     //
     this.logToHistoryListActivity1.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity1.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity1.HistoryDescription = "CANCELED";
     this.logToHistoryListActivity1.HistoryOutcome     = "";
     this.logToHistoryListActivity1.Name      = "logToHistoryListActivity1";
     this.logToHistoryListActivity1.OtherData = "";
     this.logToHistoryListActivity1.UserId    = -1;
     //
     // UpdateItem_Anulowany
     //
     this.UpdateItem_Anulowany.Name         = "UpdateItem_Anulowany";
     this.UpdateItem_Anulowany.ExecuteCode += new System.EventHandler(this.UpdateItem_Anulowany_ExecuteCode);
     //
     // logErrorMessage
     //
     this.logErrorMessage.Duration       = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logErrorMessage.EventId        = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind11.Name                 = "ImportFakturSWF";
     activitybind11.Path                 = "logErrorMessage_HistoryDescription";
     this.logErrorMessage.HistoryOutcome = "";
     this.logErrorMessage.Name           = "logErrorMessage";
     this.logErrorMessage.OtherData      = "";
     this.logErrorMessage.UserId         = -1;
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     //
     // ErrorHandler
     //
     this.ErrorHandler.Name         = "ErrorHandler";
     this.ErrorHandler.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
     //
     // sendEmail5
     //
     this.sendEmail5.BCC              = null;
     this.sendEmail5.Body             = null;
     this.sendEmail5.CC               = null;
     this.sendEmail5.CorrelationToken = correlationtoken1;
     activitybind12.Name              = "ImportFakturSWF";
     activitybind12.Path              = "msgFrom";
     this.sendEmail5.Headers          = null;
     this.sendEmail5.IncludeStatus    = false;
     this.sendEmail5.Name             = "sendEmail5";
     activitybind13.Name              = "ImportFakturSWF";
     activitybind13.Path              = "msgSubject";
     activitybind14.Name              = "ImportFakturSWF";
     activitybind14.Path              = "msgTo";
     this.sendEmail5.MethodInvoking  += new System.EventHandler(this.sendEmail5_MethodInvoking);
     this.sendEmail5.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.sendEmail5.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     this.sendEmail5.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     //
     // ListaFakturDoObsługi
     //
     this.ListaFakturDoObsługi.Activities.Add(this.Preset_BiuroRachunkowe);
     this.ListaFakturDoObsługi.Activities.Add(this.Preset_kkList);
     this.ListaFakturDoObsługi.Activities.Add(this.Select_LFDO);
     this.ListaFakturDoObsługi.Activities.Add(this.whileRecord);
     this.ListaFakturDoObsługi.Name = "ListaFakturDoObsługi";
     //
     // UpdateItem_ObslugaFaza2
     //
     this.UpdateItem_ObslugaFaza2.Name         = "UpdateItem_ObslugaFaza2";
     this.UpdateItem_ObslugaFaza2.ExecuteCode += new System.EventHandler(this.UpdateItem_ObslugaFaza2_ExecuteCode);
     //
     // sendEmail1
     //
     this.sendEmail1.BCC              = null;
     this.sendEmail1.Body             = null;
     this.sendEmail1.CC               = null;
     this.sendEmail1.CorrelationToken = correlationtoken1;
     activitybind15.Name              = "ImportFakturSWF";
     activitybind15.Path              = "msgFrom";
     this.sendEmail1.Headers          = null;
     this.sendEmail1.IncludeStatus    = false;
     this.sendEmail1.Name             = "sendEmail1";
     activitybind16.Name              = "ImportFakturSWF";
     activitybind16.Path              = "msgSubject";
     activitybind17.Name              = "ImportFakturSWF";
     activitybind17.Path              = "msgTo";
     this.sendEmail1.MethodInvoking  += new System.EventHandler(this.sendEmail1_MethodInvoking);
     this.sendEmail1.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     this.sendEmail1.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     this.sendEmail1.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     //
     // parallelActivity1
     //
     this.parallelActivity1.Activities.Add(this.sequenceActivity1);
     this.parallelActivity1.Activities.Add(this.sequenceActivity2);
     this.parallelActivity1.Name = "parallelActivity1";
     //
     // Init_Lists
     //
     this.Init_Lists.Name         = "Init_Lists";
     this.Init_Lists.ExecuteCode += new System.EventHandler(this.Init_Lists_ExecuteCode);
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.ErrorHandler);
     this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
     this.faultHandlerActivity1.Activities.Add(this.UpdateItem_Anulowany);
     this.faultHandlerActivity1.Activities.Add(this.logToHistoryListActivity1);
     this.faultHandlerActivity1.FaultType = typeof(System.Exception);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // ifElse
     //
     this.ifElse.Activities.Add(this.sendEmail5);
     this.ifElse.Name = "ifElse";
     //
     // ifValidParams
     //
     this.ifValidParams.Activities.Add(this.Init_Lists);
     this.ifValidParams.Activities.Add(this.parallelActivity1);
     this.ifValidParams.Activities.Add(this.sendEmail1);
     this.ifValidParams.Activities.Add(this.UpdateItem_ObslugaFaza2);
     this.ifValidParams.Activities.Add(this.ListaFakturDoObsługi);
     codecondition8.Condition    += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.hasValidParams);
     this.ifValidParams.Condition = codecondition8;
     this.ifValidParams.Name      = "ifValidParams";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // sendEmail2
     //
     this.sendEmail2.BCC              = null;
     this.sendEmail2.Body             = null;
     this.sendEmail2.CC               = null;
     this.sendEmail2.CorrelationToken = correlationtoken1;
     activitybind18.Name              = "ImportFakturSWF";
     activitybind18.Path              = "msgFrom";
     this.sendEmail2.Headers          = null;
     this.sendEmail2.IncludeStatus    = false;
     this.sendEmail2.Name             = "sendEmail2";
     activitybind19.Name              = "ImportFakturSWF";
     activitybind19.Path              = "msgTo";
     activitybind20.Name              = "ImportFakturSWF";
     activitybind20.Path              = "msgSubject";
     this.sendEmail2.MethodInvoking  += new System.EventHandler(this.sendEmail2_MethodInvoking);
     this.sendEmail2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
     this.sendEmail2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
     this.sendEmail2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
     //
     // logZakonczony
     //
     this.logZakonczony.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logZakonczony.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logZakonczony.HistoryDescription = "END";
     this.logZakonczony.HistoryOutcome     = "";
     this.logZakonczony.Name      = "logZakonczony";
     this.logZakonczony.OtherData = "";
     this.logZakonczony.UserId    = -1;
     //
     // UpdateItem_Zakonczony
     //
     this.UpdateItem_Zakonczony.Name         = "UpdateItem_Zakonczony";
     this.UpdateItem_Zakonczony.ExecuteCode += new System.EventHandler(this.UpdateItem_Zakonczony_ExecuteCode);
     //
     // ValidacjaParametrów
     //
     this.ValidacjaParametrów.Activities.Add(this.ifValidParams);
     this.ValidacjaParametrów.Activities.Add(this.ifElse);
     this.ValidacjaParametrów.Name = "ValidacjaParametrów";
     //
     // logParameters
     //
     this.logParameters.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logParameters.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logParameters.HistoryDescription = "Parameters";
     activitybind21.Name          = "ImportFakturSWF";
     activitybind21.Path          = "logParameters_HistoryOutcome";
     this.logParameters.Name      = "logParameters";
     this.logParameters.OtherData = "";
     this.logParameters.UserId    = -1;
     this.logParameters.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind21)));
     //
     // sendEmail6
     //
     this.sendEmail6.BCC              = null;
     this.sendEmail6.Body             = null;
     this.sendEmail6.CC               = null;
     this.sendEmail6.CorrelationToken = correlationtoken1;
     activitybind22.Name              = "ImportFakturSWF";
     activitybind22.Path              = "msgFrom";
     this.sendEmail6.Headers          = null;
     this.sendEmail6.IncludeStatus    = false;
     this.sendEmail6.Name             = "sendEmail6";
     activitybind23.Name              = "ImportFakturSWF";
     activitybind23.Path              = "msgSubject";
     activitybind24.Name              = "ImportFakturSWF";
     activitybind24.Path              = "msgTo";
     this.sendEmail6.MethodInvoking  += new System.EventHandler(this.sendEmail6_MethodInvoking);
     this.sendEmail6.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind23)));
     this.sendEmail6.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind24)));
     this.sendEmail6.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.FromProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind22)));
     //
     // UpdateItem_ObslugaFaza1
     //
     this.UpdateItem_ObslugaFaza1.Name         = "UpdateItem_ObslugaFaza1";
     this.UpdateItem_ObslugaFaza1.ExecuteCode += new System.EventHandler(this.UpdateItem_ObslugaFaza1_ExecuteCode);
     //
     // Get_Parameteres
     //
     this.Get_Parameteres.Name         = "Get_Parameteres";
     this.Get_Parameteres.ExecuteCode += new System.EventHandler(this.Get_Parameteres_ExecuteCode);
     activitybind26.Name = "ImportFakturSWF";
     activitybind26.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind25.Name = "ImportFakturSWF";
     activitybind25.Path = "workflowProperties";
     this.onWorkflowActivated1.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind26)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind25)));
     //
     // ImportFakturSWF
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.Get_Parameteres);
     this.Activities.Add(this.UpdateItem_ObslugaFaza1);
     this.Activities.Add(this.sendEmail6);
     this.Activities.Add(this.logParameters);
     this.Activities.Add(this.ValidacjaParametrów);
     this.Activities.Add(this.UpdateItem_Zakonczony);
     this.Activities.Add(this.logZakonczony);
     this.Activities.Add(this.sendEmail2);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "ImportFakturSWF";
     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.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.TimeoutException         = new System.Workflow.Activities.DelayActivity();
     this.ContactResponse          = new System.Workflow.Activities.HandleExternalEventActivity();
     this.ResponseTimeout          = new System.Workflow.Activities.EventDrivenActivity();
     this.ReceivedResponse         = new System.Workflow.Activities.EventDrivenActivity();
     this.ListenForContactResponse = new System.Workflow.Activities.ListenActivity();
     this.ContactEntityRequest     = new System.Workflow.Activities.CallExternalMethodActivity();
     this.ContactRequestResponse   = new System.Workflow.Activities.SequenceActivity();
     this.WhileWaitingforContact   = new System.Workflow.Activities.WhileActivity();
     this.InitializeActivity       = new System.Workflow.Activities.CodeActivity();
     //
     // TimeoutException
     //
     this.TimeoutException.Name            = "TimeoutException";
     this.TimeoutException.TimeoutDuration = System.TimeSpan.Parse("23:59:59");
     //
     // ContactResponse
     //
     this.ContactResponse.EventName     = "OnUserInteractionResponse";
     this.ContactResponse.InterfaceType = typeof(Mercury.Server.Workflows.IWorkflowService);
     this.ContactResponse.Name          = "ContactResponse";
     activitybind1.Name = "ContactEntity";
     activitybind1.Path = "Application";
     workflowparameterbinding1.ParameterName = "sender";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     activitybind2.Name = "ContactEntity";
     activitybind2.Path = "UserInteractionResponseEventArgs";
     workflowparameterbinding2.ParameterName = "e";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.ContactResponse.ParameterBindings.Add(workflowparameterbinding1);
     this.ContactResponse.ParameterBindings.Add(workflowparameterbinding2);
     this.ContactResponse.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs> (this.ContactResponse_Invoked);
     //
     // ResponseTimeout
     //
     this.ResponseTimeout.Activities.Add(this.TimeoutException);
     this.ResponseTimeout.Name = "ResponseTimeout";
     //
     // ReceivedResponse
     //
     this.ReceivedResponse.Activities.Add(this.ContactResponse);
     this.ReceivedResponse.Name = "ReceivedResponse";
     //
     // ListenForContactResponse
     //
     this.ListenForContactResponse.Activities.Add(this.ReceivedResponse);
     this.ListenForContactResponse.Activities.Add(this.ResponseTimeout);
     this.ListenForContactResponse.Name = "ListenForContactResponse";
     //
     // ContactEntityRequest
     //
     this.ContactEntityRequest.InterfaceType = typeof(Mercury.Server.Workflows.IWorkflowService);
     this.ContactEntityRequest.MethodName    = "UserInteractionRequest";
     this.ContactEntityRequest.Name          = "ContactEntityRequest";
     activitybind3.Name = "ContactEntity";
     activitybind3.Path = "UserInteractionRequest";
     workflowparameterbinding3.ParameterName = "request";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.ContactEntityRequest.ParameterBindings.Add(workflowparameterbinding3);
     this.ContactEntityRequest.MethodInvoking += new System.EventHandler(this.ContactRequest_OnInvoking);
     //
     // ContactRequestResponse
     //
     this.ContactRequestResponse.Activities.Add(this.ContactEntityRequest);
     this.ContactRequestResponse.Activities.Add(this.ListenForContactResponse);
     this.ContactRequestResponse.Name = "ContactRequestResponse";
     //
     // WhileWaitingforContact
     //
     this.WhileWaitingforContact.Activities.Add(this.ContactRequestResponse);
     codecondition1.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs> (this.WhileWaitingForContact_OnEvaluation);
     this.WhileWaitingforContact.Condition = codecondition1;
     this.WhileWaitingforContact.Name      = "WhileWaitingforContact";
     //
     // InitializeActivity
     //
     this.InitializeActivity.Name         = "InitializeActivity";
     this.InitializeActivity.ExecuteCode += new System.EventHandler(this.InitializeActivity_OnCodeExecute);
     //
     // ContactEntity
     //
     this.Activities.Add(this.InitializeActivity);
     this.Activities.Add(this.WhileWaitingforContact);
     this.Name = "ContactEntity";
     this.CanModifyActivities = false;
 }
Exemple #57
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition2    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition3    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition4    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition    codecondition5    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind1     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.CodeCondition    codecondition6    = new System.Workflow.Activities.CodeCondition();
     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.Activities.CodeCondition    codecondition7    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind7     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind6     = new System.Workflow.ComponentModel.ActivityBind();
     this.logToHistoryListActivity19 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PDW1 = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity9 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PD5                = new System.Workflow.Activities.CodeActivity();
     this.logFirmaZewnetrzna        = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logToHistoryListActivity8 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PD4                = new System.Workflow.Activities.CodeActivity();
     this.logFirma = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logToHistoryListActivity14 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PDW = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity13 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PD1 = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity4 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_ZUS3                = new System.Workflow.Activities.CodeActivity();
     this.logOsobaFizyczna           = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logToHistoryListActivity18 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_Reminders2          = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity16 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_RBR2                = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity11 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_VAT2                = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity6  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PDS = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity2 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_ZUS2 = new System.Workflow.Activities.CodeActivity();
     this.logKSH      = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logToHistoryListActivity17 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_Reminders           = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity15 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_RBR = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity10 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_VAT = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity5 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_PD = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity3 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Manage_ZUS                 = new System.Workflow.Activities.CodeActivity();
     this.logKPiR                    = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.CT_FirmaZewnetrzna         = new System.Workflow.Activities.IfElseBranchActivity();
     this.CT_Firma                   = new System.Workflow.Activities.IfElseBranchActivity();
     this.CT_OsobaFizyczna           = new System.Workflow.Activities.IfElseBranchActivity();
     this.CT_KSH                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.CT_KPIR                    = new System.Workflow.Activities.IfElseBranchActivity();
     this.Manage_KK                  = new System.Workflow.Activities.CodeActivity();
     this.Case_CT                    = new System.Workflow.Activities.IfElseActivity();
     this.logKlient                  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.cmdGetKlientDetails        = new System.Workflow.Activities.CodeActivity();
     this.ifValidParams              = new System.Workflow.Activities.IfElseBranchActivity();
     this.logToHistoryListActivity12 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Status_Anulowany           = new System.Workflow.Activities.CodeActivity();
     this.logErrorMessage            = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ErrorHandler               = new System.Workflow.Activities.CodeActivity();
     this.Param_Validation           = new System.Workflow.Activities.IfElseActivity();
     this.logOkresId                 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logKlientId                = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.cmdCaptureParams           = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity1      = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.ifCT_GFRK                  = new System.Workflow.Activities.IfElseBranchActivity();
     this.faultHandlersActivity1     = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.logToHistoryListActivity7  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Update_Status              = new System.Workflow.Activities.CodeActivity();
     this.Test_CT                    = new System.Workflow.Activities.IfElseActivity();
     this.cmdInitMsg                 = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity1  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.onWorkflowActivated1       = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // logToHistoryListActivity19
     //
     this.logToHistoryListActivity19.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity19.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity19.HistoryDescription = "PDW";
     this.logToHistoryListActivity19.HistoryOutcome     = "";
     this.logToHistoryListActivity19.Name      = "logToHistoryListActivity19";
     this.logToHistoryListActivity19.OtherData = "";
     this.logToHistoryListActivity19.UserId    = -1;
     //
     // Manage_PDW1
     //
     this.Manage_PDW1.Name         = "Manage_PDW1";
     this.Manage_PDW1.ExecuteCode += new System.EventHandler(this.Manage_PDW_ExecuteCode);
     //
     // logToHistoryListActivity9
     //
     this.logToHistoryListActivity9.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity9.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity9.HistoryDescription = "PD";
     this.logToHistoryListActivity9.HistoryOutcome     = "";
     this.logToHistoryListActivity9.Name      = "logToHistoryListActivity9";
     this.logToHistoryListActivity9.OtherData = "";
     this.logToHistoryListActivity9.UserId    = -1;
     //
     // Manage_PD5
     //
     this.Manage_PD5.Name         = "Manage_PD5";
     this.Manage_PD5.ExecuteCode += new System.EventHandler(this.Manage_PD_ExecuteCode);
     //
     // logFirmaZewnetrzna
     //
     this.logFirmaZewnetrzna.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logFirmaZewnetrzna.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logFirmaZewnetrzna.HistoryDescription = "CT";
     this.logFirmaZewnetrzna.HistoryOutcome     = "Firma zewnętrzna";
     this.logFirmaZewnetrzna.Name      = "logFirmaZewnetrzna";
     this.logFirmaZewnetrzna.OtherData = "";
     this.logFirmaZewnetrzna.UserId    = -1;
     //
     // logToHistoryListActivity8
     //
     this.logToHistoryListActivity8.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity8.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity8.HistoryDescription = "PD";
     this.logToHistoryListActivity8.HistoryOutcome     = "";
     this.logToHistoryListActivity8.Name      = "logToHistoryListActivity8";
     this.logToHistoryListActivity8.OtherData = "";
     this.logToHistoryListActivity8.UserId    = -1;
     //
     // Manage_PD4
     //
     this.Manage_PD4.Name         = "Manage_PD4";
     this.Manage_PD4.ExecuteCode += new System.EventHandler(this.Manage_PD_ExecuteCode);
     //
     // logFirma
     //
     this.logFirma.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logFirma.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logFirma.HistoryDescription = "CT";
     this.logFirma.HistoryOutcome     = "Firma";
     this.logFirma.Name      = "logFirma";
     this.logFirma.OtherData = "";
     this.logFirma.UserId    = -1;
     //
     // logToHistoryListActivity14
     //
     this.logToHistoryListActivity14.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity14.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity14.HistoryDescription = "PDW";
     this.logToHistoryListActivity14.HistoryOutcome     = "";
     this.logToHistoryListActivity14.Name      = "logToHistoryListActivity14";
     this.logToHistoryListActivity14.OtherData = "";
     this.logToHistoryListActivity14.UserId    = -1;
     //
     // Manage_PDW
     //
     this.Manage_PDW.Name         = "Manage_PDW";
     this.Manage_PDW.ExecuteCode += new System.EventHandler(this.Manage_PDW_ExecuteCode);
     //
     // logToHistoryListActivity13
     //
     this.logToHistoryListActivity13.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity13.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity13.HistoryDescription = "PD";
     this.logToHistoryListActivity13.HistoryOutcome     = "";
     this.logToHistoryListActivity13.Name      = "logToHistoryListActivity13";
     this.logToHistoryListActivity13.OtherData = "";
     this.logToHistoryListActivity13.UserId    = -1;
     //
     // Manage_PD1
     //
     this.Manage_PD1.Name         = "Manage_PD1";
     this.Manage_PD1.ExecuteCode += new System.EventHandler(this.Manage_PD_ExecuteCode);
     //
     // logToHistoryListActivity4
     //
     this.logToHistoryListActivity4.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity4.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity4.HistoryDescription = "ZUS";
     this.logToHistoryListActivity4.HistoryOutcome     = "";
     this.logToHistoryListActivity4.Name      = "logToHistoryListActivity4";
     this.logToHistoryListActivity4.OtherData = "";
     this.logToHistoryListActivity4.UserId    = -1;
     //
     // Manage_ZUS3
     //
     this.Manage_ZUS3.Name         = "Manage_ZUS3";
     this.Manage_ZUS3.ExecuteCode += new System.EventHandler(this.Manage_ZUS_ExecuteCode);
     //
     // logOsobaFizyczna
     //
     this.logOsobaFizyczna.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logOsobaFizyczna.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logOsobaFizyczna.HistoryDescription = "CT";
     this.logOsobaFizyczna.HistoryOutcome     = "Osoba fizyczna";
     this.logOsobaFizyczna.Name      = "logOsobaFizyczna";
     this.logOsobaFizyczna.OtherData = "";
     this.logOsobaFizyczna.UserId    = -1;
     //
     // logToHistoryListActivity18
     //
     this.logToHistoryListActivity18.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity18.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity18.HistoryDescription = "Reminders";
     this.logToHistoryListActivity18.HistoryOutcome     = "";
     this.logToHistoryListActivity18.Name      = "logToHistoryListActivity18";
     this.logToHistoryListActivity18.OtherData = "";
     this.logToHistoryListActivity18.UserId    = -1;
     //
     // Manage_Reminders2
     //
     this.Manage_Reminders2.Name         = "Manage_Reminders2";
     this.Manage_Reminders2.ExecuteCode += new System.EventHandler(this.Manage_Reminders_ExecuteCode);
     //
     // logToHistoryListActivity16
     //
     this.logToHistoryListActivity16.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity16.Enabled            = false;
     this.logToHistoryListActivity16.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity16.HistoryDescription = "RBR";
     this.logToHistoryListActivity16.HistoryOutcome     = "";
     this.logToHistoryListActivity16.Name      = "logToHistoryListActivity16";
     this.logToHistoryListActivity16.OtherData = "";
     this.logToHistoryListActivity16.UserId    = -1;
     //
     // Manage_RBR2
     //
     this.Manage_RBR2.Enabled      = false;
     this.Manage_RBR2.Name         = "Manage_RBR2";
     this.Manage_RBR2.ExecuteCode += new System.EventHandler(this.Manage_RBR_ExecuteCode);
     //
     // logToHistoryListActivity11
     //
     this.logToHistoryListActivity11.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity11.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity11.HistoryDescription = "VAT";
     this.logToHistoryListActivity11.HistoryOutcome     = "";
     this.logToHistoryListActivity11.Name      = "logToHistoryListActivity11";
     this.logToHistoryListActivity11.OtherData = "";
     this.logToHistoryListActivity11.UserId    = -1;
     //
     // Manage_VAT2
     //
     this.Manage_VAT2.Name         = "Manage_VAT2";
     this.Manage_VAT2.ExecuteCode += new System.EventHandler(this.Manage_VAT_ExecuteCode);
     //
     // logToHistoryListActivity6
     //
     this.logToHistoryListActivity6.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity6.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity6.HistoryDescription = "PDS";
     this.logToHistoryListActivity6.HistoryOutcome     = "";
     this.logToHistoryListActivity6.Name      = "logToHistoryListActivity6";
     this.logToHistoryListActivity6.OtherData = "";
     this.logToHistoryListActivity6.UserId    = -1;
     //
     // Manage_PDS
     //
     this.Manage_PDS.Name         = "Manage_PDS";
     this.Manage_PDS.ExecuteCode += new System.EventHandler(this.Manage_PDS_ExecuteCode);
     //
     // logToHistoryListActivity2
     //
     this.logToHistoryListActivity2.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity2.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity2.HistoryDescription = "ZUS";
     this.logToHistoryListActivity2.HistoryOutcome     = "";
     this.logToHistoryListActivity2.Name      = "logToHistoryListActivity2";
     this.logToHistoryListActivity2.OtherData = "";
     this.logToHistoryListActivity2.UserId    = -1;
     //
     // Manage_ZUS2
     //
     this.Manage_ZUS2.Name         = "Manage_ZUS2";
     this.Manage_ZUS2.ExecuteCode += new System.EventHandler(this.Manage_ZUS_ExecuteCode);
     //
     // logKSH
     //
     this.logKSH.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logKSH.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logKSH.HistoryDescription = "CT";
     this.logKSH.HistoryOutcome     = "KSH";
     this.logKSH.Name      = "logKSH";
     this.logKSH.OtherData = "";
     this.logKSH.UserId    = -1;
     //
     // logToHistoryListActivity17
     //
     this.logToHistoryListActivity17.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity17.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity17.HistoryDescription = "Reminders";
     this.logToHistoryListActivity17.HistoryOutcome     = "";
     this.logToHistoryListActivity17.Name      = "logToHistoryListActivity17";
     this.logToHistoryListActivity17.OtherData = "";
     this.logToHistoryListActivity17.UserId    = -1;
     //
     // Manage_Reminders
     //
     this.Manage_Reminders.Name         = "Manage_Reminders";
     this.Manage_Reminders.ExecuteCode += new System.EventHandler(this.Manage_Reminders_ExecuteCode);
     //
     // logToHistoryListActivity15
     //
     this.logToHistoryListActivity15.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity15.Enabled            = false;
     this.logToHistoryListActivity15.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity15.HistoryDescription = "RBR";
     this.logToHistoryListActivity15.HistoryOutcome     = "";
     this.logToHistoryListActivity15.Name      = "logToHistoryListActivity15";
     this.logToHistoryListActivity15.OtherData = "";
     this.logToHistoryListActivity15.UserId    = -1;
     //
     // Manage_RBR
     //
     this.Manage_RBR.Enabled      = false;
     this.Manage_RBR.Name         = "Manage_RBR";
     this.Manage_RBR.ExecuteCode += new System.EventHandler(this.Manage_RBR_ExecuteCode);
     //
     // logToHistoryListActivity10
     //
     this.logToHistoryListActivity10.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity10.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity10.HistoryDescription = "VAT";
     this.logToHistoryListActivity10.HistoryOutcome     = "";
     this.logToHistoryListActivity10.Name      = "logToHistoryListActivity10";
     this.logToHistoryListActivity10.OtherData = "";
     this.logToHistoryListActivity10.UserId    = -1;
     //
     // Manage_VAT
     //
     this.Manage_VAT.Name         = "Manage_VAT";
     this.Manage_VAT.ExecuteCode += new System.EventHandler(this.Manage_VAT_ExecuteCode);
     //
     // logToHistoryListActivity5
     //
     this.logToHistoryListActivity5.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity5.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity5.HistoryDescription = "PD";
     this.logToHistoryListActivity5.HistoryOutcome     = "";
     this.logToHistoryListActivity5.Name      = "logToHistoryListActivity5";
     this.logToHistoryListActivity5.OtherData = "";
     this.logToHistoryListActivity5.UserId    = -1;
     //
     // Manage_PD
     //
     this.Manage_PD.Name         = "Manage_PD";
     this.Manage_PD.ExecuteCode += new System.EventHandler(this.Manage_PD_ExecuteCode);
     //
     // logToHistoryListActivity3
     //
     this.logToHistoryListActivity3.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity3.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity3.HistoryDescription = "ZUS";
     this.logToHistoryListActivity3.HistoryOutcome     = "";
     this.logToHistoryListActivity3.Name      = "logToHistoryListActivity3";
     this.logToHistoryListActivity3.OtherData = "";
     this.logToHistoryListActivity3.UserId    = -1;
     //
     // Manage_ZUS
     //
     this.Manage_ZUS.Name         = "Manage_ZUS";
     this.Manage_ZUS.ExecuteCode += new System.EventHandler(this.Manage_ZUS_ExecuteCode);
     //
     // logKPiR
     //
     this.logKPiR.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logKPiR.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logKPiR.HistoryDescription = "CT";
     this.logKPiR.HistoryOutcome     = "KPiR";
     this.logKPiR.Name      = "logKPiR";
     this.logKPiR.OtherData = "";
     this.logKPiR.UserId    = -1;
     //
     // CT_FirmaZewnetrzna
     //
     this.CT_FirmaZewnetrzna.Activities.Add(this.logFirmaZewnetrzna);
     this.CT_FirmaZewnetrzna.Activities.Add(this.Manage_PD5);
     this.CT_FirmaZewnetrzna.Activities.Add(this.logToHistoryListActivity9);
     this.CT_FirmaZewnetrzna.Activities.Add(this.Manage_PDW1);
     this.CT_FirmaZewnetrzna.Activities.Add(this.logToHistoryListActivity19);
     codecondition1.Condition         += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isFirmaZewnetrzna);
     this.CT_FirmaZewnetrzna.Condition = codecondition1;
     this.CT_FirmaZewnetrzna.Name      = "CT_FirmaZewnetrzna";
     //
     // CT_Firma
     //
     this.CT_Firma.Activities.Add(this.logFirma);
     this.CT_Firma.Activities.Add(this.Manage_PD4);
     this.CT_Firma.Activities.Add(this.logToHistoryListActivity8);
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isFirma);
     this.CT_Firma.Condition   = codecondition2;
     this.CT_Firma.Enabled     = false;
     this.CT_Firma.Name        = "CT_Firma";
     //
     // CT_OsobaFizyczna
     //
     this.CT_OsobaFizyczna.Activities.Add(this.logOsobaFizyczna);
     this.CT_OsobaFizyczna.Activities.Add(this.Manage_ZUS3);
     this.CT_OsobaFizyczna.Activities.Add(this.logToHistoryListActivity4);
     this.CT_OsobaFizyczna.Activities.Add(this.Manage_PD1);
     this.CT_OsobaFizyczna.Activities.Add(this.logToHistoryListActivity13);
     this.CT_OsobaFizyczna.Activities.Add(this.Manage_PDW);
     this.CT_OsobaFizyczna.Activities.Add(this.logToHistoryListActivity14);
     codecondition3.Condition       += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isOsobaFizyczna);
     this.CT_OsobaFizyczna.Condition = codecondition3;
     this.CT_OsobaFizyczna.Name      = "CT_OsobaFizyczna";
     //
     // CT_KSH
     //
     this.CT_KSH.Activities.Add(this.logKSH);
     this.CT_KSH.Activities.Add(this.Manage_ZUS2);
     this.CT_KSH.Activities.Add(this.logToHistoryListActivity2);
     this.CT_KSH.Activities.Add(this.Manage_PDS);
     this.CT_KSH.Activities.Add(this.logToHistoryListActivity6);
     this.CT_KSH.Activities.Add(this.Manage_VAT2);
     this.CT_KSH.Activities.Add(this.logToHistoryListActivity11);
     this.CT_KSH.Activities.Add(this.Manage_RBR2);
     this.CT_KSH.Activities.Add(this.logToHistoryListActivity16);
     this.CT_KSH.Activities.Add(this.Manage_Reminders2);
     this.CT_KSH.Activities.Add(this.logToHistoryListActivity18);
     codecondition4.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isKSH);
     this.CT_KSH.Condition     = codecondition4;
     this.CT_KSH.Name          = "CT_KSH";
     //
     // CT_KPIR
     //
     this.CT_KPIR.Activities.Add(this.logKPiR);
     this.CT_KPIR.Activities.Add(this.Manage_ZUS);
     this.CT_KPIR.Activities.Add(this.logToHistoryListActivity3);
     this.CT_KPIR.Activities.Add(this.Manage_PD);
     this.CT_KPIR.Activities.Add(this.logToHistoryListActivity5);
     this.CT_KPIR.Activities.Add(this.Manage_VAT);
     this.CT_KPIR.Activities.Add(this.logToHistoryListActivity10);
     this.CT_KPIR.Activities.Add(this.Manage_RBR);
     this.CT_KPIR.Activities.Add(this.logToHistoryListActivity15);
     this.CT_KPIR.Activities.Add(this.Manage_Reminders);
     this.CT_KPIR.Activities.Add(this.logToHistoryListActivity17);
     codecondition5.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isKPIR);
     this.CT_KPIR.Condition    = codecondition5;
     this.CT_KPIR.Name         = "CT_KPIR";
     //
     // Manage_KK
     //
     this.Manage_KK.Name         = "Manage_KK";
     this.Manage_KK.ExecuteCode += new System.EventHandler(this.Manage_KK_ExecuteCode);
     //
     // Case_CT
     //
     this.Case_CT.Activities.Add(this.CT_KPIR);
     this.Case_CT.Activities.Add(this.CT_KSH);
     this.Case_CT.Activities.Add(this.CT_OsobaFizyczna);
     this.Case_CT.Activities.Add(this.CT_Firma);
     this.Case_CT.Activities.Add(this.CT_FirmaZewnetrzna);
     this.Case_CT.Name = "Case_CT";
     //
     // logKlient
     //
     this.logKlient.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logKlient.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logKlient.HistoryDescription = "Klient";
     activitybind1.Name       = "wfGFRK";
     activitybind1.Path       = "logKlient_HistoryOutcome";
     this.logKlient.Name      = "logKlient";
     this.logKlient.OtherData = "";
     this.logKlient.UserId    = -1;
     this.logKlient.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // cmdGetKlientDetails
     //
     this.cmdGetKlientDetails.Name         = "cmdGetKlientDetails";
     this.cmdGetKlientDetails.ExecuteCode += new System.EventHandler(this.cmdGetKlientDetails_ExecuteCode);
     //
     // ifValidParams
     //
     this.ifValidParams.Activities.Add(this.cmdGetKlientDetails);
     this.ifValidParams.Activities.Add(this.logKlient);
     this.ifValidParams.Activities.Add(this.Case_CT);
     this.ifValidParams.Activities.Add(this.Manage_KK);
     codecondition6.Condition    += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isValidParams);
     this.ifValidParams.Condition = codecondition6;
     this.ifValidParams.Name      = "ifValidParams";
     //
     // logToHistoryListActivity12
     //
     this.logToHistoryListActivity12.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity12.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity12.HistoryDescription = "";
     this.logToHistoryListActivity12.HistoryOutcome     = "";
     this.logToHistoryListActivity12.Name      = "logToHistoryListActivity12";
     this.logToHistoryListActivity12.OtherData = "";
     this.logToHistoryListActivity12.UserId    = -1;
     //
     // Status_Anulowany
     //
     this.Status_Anulowany.Name         = "Status_Anulowany";
     this.Status_Anulowany.ExecuteCode += new System.EventHandler(this.Status_Anulowany_ExecuteCode);
     //
     // logErrorMessage
     //
     this.logErrorMessage.Duration  = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logErrorMessage.EventId   = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     activitybind2.Name             = "wfGFRK";
     activitybind2.Path             = "logErrorMessage_HistoryDescription";
     activitybind3.Name             = "wfGFRK";
     activitybind3.Path             = "logErrorMessage_HistoryOutcome";
     this.logErrorMessage.Name      = "logErrorMessage";
     this.logErrorMessage.OtherData = "";
     this.logErrorMessage.UserId    = -1;
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // ErrorHandler
     //
     this.ErrorHandler.Name         = "ErrorHandler";
     this.ErrorHandler.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
     //
     // Param_Validation
     //
     this.Param_Validation.Activities.Add(this.ifValidParams);
     this.Param_Validation.Name = "Param_Validation";
     //
     // logOkresId
     //
     this.logOkresId.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logOkresId.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logOkresId.HistoryDescription = "okresId";
     activitybind4.Name        = "wfGFRK";
     activitybind4.Path        = "logOkresId_HistoryOutcome";
     this.logOkresId.Name      = "logOkresId";
     this.logOkresId.OtherData = "";
     this.logOkresId.UserId    = -1;
     this.logOkresId.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     //
     // logKlientId
     //
     this.logKlientId.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logKlientId.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logKlientId.HistoryDescription = "klientId";
     activitybind5.Name         = "wfGFRK";
     activitybind5.Path         = "logKlientId_HistoryOutcome";
     this.logKlientId.Name      = "logKlientId";
     this.logKlientId.OtherData = "";
     this.logKlientId.UserId    = -1;
     this.logKlientId.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // cmdCaptureParams
     //
     this.cmdCaptureParams.Name         = "cmdCaptureParams";
     this.cmdCaptureParams.ExecuteCode += new System.EventHandler(this.cmdCaptureParams_ExecuteCode);
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.ErrorHandler);
     this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
     this.faultHandlerActivity1.Activities.Add(this.Status_Anulowany);
     this.faultHandlerActivity1.Activities.Add(this.logToHistoryListActivity12);
     this.faultHandlerActivity1.FaultType = typeof(System.SystemException);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // ifCT_GFRK
     //
     this.ifCT_GFRK.Activities.Add(this.cmdCaptureParams);
     this.ifCT_GFRK.Activities.Add(this.logKlientId);
     this.ifCT_GFRK.Activities.Add(this.logOkresId);
     this.ifCT_GFRK.Activities.Add(this.Param_Validation);
     codecondition7.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isCT_GFRK);
     this.ifCT_GFRK.Condition  = codecondition7;
     this.ifCT_GFRK.Name       = "ifCT_GFRK";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // logToHistoryListActivity7
     //
     this.logToHistoryListActivity7.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity7.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity7.HistoryDescription = "Status";
     this.logToHistoryListActivity7.HistoryOutcome     = "Zakończony";
     this.logToHistoryListActivity7.Name      = "logToHistoryListActivity7";
     this.logToHistoryListActivity7.OtherData = "";
     this.logToHistoryListActivity7.UserId    = -1;
     //
     // Update_Status
     //
     this.Update_Status.Name         = "Update_Status";
     this.Update_Status.ExecuteCode += new System.EventHandler(this.Update_Status_ExecuteCode);
     //
     // Test_CT
     //
     this.Test_CT.Activities.Add(this.ifCT_GFRK);
     this.Test_CT.Name = "Test_CT";
     //
     // cmdInitMsg
     //
     this.cmdInitMsg.Name         = "cmdInitMsg";
     this.cmdInitMsg.ExecuteCode += new System.EventHandler(this.cmdInitMsg_ExecuteCode);
     //
     // logToHistoryListActivity1
     //
     this.logToHistoryListActivity1.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity1.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity1.HistoryDescription = "Start";
     this.logToHistoryListActivity1.HistoryOutcome     = "";
     this.logToHistoryListActivity1.Name      = "logToHistoryListActivity1";
     this.logToHistoryListActivity1.OtherData = "";
     this.logToHistoryListActivity1.UserId    = -1;
     activitybind7.Name = "wfGFRK";
     activitybind7.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "wfGFRK";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind6.Name = "wfGFRK";
     activitybind6.Path = "workflowProperties";
     this.onWorkflowActivated1.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked_2);
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // wfGFRK
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.logToHistoryListActivity1);
     this.Activities.Add(this.cmdInitMsg);
     this.Activities.Add(this.Test_CT);
     this.Activities.Add(this.Update_Status);
     this.Activities.Add(this.logToHistoryListActivity7);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "wfGFRK";
     this.CanModifyActivities = false;
 }
Exemple #58
0
 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 activitybind8     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind7     = new System.Workflow.ComponentModel.ActivityBind();
     this.CompletedWorkflowLogToHistory = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.CloseAccountActivity          = new System.Workflow.Activities.CodeActivity();
     this.StartingWorkflowLogToHistory  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.onAccountClosingActivated     = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // CompletedWorkflowLogToHistory
     //
     this.CompletedWorkflowLogToHistory.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.CompletedWorkflowLogToHistory.EventId  = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowCompleted;
     activitybind1.Name = "CloseAccount";
     activitybind1.Path = "CompletedLogToHistory_HistoryDescription";
     activitybind2.Name = "CloseAccount";
     activitybind2.Path = "CompletedLogToHistory_HistoryOutcome";
     this.CompletedWorkflowLogToHistory.Name      = "CompletedWorkflowLogToHistory";
     this.CompletedWorkflowLogToHistory.OtherData = "";
     activitybind3.Name = "CloseAccount";
     activitybind3.Path = "workflowProperties.OriginatorUser.ID";
     this.CompletedWorkflowLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.CompletedWorkflowLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.CompletedWorkflowLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // CloseAccountActivity
     //
     this.CloseAccountActivity.Description  = "Main code block closing the account.";
     this.CloseAccountActivity.Name         = "CloseAccountActivity";
     this.CloseAccountActivity.ExecuteCode += new System.EventHandler(this.CloseAccountActivity_ExecuteCode);
     //
     // StartingWorkflowLogToHistory
     //
     this.StartingWorkflowLogToHistory.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.StartingWorkflowLogToHistory.EventId  = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowStarted;
     activitybind4.Name = "CloseAccount";
     activitybind4.Path = "StartingWorkflowLogToHistory_HistoryDescription";
     activitybind5.Name = "CloseAccount";
     activitybind5.Path = "StartingWorkflowLogToHistory_HistoryOutcome";
     this.StartingWorkflowLogToHistory.Name      = "StartingWorkflowLogToHistory";
     this.StartingWorkflowLogToHistory.OtherData = "";
     activitybind6.Name = "CloseAccount";
     activitybind6.Path = "workflowProperties.OriginatorUser.ID";
     this.StartingWorkflowLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.StartingWorkflowLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.StartingWorkflowLogToHistory.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     activitybind8.Name = "CloseAccount";
     activitybind8.Path = "workflowId";
     //
     // onAccountClosingActivated
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName             = "CloseAccount";
     this.onAccountClosingActivated.CorrelationToken = correlationtoken1;
     this.onAccountClosingActivated.EventName        = "OnWorkflowActivated";
     this.onAccountClosingActivated.Name             = "onAccountClosingActivated";
     activitybind7.Name = "CloseAccount";
     activitybind7.Path = "workflowProperties";
     this.onAccountClosingActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     this.onAccountClosingActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // CloseAccount
     //
     this.Activities.Add(this.onAccountClosingActivated);
     this.Activities.Add(this.StartingWorkflowLogToHistory);
     this.Activities.Add(this.CloseAccountActivity);
     this.Activities.Add(this.CompletedWorkflowLogToHistory);
     this.Name = "CloseAccount";
     this.CanModifyActivities = false;
 }
Exemple #59
0
 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 activitybind6     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind5     = new System.Workflow.ComponentModel.ActivityBind();
     this.FinishLgToHistoryListActivity   = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.UpdateMilestoneCodeActivity     = new System.Workflow.Activities.CodeActivity();
     this.m_StartLogToHistoryListActivity = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.m_OnWorkflowActivated           = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // FinishLgToHistoryListActivity
     //
     this.FinishLgToHistoryListActivity.Description = "Logs message to the history log.";
     this.FinishLgToHistoryListActivity.Duration    = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.FinishLgToHistoryListActivity.EventId     = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowCompleted;
     activitybind1.Name = "Update";
     activitybind1.Path = "FinishLgToHistoryListActivity_HistoryDescription";
     activitybind2.Name = "Update";
     activitybind2.Path = "FinishLgToHistoryListActivity_HistoryOutcome";
     this.FinishLgToHistoryListActivity.Name      = "FinishLgToHistoryListActivity";
     this.FinishLgToHistoryListActivity.OtherData = "";
     activitybind3.Name = "Update";
     activitybind3.Path = "workflowProperties.OriginatorUser.ID";
     this.FinishLgToHistoryListActivity.MethodInvoking += new System.EventHandler(this.FinishLgToHistoryListActivity_MethodInvoking);
     this.FinishLgToHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.FinishLgToHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.FinishLgToHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // UpdateMilestoneCodeActivity
     //
     this.UpdateMilestoneCodeActivity.Description  = "Updates the milestone and all interconnected objects.";
     this.UpdateMilestoneCodeActivity.Name         = "UpdateMilestoneCodeActivity";
     this.UpdateMilestoneCodeActivity.ExecuteCode += new System.EventHandler(this.UpdateMilestoneCodeActivity_ExecuteCode);
     //
     // m_StartLogToHistoryListActivity
     //
     this.m_StartLogToHistoryListActivity.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.m_StartLogToHistoryListActivity.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowStarted;
     this.m_StartLogToHistoryListActivity.HistoryDescription = "Start updating the Milestone";
     this.m_StartLogToHistoryListActivity.HistoryOutcome     = "Starting";
     this.m_StartLogToHistoryListActivity.Name      = "m_StartLogToHistoryListActivity";
     this.m_StartLogToHistoryListActivity.OtherData = "";
     activitybind4.Name = "Update";
     activitybind4.Path = "workflowProperties.OriginatorUser.ID";
     this.m_StartLogToHistoryListActivity.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.UserIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     activitybind6.Name = "Update";
     activitybind6.Path = "workflowId";
     //
     // m_OnWorkflowActivated
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName         = "Update";
     this.m_OnWorkflowActivated.CorrelationToken = correlationtoken1;
     this.m_OnWorkflowActivated.Description      = "Update the list.";
     this.m_OnWorkflowActivated.EventName        = "OnWorkflowActivated";
     this.m_OnWorkflowActivated.Name             = "m_OnWorkflowActivated";
     activitybind5.Name = "Update";
     activitybind5.Path = "workflowProperties";
     this.m_OnWorkflowActivated.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.m_OnWorkflowActivated_Invoked);
     this.m_OnWorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.m_OnWorkflowActivated.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // Update
     //
     this.Activities.Add(this.m_OnWorkflowActivated);
     this.Activities.Add(this.m_StartLogToHistoryListActivity);
     this.Activities.Add(this.UpdateMilestoneCodeActivity);
     this.Activities.Add(this.FinishLgToHistoryListActivity);
     this.Name = "Update";
     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.Activities.CodeCondition                codecondition1            = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind             activitybind3             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding2 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     System.Workflow.ComponentModel.ActivityBind             activitybind4             = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.WorkflowParameterBinding workflowparameterbinding3 = new System.Workflow.ComponentModel.WorkflowParameterBinding();
     this.divideNumbersOutput = new System.Workflow.Activities.WebServiceOutputActivity();
     this.codeDoDivision      = new System.Workflow.Activities.CodeActivity();
     this.divideNumbersFault  = new System.Workflow.Activities.WebServiceFaultActivity();
     this.ifDivisorNotZero    = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifDivisorZero       = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity1     = new System.Workflow.Activities.IfElseActivity();
     this.divideNumbersInput  = new System.Workflow.Activities.WebServiceInputActivity();
     //
     // divideNumbersOutput
     //
     this.divideNumbersOutput.InputActivityName = "divideNumbersInput";
     this.divideNumbersOutput.Name           = "divideNumbersOutput";
     activitybind1.Name                      = "MathServiceFaultsWorkflow";
     activitybind1.Path                      = "quotient";
     workflowparameterbinding1.ParameterName = "(ReturnValue)";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.divideNumbersOutput.ParameterBindings.Add(workflowparameterbinding1);
     //
     // codeDoDivision
     //
     this.codeDoDivision.Name         = "codeDoDivision";
     this.codeDoDivision.ExecuteCode += new System.EventHandler(this.codeDoDivision_ExecuteCode);
     activitybind2.Name = "MathServiceFaultsWorkflow";
     activitybind2.Path = "fault";
     //
     // divideNumbersFault
     //
     this.divideNumbersFault.InputActivityName = "divideNumbersInput";
     this.divideNumbersFault.Name = "divideNumbersFault";
     this.divideNumbersFault.SetBinding(System.Workflow.Activities.WebServiceFaultActivity.FaultProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // ifDivisorNotZero
     //
     this.ifDivisorNotZero.Activities.Add(this.codeDoDivision);
     this.ifDivisorNotZero.Activities.Add(this.divideNumbersOutput);
     this.ifDivisorNotZero.Name = "ifDivisorNotZero";
     //
     // ifDivisorZero
     //
     this.ifDivisorZero.Activities.Add(this.divideNumbersFault);
     codecondition1.Condition    += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.IsDivisorZero);
     this.ifDivisorZero.Condition = codecondition1;
     this.ifDivisorZero.Name      = "ifDivisorZero";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifDivisorZero);
     this.ifElseActivity1.Activities.Add(this.ifDivisorNotZero);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // divideNumbersInput
     //
     this.divideNumbersInput.InterfaceType = typeof(SharedWorkflows.IMathService);
     this.divideNumbersInput.IsActivating  = true;
     this.divideNumbersInput.MethodName    = "DivideNumbers";
     this.divideNumbersInput.Name          = "divideNumbersInput";
     activitybind3.Name = "MathServiceFaultsWorkflow";
     activitybind3.Path = "dividend";
     workflowparameterbinding2.ParameterName = "dividend";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     activitybind4.Name = "MathServiceFaultsWorkflow";
     activitybind4.Path = "divisor";
     workflowparameterbinding3.ParameterName = "divisor";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.divideNumbersInput.ParameterBindings.Add(workflowparameterbinding2);
     this.divideNumbersInput.ParameterBindings.Add(workflowparameterbinding3);
     //
     // MathServiceFaultsWorkflow
     //
     this.Activities.Add(this.divideNumbersInput);
     this.Activities.Add(this.ifElseActivity1);
     this.Name = "MathServiceFaultsWorkflow";
     this.CanModifyActivities = false;
 }