Esempio n. 1
0
            public override ValidationErrorCollection Validate(ValidationManager manager, object obj)
            {
                ValidationErrorCollection validationErrors = ValidationHelpers.ValidateObject(manager, obj);

                if (validationErrors.Count == 0)
                {
                    Activity activity = manager.Context[typeof(Activity)] as Activity;
                    if (activity == null)
                    {
                        throw new InvalidOperationException(SR.GetString(SR.Error_ContextStackItemMissing, typeof(Activity).Name));
                    }

                    CodeCondition codeCondition = obj as CodeCondition;
                    if (codeCondition != null && codeCondition.IsBindingSet(CodeCondition.ConditionEvent))
                    {
                        ActivityBind activityBind = codeCondition.GetBinding(CodeCondition.ConditionEvent) as ActivityBind;
                        if (activityBind != null)
                        {
                            Activity contextActivity = Helpers.ParseActivityForBind(activity, activityBind.Name);
                            if (contextActivity != null && Helpers.IsChildActivity(activity.Parent, contextActivity))
                            {
                                string          propertyName = GetFullPropertyName(manager);
                                ValidationError error        = new ValidationError(SR.GetString(SR.Error_NestedConstrainedGroupConditions, propertyName), ErrorNumbers.Error_NestedConstrainedGroupConditions);
                                error.PropertyName = propertyName;
                                validationErrors.Add(error);
                            }
                        }
                    }
                }

                return(validationErrors);
            }
Esempio n. 2
0
        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;

        }
Esempio n. 3
0
		public WorkFlowIfElse ()
		{
			IfElseActivity ifelse_activity = new IfElseActivity ();
			IfElseBranchActivity branch1 = new IfElseBranchActivity ();
			CodeCondition ifelse_condition1 = new CodeCondition ();
			DelayActivity delay_activity = new DelayActivity ();
			CodeActivity code_branch1 = new CodeActivity ();
			CodeActivity code_branch2 = new CodeActivity ();
			branch2 = new IfElseBranchActivity ();

			delay_activity.Name = "DelayActivity";
			delay_activity.TimeoutDuration = TimeSpan.Parse ("00:00:05");
			delay_activity.InitializeTimeoutDuration += new EventHandler (DelayActivity_InitializeTimeoutDuration);

			code_branch1.Name ="Code1";
			code_branch2.Name ="Code2";
			code_branch1.ExecuteCode += new EventHandler (ExecuteCode1);
			code_branch2.ExecuteCode += new EventHandler (ExecuteCode2);

			branch1.Activities.Add (code_branch1);
			branch2.Activities.Add (code_branch2);

			ifelse_condition1.Condition += new EventHandler <ConditionalEventArgs> (IfElseCondition1);
			branch1.Condition = ifelse_condition1;

			ifelse_activity.Activities.Add (branch1);
			ifelse_activity.Activities.Add (branch2);

			Activities.Add (delay_activity);
			Activities.Add (ifelse_activity);
		}
Esempio n. 4
0
		public WorkFlowIfElse ()
		{
			IfElseActivity ifelse_activity = new IfElseActivity ();
			IfElseBranchActivity branch1 = new IfElseBranchActivity ();
			CodeCondition ifelse_condition1 = new CodeCondition ();
			CodeActivity code_branch1 = new CodeActivity ();
			CodeActivity code_branch2 = new CodeActivity ();
			branch2 = new IfElseBranchActivity ();

			code_branch1.Name ="Code1";
			code_branch2.Name ="Code2";
			code_branch1.ExecuteCode += new EventHandler (ExecuteCode1);
			code_branch2.ExecuteCode += new EventHandler (ExecuteCode2);

			branch1.Activities.Add (code_branch1);
			branch2.Activities.Add (code_branch2);

			ifelse_condition1.Condition += new EventHandler <ConditionalEventArgs> (IfElseCondition1);
			branch1.Condition = ifelse_condition1;

			ifelse_activity.Activities.Add (branch1);
			ifelse_activity.Activities.Add (branch2);

			Activities.Add (ifelse_activity);
		}
            public override ValidationErrorCollection Validate(ValidationManager manager, object obj)
            {
                ValidationErrorCollection errors = System.Workflow.Activities.Common.ValidationHelpers.ValidateObject(manager, obj);

                if (errors.Count == 0)
                {
                    Activity context = manager.Context[typeof(Activity)] as Activity;
                    if (context == null)
                    {
                        throw new InvalidOperationException(SR.GetString("Error_ContextStackItemMissing", new object[] { typeof(Activity).Name }));
                    }
                    CodeCondition condition = obj as CodeCondition;
                    if ((condition != null) && condition.IsBindingSet(CodeCondition.ConditionEvent))
                    {
                        ActivityBind binding = condition.GetBinding(CodeCondition.ConditionEvent);
                        if (binding != null)
                        {
                            Activity activity = System.Workflow.Activities.Common.Helpers.ParseActivityForBind(context, binding.Name);
                            if ((activity != null) && System.Workflow.Activities.Common.Helpers.IsChildActivity(context.Parent, activity))
                            {
                                string          fullPropertyName = base.GetFullPropertyName(manager);
                                ValidationError item             = new ValidationError(SR.GetString("Error_NestedConstrainedGroupConditions", new object[] { fullPropertyName }), 0x615)
                                {
                                    PropertyName = fullPropertyName
                                };
                                errors.Add(item);
                            }
                        }
                    }
                }
                return(errors);
            }
 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();
     this.Airline = new System.Workflow.Activities.CodeActivity();
     this.Car = new System.Workflow.Activities.CodeActivity();
     this.BookingCag = new System.Workflow.Activities.ConditionedActivityGroup();
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AirlineCondition);
     //
     // Airline
     //
     this.Airline.Name = "Airline";
     this.Airline.ExecuteCode += new System.EventHandler(this.Airline_ExecuteCode);
     this.Airline.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition1);
     codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CarCondition);
     //
     // Car
     //
     this.Car.Name = "Car";
     this.Car.ExecuteCode += new System.EventHandler(this.Car_ExecuteCode);
     this.Car.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition2);
     //
     // BookingCag
     //
     this.BookingCag.Activities.Add(this.Car);
     this.BookingCag.Activities.Add(this.Airline);
     this.BookingCag.Name = "BookingCag";
     //
     // SimpleConditionedActivityGroupWorkflow
     //
     this.Activities.Add(this.BookingCag);
     this.Name = "SimpleConditionedActivityGroupWorkflow";
     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;
 }
 public void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.PORequest = new System.Workflow.Activities.CodeActivity();
     this.CreditCheckDelay = new System.Workflow.Activities.DelayActivity();
     this.CheckApproval = new System.Workflow.Activities.IfElseActivity();
     this.POCreated = new System.Workflow.Activities.CodeActivity();
     this.Approved = new System.Workflow.Activities.IfElseBranchActivity();
     this.AddApprovalStep = new System.Workflow.Activities.CodeActivity();
     // 
     // PORequest
     // 
     this.PORequest.Name = "PORequest";
     this.PORequest.ExecuteCode += new System.EventHandler(this.OnPORequest);
     // 
     // CreditCheckDelay
     // 
     this.CreditCheckDelay.Name = "CreditCheckDelay";
     this.CreditCheckDelay.TimeoutDuration = System.TimeSpan.Parse("00:00:02");
     this.CreditCheckDelay.InitializeTimeoutDuration += new System.EventHandler(this.OnCreditCheckDelay);
     // 
     // CheckApproval
     // 
     this.CheckApproval.Activities.Add(this.Approved);
     this.CheckApproval.Name = "CheckApproval";
     // 
     // POCreated
     // 
     this.POCreated.Name = "POCreated";
     this.POCreated.ExecuteCode += new System.EventHandler(this.OnPOCreated);
     // 
     // Approved
     // 
     this.Approved.Activities.Add(this.AddApprovalStep);
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AddApprovalStepCondition);
     this.Approved.Condition = codecondition1;
     this.Approved.Name = "Approved";
     // 
     // AddApprovalStep
     // 
     this.AddApprovalStep.Name = "AddApprovalStep";
     this.AddApprovalStep.ExecuteCode += new System.EventHandler(this.OnAddApprovalStep);
     // 
     // DynamicUpdateWorkflow
     // 
     this.Activities.Add(this.PORequest);
     this.Activities.Add(this.CreditCheckDelay);
     this.Activities.Add(this.CheckApproval);
     this.Activities.Add(this.POCreated);
     this.Name = "DynamicUpdateWorkflow";
     this.CanModifyActivities = false;
 }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.WhileLoop = new System.Workflow.Activities.WhileActivity();
            this.Parallel = new System.Workflow.Activities.ParallelActivity();
            this.Sequence1 = new System.Workflow.Activities.SequenceActivity();
            this.Sequence2 = new System.Workflow.Activities.SequenceActivity();
            this.ConsoleMessage1 = new System.Workflow.Activities.CodeActivity();
            this.ConsoleMessage2 = new System.Workflow.Activities.CodeActivity();
            // 
            // WhileLoop
            // 
            this.WhileLoop.Activities.Add(this.Parallel);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.WhileCondition);
            this.WhileLoop.Condition = codecondition1;
            this.WhileLoop.Name = "WhileLoop";
            // 
            // Parallel
            // 
            this.Parallel.Activities.Add(this.Sequence1);
            this.Parallel.Activities.Add(this.Sequence2);
            this.Parallel.Name = "Parallel";
            // 
            // Sequence1
            // 
            this.Sequence1.Activities.Add(this.ConsoleMessage1);
            this.Sequence1.Name = "Sequence1";
            // 
            // Sequence2
            // 
            this.Sequence2.Activities.Add(this.ConsoleMessage2);
            this.Sequence2.Name = "Sequence2";
            // 
            // ConsoleMessage1
            // 
            this.ConsoleMessage1.Name = "ConsoleMessage1";
            this.ConsoleMessage1.ExecuteCode += new System.EventHandler(this.OnConsoleMessage1);
            // 
            // ConsoleMessage2
            // 
            this.ConsoleMessage2.Name = "ConsoleMessage2";
            this.ConsoleMessage2.ExecuteCode += new System.EventHandler(this.OnConsoleMessage2);
            // 
            // WhileAndParallelWorkflow
            // 
            this.Activities.Add(this.WhileLoop);
            this.Name = "WhileAndParallelWorkflow";
            this.CanModifyActivities = false;

        }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.ifElseActivity = new System.Workflow.Activities.IfElseActivity();
            this.approveIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.rejecteIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.approve = new System.Workflow.Activities.CodeActivity();
            this.reject = new System.Workflow.Activities.CodeActivity();
            // 
            // ifElseActivity
            // 
            this.ifElseActivity.Activities.Add(this.approveIfElseBranch);
            this.ifElseActivity.Activities.Add(this.rejecteIfElseBranch);
            this.ifElseActivity.Name = "ifElseActivity";
            // 
            // approveIfElseBranch
            // 
            this.approveIfElseBranch.Activities.Add(this.approve);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsApproved);
            this.approveIfElseBranch.Condition = codecondition1;
            this.approveIfElseBranch.Name = "approveIfElseBranch";
            // 
            // rejecteIfElseBranch
            // 
            this.rejecteIfElseBranch.Activities.Add(this.reject);
            this.rejecteIfElseBranch.Name = "rejecteIfElseBranch";
            // 
            // Approve
            // 
            this.approve.Name = "approve";
            this.approve.ExecuteCode += new System.EventHandler(this.OnApproved);
            // 
            // Reject
            // 
            this.reject.Name = "reject";
            this.reject.ExecuteCode += new System.EventHandler(this.OnRejected);
            // 
            // SequentialWorkflow
            // 
            this.Activities.Add(this.ifElseActivity);
            this.Name = "SequentialWorkflow";
            this.CanModifyActivities = false;

        }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.IsUnderLimitIfElseActivity = new System.Workflow.Activities.IfElseActivity();
            this.YesIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.NoIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.ApprovePO = new System.Workflow.Activities.CodeActivity();
            this.RejectPO = new System.Workflow.Activities.CodeActivity();
            // 
            // IsUnderLimitIfElseActivity
            // 
            this.IsUnderLimitIfElseActivity.Activities.Add(this.YesIfElseBranch);
            this.IsUnderLimitIfElseActivity.Activities.Add(this.NoIfElseBranch);
            this.IsUnderLimitIfElseActivity.Name = "IsUnderLimitIfElseActivity";
            // 
            // YesIfElseBranch
            // 
            this.YesIfElseBranch.Activities.Add(this.ApprovePO);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsUnderLimit);
            this.YesIfElseBranch.Condition = codecondition1;
            this.YesIfElseBranch.Name = "YesIfElseBranch";
            // 
            // NoIfElseBranch
            // 
            this.NoIfElseBranch.Activities.Add(this.RejectPO);
            this.NoIfElseBranch.Name = "NoIfElseBranch";
            // 
            // ApprovePO
            // 
            this.ApprovePO.Name = "ApprovePO";
            this.ApprovePO.ExecuteCode += new System.EventHandler(this.OnApproved);
            // 
            // RejectPO
            // 
            this.RejectPO.Name = "RejectPO";
            this.RejectPO.ExecuteCode += new System.EventHandler(this.OnRejected);
            // 
            // SequentialWorkflow
            // 
            this.Activities.Add(this.IsUnderLimitIfElseActivity);
            this.Name = "SequentialWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 12
0
            public override ValidationErrorCollection Validate(ValidationManager manager, object obj)
            {
                ValidationErrorCollection errors = new ValidationErrorCollection();

                errors.AddRange(base.Validate(manager, obj));
                CodeCondition condition = obj as CodeCondition;

                if (((condition != null) && (condition.GetInvocationList <EventHandler <ConditionalEventArgs> >(CodeCondition.ConditionEvent).Length == 0)) && (condition.GetBinding(CodeCondition.ConditionEvent) == null))
                {
                    Hashtable hashtable = condition.GetValue(WorkflowMarkupSerializer.EventsProperty) as Hashtable;
                    if ((hashtable != null) && (hashtable["Condition"] != null))
                    {
                        return(errors);
                    }
                    errors.Add(ValidationError.GetNotSetValidationError(base.GetFullPropertyName(manager) + ".Condition"));
                }
                return(errors);
            }
        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();
            this.printInput = new System.Workflow.Activities.CodeActivity();
            this.dequeueInput = new Microsoft.Samples.Workflow.SimpleInput.Input();
            this.sequenceActivity = new System.Workflow.Activities.SequenceActivity();
            this.whileActivity = new System.Workflow.Activities.WhileActivity();
            // 
            // printInput
            // 
            this.printInput.Name = "printInput";
            this.printInput.ExecuteCode += new System.EventHandler(this.OnPrintInput);
            // 
            // dequeueInput
            // 
            activitybind1.Name = "SimpleInputWorkflow";
            activitybind1.Path = "Data";
            this.dequeueInput.Name = "dequeueInput";
            this.dequeueInput.Queue = "Queue";
            this.dequeueInput.SetBinding(Microsoft.Samples.Workflow.SimpleInput.Input.DataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // sequenceActivity
            // 
            this.sequenceActivity.Activities.Add(this.dequeueInput);
            this.sequenceActivity.Activities.Add(this.printInput);
            this.sequenceActivity.Name = "sequenceActivity";
            // 
            // whileActivity
            // 
            this.whileActivity.Activities.Add(this.sequenceActivity);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.LoopCondition);
            this.whileActivity.Condition = codecondition1;
            this.whileActivity.Name = "whileActivity";
            // 
            // SimpleInputWorkflow
            // 
            this.Activities.Add(this.whileActivity);
            this.Name = "SimpleInputWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 14
0
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.CheckUser = new System.Workflow.Activities.CodeActivity();
            this.OKActivity = new System.Workflow.Activities.CodeActivity();
            this.whileActivity = new System.Workflow.Activities.WhileActivity();
            this.UserLogin = new System.Workflow.Activities.CodeActivity();
            // 
            // CheckUser
            // 
            this.CheckUser.Name = "CheckUser";
            this.CheckUser.ExecuteCode += new System.EventHandler(this.codeActivity2_ExecuteCode);
            // 
            // OKActivity
            // 
            this.OKActivity.Name = "OKActivity";
            this.OKActivity.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
            // 
            // whileActivity
            // 
            this.whileActivity.Activities.Add(this.CheckUser);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckValidation);
            this.whileActivity.Condition = codecondition1;
            this.whileActivity.Name = "whileActivity";
            // 
            // UserLogin
            // 
            this.UserLogin.Name = "UserLogin";
            this.UserLogin.ExecuteCode += new System.EventHandler(this.UserLogin_ExecuteCode);
            // 
            // myWF
            // 
            this.Activities.Add(this.UserLogin);
            this.Activities.Add(this.whileActivity);
            this.Activities.Add(this.OKActivity);
            this.Name = "myWF";
            this.CanModifyActivities = false;

        }
        	public SimpleWorkFlowDelay ()
		{
			CanModifyActivities = true;
			CodeCondition codecondition1 = new CodeCondition ();
			BackUpFile = new CodeActivity ();
			WhileFilesToBackup = new WhileActivity ();
			DelaySystemReady = new DelayActivity ();

			BackUpFile.ExecuteCode += new EventHandler (BackUpFile_ExecuteCode);

			WhileFilesToBackup.Activities.Add(BackUpFile);
			codecondition1.Condition += new EventHandler <ConditionalEventArgs>(MoreFiles);

			WhileFilesToBackup.Condition =  codecondition1;

			DelaySystemReady.TimeoutDuration = TimeSpan.Parse ("00:00:02");

			Activities.Add (DelaySystemReady);
			Activities.Add (WhileFilesToBackup);
			Name = "SimpleWorkFlowDelay";
			CanModifyActivities = false;
		}
        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();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.finalizeCodeActivity_ShowErrorMessage = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.closeCurrentViewActivity1 = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
            this.finalizeCodeActivity_SaveFile = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity8 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity6 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity5 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity9 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
            this.finishHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.confirmDialogFormActivity1 = new Composite.C1Console.Workflow.Activities.ConfirmDialogFormActivity();
            this.ifElse_IsUploadTypeOk = new System.Workflow.Activities.IfElseActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.dataDialogFormActivity1 = new Composite.C1Console.Workflow.Activities.DataDialogFormActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.initializeCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.confirmOverwriteEventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.confirmOverwriteEventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.confirmOverwriteStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.finalizeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.step1EventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.step1EventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.confirmOverwriteStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
            this.step1StateActivity = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "step1StateActivity";
            // 
            // finalizeCodeActivity_ShowErrorMessage
            // 
            this.finalizeCodeActivity_ShowErrorMessage.Name = "finalizeCodeActivity_ShowErrorMessage";
            this.finalizeCodeActivity_ShowErrorMessage.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_ShowErrorMessage_ExecuteCode);
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // closeCurrentViewActivity1
            // 
            this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
            // 
            // finalizeCodeActivity_SaveFile
            // 
            this.finalizeCodeActivity_SaveFile.Name = "finalizeCodeActivity_SaveFile";
            this.finalizeCodeActivity_SaveFile.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_SaveFile_ExecuteCode);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "finalizeStateActivity";
            // 
            // setStateActivity8
            // 
            this.setStateActivity8.Name = "setStateActivity8";
            this.setStateActivity8.TargetStateName = "confirmOverwriteStateActivity";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.finalizeCodeActivity_ShowErrorMessage);
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity6);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.finalizeCodeActivity_SaveFile);
            this.ifElseBranchActivity1.Activities.Add(this.closeCurrentViewActivity1);
            this.ifElseBranchActivity1.Activities.Add(this.setStateActivity5);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsUploadTypeOk);
            this.ifElseBranchActivity1.Condition = codecondition1;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // ifElseBranchActivity6
            // 
            this.ifElseBranchActivity6.Activities.Add(this.setStateActivity3);
            this.ifElseBranchActivity6.Name = "ifElseBranchActivity6";
            // 
            // ifElseBranchActivity5
            // 
            this.ifElseBranchActivity5.Activities.Add(this.setStateActivity8);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.FileExist);
            this.ifElseBranchActivity5.Condition = codecondition2;
            this.ifElseBranchActivity5.Name = "ifElseBranchActivity5";
            // 
            // setStateActivity9
            // 
            this.setStateActivity9.Name = "setStateActivity9";
            this.setStateActivity9.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity3
            // 
            this.cancelHandleExternalEventActivity3.EventName = "Cancel";
            this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity3.Name = "cancelHandleExternalEventActivity3";
            // 
            // setStateActivity10
            // 
            this.setStateActivity10.Name = "setStateActivity10";
            this.setStateActivity10.TargetStateName = "finalizeStateActivity";
            // 
            // finishHandleExternalEventActivity2
            // 
            this.finishHandleExternalEventActivity2.EventName = "Finish";
            this.finishHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity2.Name = "finishHandleExternalEventActivity2";
            // 
            // confirmDialogFormActivity1
            // 
            this.confirmDialogFormActivity1.ContainerLabel = null;
            this.confirmDialogFormActivity1.FormDefinitionFileName = "/Administrative/WebsiteFileElementProviderUploadNewWebsiteFileConfirm.xml";
            this.confirmDialogFormActivity1.Name = "confirmDialogFormActivity1";
            // 
            // ifElse_IsUploadTypeOk
            // 
            this.ifElse_IsUploadTypeOk.Activities.Add(this.ifElseBranchActivity1);
            this.ifElse_IsUploadTypeOk.Activities.Add(this.ifElseBranchActivity2);
            this.ifElse_IsUploadTypeOk.Name = "ifElse_IsUploadTypeOk";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity2
            // 
            this.cancelHandleExternalEventActivity2.EventName = "Cancel";
            this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity2.Name = "cancelHandleExternalEventActivity2";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity5);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity6);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // finishHandleExternalEventActivity1
            // 
            this.finishHandleExternalEventActivity1.EventName = "Finish";
            this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity1.Name = "finishHandleExternalEventActivity1";
            // 
            // dataDialogFormActivity1
            // 
            this.dataDialogFormActivity1.ContainerLabel = null;
            this.dataDialogFormActivity1.FormDefinitionFileName = "/Administrative/WebsiteFileElementProviderUploadNewWebsiteFile.xml";
            this.dataDialogFormActivity1.Name = "dataDialogFormActivity1";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "step1StateActivity";
            // 
            // initializeCodeActivity_Initialize
            // 
            this.initializeCodeActivity_Initialize.Name = "initializeCodeActivity_Initialize";
            this.initializeCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_Initialize_ExecuteCode);
            // 
            // confirmOverwriteEventDrivenActivity_Cancel
            // 
            this.confirmOverwriteEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
            this.confirmOverwriteEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity9);
            this.confirmOverwriteEventDrivenActivity_Cancel.Name = "confirmOverwriteEventDrivenActivity_Cancel";
            // 
            // confirmOverwriteEventDrivenActivity_Finish
            // 
            this.confirmOverwriteEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity2);
            this.confirmOverwriteEventDrivenActivity_Finish.Activities.Add(this.setStateActivity10);
            this.confirmOverwriteEventDrivenActivity_Finish.Name = "confirmOverwriteEventDrivenActivity_Finish";
            // 
            // confirmOverwriteStateInitializationActivity
            // 
            this.confirmOverwriteStateInitializationActivity.Activities.Add(this.confirmDialogFormActivity1);
            this.confirmOverwriteStateInitializationActivity.Name = "confirmOverwriteStateInitializationActivity";
            // 
            // finalizeStateInitializationActivity
            // 
            this.finalizeStateInitializationActivity.Activities.Add(this.ifElse_IsUploadTypeOk);
            this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
            // 
            // step1EventDrivenActivity_Cancel
            // 
            this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
            this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity4);
            this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
            // 
            // step1EventDrivenActivity_Finish
            // 
            this.step1EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
            this.step1EventDrivenActivity_Finish.Activities.Add(this.ifElseActivity1);
            this.step1EventDrivenActivity_Finish.Name = "step1EventDrivenActivity_Finish";
            // 
            // stateInitializationActivity
            // 
            this.stateInitializationActivity.Activities.Add(this.dataDialogFormActivity1);
            this.stateInitializationActivity.Name = "stateInitializationActivity";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.initializeCodeActivity_Initialize);
            this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity2);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // confirmOverwriteStateActivity
            // 
            this.confirmOverwriteStateActivity.Activities.Add(this.confirmOverwriteStateInitializationActivity);
            this.confirmOverwriteStateActivity.Activities.Add(this.confirmOverwriteEventDrivenActivity_Finish);
            this.confirmOverwriteStateActivity.Activities.Add(this.confirmOverwriteEventDrivenActivity_Cancel);
            this.confirmOverwriteStateActivity.Name = "confirmOverwriteStateActivity";
            // 
            // finalizeStateActivity
            // 
            this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
            this.finalizeStateActivity.Name = "finalizeStateActivity";
            // 
            // step1StateActivity
            // 
            this.step1StateActivity.Activities.Add(this.stateInitializationActivity);
            this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Finish);
            this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
            this.step1StateActivity.Name = "step1StateActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // UploadWebsiteFileWorkflow
            // 
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.step1StateActivity);
            this.Activities.Add(this.finalizeStateActivity);
            this.Activities.Add(this.confirmOverwriteStateActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "UploadWebsiteFileWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 17
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.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.ReportError_ZadaniePrzezKK = new System.Workflow.Activities.CodeActivity();
     this.ReportError_Zadanie        = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity1      = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.faultHandlerActivity2      = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.logToHistoryListActivity9  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlersActivity2     = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.Update_KK_Zadania          = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity7  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlersActivity3     = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.Update_Zadanie             = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity5  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Else4                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.Zadanie_przez_KK          = new System.Workflow.Activities.IfElseBranchActivity();
     this.Zadanie_bezposrednio      = new System.Workflow.Activities.IfElseBranchActivity();
     this.logNie_wysłana            = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ifElseActivity1           = new System.Workflow.Activities.IfElseActivity();
     this.logWysłana                = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Else3                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifMessageSent             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ReportError               = new System.Workflow.Activities.CodeActivity();
     this.Jeżeli_wyłana             = new System.Workflow.Activities.IfElseActivity();
     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.faultObslugaWiadomosci    = 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.logEnd                       = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.CzyWiadomośćWysłana          = new System.Workflow.Activities.IfElseActivity();
     this.logToHistoryListActivity2    = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Ignoruj_status_wysyłki       = new System.Workflow.Activities.CodeActivity();
     this.onWorkflowActivated1         = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // ReportError_ZadaniePrzezKK
     //
     this.ReportError_ZadaniePrzezKK.Name         = "ReportError_ZadaniePrzezKK";
     this.ReportError_ZadaniePrzezKK.ExecuteCode += new System.EventHandler(this.ReportError_ExecuteCode);
     //
     // ReportError_Zadanie
     //
     this.ReportError_Zadanie.Name         = "ReportError_Zadanie";
     this.ReportError_Zadanie.ExecuteCode += new System.EventHandler(this.ReportError_ExecuteCode);
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.ReportError_ZadaniePrzezKK);
     this.faultHandlerActivity1.FaultType = typeof(System.Exception);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // faultHandlerActivity2
     //
     this.faultHandlerActivity2.Activities.Add(this.ReportError_Zadanie);
     this.faultHandlerActivity2.FaultType = typeof(System.Exception);
     this.faultHandlerActivity2.Name      = "faultHandlerActivity2";
     //
     // logToHistoryListActivity9
     //
     this.logToHistoryListActivity9.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity9.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity9.HistoryDescription = "Brak powiązanych kartotek do obsługi";
     this.logToHistoryListActivity9.HistoryOutcome     = "";
     this.logToHistoryListActivity9.Name      = "logToHistoryListActivity9";
     this.logToHistoryListActivity9.OtherData = "";
     this.logToHistoryListActivity9.UserId    = -1;
     //
     // faultHandlersActivity2
     //
     this.faultHandlersActivity2.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity2.Name = "faultHandlersActivity2";
     //
     // Update_KK_Zadania
     //
     this.Update_KK_Zadania.Name         = "Update_KK_Zadania";
     this.Update_KK_Zadania.ExecuteCode += new System.EventHandler(this.Update_KK_Zadania_ExecuteCode);
     //
     // logToHistoryListActivity7
     //
     this.logToHistoryListActivity7.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity7.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity7.HistoryDescription = "Aktualizacja kart kontrolnych i zadań powiązanych";
     this.logToHistoryListActivity7.HistoryOutcome     = "";
     this.logToHistoryListActivity7.Name      = "logToHistoryListActivity7";
     this.logToHistoryListActivity7.OtherData = "";
     this.logToHistoryListActivity7.UserId    = -1;
     //
     // faultHandlersActivity3
     //
     this.faultHandlersActivity3.Activities.Add(this.faultHandlerActivity2);
     this.faultHandlersActivity3.Name = "faultHandlersActivity3";
     //
     // Update_Zadanie
     //
     this.Update_Zadanie.Name         = "Update_Zadanie";
     this.Update_Zadanie.ExecuteCode += new System.EventHandler(this.Update_Zadanie_ExecuteCode);
     //
     // logToHistoryListActivity5
     //
     this.logToHistoryListActivity5.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity5.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity5.HistoryDescription = "Aktualizacja zadania";
     this.logToHistoryListActivity5.HistoryOutcome     = "";
     this.logToHistoryListActivity5.Name      = "logToHistoryListActivity5";
     this.logToHistoryListActivity5.OtherData = "";
     this.logToHistoryListActivity5.UserId    = -1;
     //
     // Else4
     //
     this.Else4.Activities.Add(this.logToHistoryListActivity9);
     this.Else4.Name = "Else4";
     //
     // Zadanie_przez_KK
     //
     this.Zadanie_przez_KK.Activities.Add(this.logToHistoryListActivity7);
     this.Zadanie_przez_KK.Activities.Add(this.Update_KK_Zadania);
     this.Zadanie_przez_KK.Activities.Add(this.faultHandlersActivity2);
     codecondition1.Condition       += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isKartaKontrolnaToBeUpdated);
     this.Zadanie_przez_KK.Condition = codecondition1;
     this.Zadanie_przez_KK.Name      = "Zadanie_przez_KK";
     //
     // Zadanie_bezposrednio
     //
     this.Zadanie_bezposrednio.Activities.Add(this.logToHistoryListActivity5);
     this.Zadanie_bezposrednio.Activities.Add(this.Update_Zadanie);
     this.Zadanie_bezposrednio.Activities.Add(this.faultHandlersActivity3);
     codecondition2.Condition           += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.IsZadanieToBeUpdated);
     this.Zadanie_bezposrednio.Condition = codecondition2;
     this.Zadanie_bezposrednio.Name      = "Zadanie_bezposrednio";
     //
     // logNie_wysłana
     //
     this.logNie_wysłana.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logNie_wysłana.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logNie_wysłana.HistoryDescription = "Wiadomość NIE wysłana";
     this.logNie_wysłana.HistoryOutcome     = "";
     this.logNie_wysłana.Name      = "logNie_wysłana";
     this.logNie_wysłana.OtherData = "";
     this.logNie_wysłana.UserId    = -1;
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.Zadanie_bezposrednio);
     this.ifElseActivity1.Activities.Add(this.Zadanie_przez_KK);
     this.ifElseActivity1.Activities.Add(this.Else4);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // logWysłana
     //
     this.logWysłana.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logWysłana.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logWysłana.HistoryDescription = "Wiadomość wysłana";
     this.logWysłana.HistoryOutcome     = "";
     this.logWysłana.Name      = "logWysłana";
     this.logWysłana.OtherData = "";
     this.logWysłana.UserId    = -1;
     //
     // Else3
     //
     this.Else3.Activities.Add(this.logNie_wysłana);
     this.Else3.Name = "Else3";
     //
     // ifMessageSent
     //
     this.ifMessageSent.Activities.Add(this.logWysłana);
     this.ifMessageSent.Activities.Add(this.ifElseActivity1);
     codecondition3.Condition    += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isWiadomoscWyslana);
     this.ifMessageSent.Condition = codecondition3;
     this.ifMessageSent.Name      = "ifMessageSent";
     //
     // ReportError
     //
     this.ReportError.Name         = "ReportError";
     this.ReportError.ExecuteCode += new System.EventHandler(this.ReportError_ExecuteCode);
     //
     // Jeżeli_wyłana
     //
     this.Jeżeli_wyłana.Activities.Add(this.ifMessageSent);
     this.Jeżeli_wyłana.Activities.Add(this.Else3);
     this.Jeżeli_wyłana.Name = "Jeżeli_wyłana";
     //
     // 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;
     //
     // faultObslugaWiadomosci
     //
     this.faultObslugaWiadomosci.Activities.Add(this.ReportError);
     this.faultObslugaWiadomosci.FaultType = typeof(System.Exception);
     this.faultObslugaWiadomosci.Name      = "faultObslugaWiadomosci";
     //
     // 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.Jeżeli_wyłana);
     this.Else.Name = "Else";
     //
     // isMailSent
     //
     this.isMailSent.Activities.Add(this.logToHistoryListActivity1);
     codecondition4.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isFlagaWysłanoUstawiona);
     this.isMailSent.Condition = codecondition4;
     this.isMailSent.Name      = "isMailSent";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultObslugaWiadomosci);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // cancellationHandlerActivity1
     //
     this.cancellationHandlerActivity1.Name = "cancellationHandlerActivity1";
     //
     // logEnd
     //
     this.logEnd.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logEnd.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logEnd.HistoryDescription = "Zakończony";
     this.logEnd.HistoryOutcome     = "";
     this.logEnd.Name      = "logEnd";
     this.logEnd.OtherData = "";
     this.logEnd.UserId    = -1;
     //
     // 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;
     //
     // Ignoruj_status_wysyłki
     //
     this.Ignoruj_status_wysyłki.Enabled      = false;
     this.Ignoruj_status_wysyłki.Name         = "Ignoruj_status_wysyłki";
     this.Ignoruj_status_wysyłki.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
     activitybind2.Name = "ObslugaWiadomosci";
     activitybind2.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "ObslugaWiadomosci";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind1.Name = "ObslugaWiadomosci";
     activitybind1.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)(activitybind2)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // ObslugaWiadomosci
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.Ignoruj_status_wysyłki);
     this.Activities.Add(this.logToHistoryListActivity2);
     this.Activities.Add(this.CzyWiadomośćWysłana);
     this.Activities.Add(this.logEnd);
     this.Activities.Add(this.cancellationHandlerActivity1);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "ObslugaWiadomosci";
     this.CanModifyActivities = false;
 }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.faultHandlersActivity1             = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.setStateActivity6                  = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity5                  = new System.Workflow.Activities.SetStateActivity();
     this.savePackageCodeActivity            = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity2              = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1              = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity1                    = new System.Workflow.Activities.IfElseActivity();
     this.nextHandleExternalEventActivity2   = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.setStateActivity4                  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.wizardFormActivity1                = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.packageInfoCodeActivity            = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity2                  = new System.Workflow.Activities.SetStateActivity();
     this.NextDrivenActivity1                = new System.Workflow.Activities.EventDrivenActivity();
     this.CancelDrivenActivity2              = new System.Workflow.Activities.EventDrivenActivity();
     this.packageInfoInitialization          = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.stateInitializationActivity        = new System.Workflow.Activities.StateInitializationActivity();
     this.packageInfoState                   = new System.Workflow.Activities.StateActivity();
     this.globalCancelEventDrivenActivity    = new System.Workflow.Activities.EventDrivenActivity();
     this.finalState          = new System.Workflow.Activities.StateActivity();
     this.initializationState = new System.Workflow.Activities.StateActivity();
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "packageInfoState";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finalState";
     //
     // savePackageCodeActivity
     //
     this.savePackageCodeActivity.Name         = "savePackageCodeActivity";
     this.savePackageCodeActivity.ExecuteCode += new System.EventHandler(this.saveInfoCodeActivity_ExecuteCode);
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity6);
     this.ifElseBranchActivity2.Activities.Add(this.faultHandlersActivity1);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.savePackageCodeActivity);
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity5);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateSave);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // nextHandleExternalEventActivity2
     //
     this.nextHandleExternalEventActivity2.EventName     = "Next";
     this.nextHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity2.Name          = "nextHandleExternalEventActivity2";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalState";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // wizardFormActivity1
     //
     this.wizardFormActivity1.ContainerLabel         = null;
     this.wizardFormActivity1.FormDefinitionFileName = "\\InstalledPackages\\Composite.Tools.PackageCreator\\CreatePackage.xml";
     this.wizardFormActivity1.Name = "wizardFormActivity1";
     //
     // packageInfoCodeActivity
     //
     this.packageInfoCodeActivity.Name         = "packageInfoCodeActivity";
     this.packageInfoCodeActivity.ExecuteCode += new System.EventHandler(this.packageInfoCodeActivity_ExecuteCode);
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "packageInfoState";
     //
     // NextDrivenActivity1
     //
     this.NextDrivenActivity1.Activities.Add(this.nextHandleExternalEventActivity2);
     this.NextDrivenActivity1.Activities.Add(this.ifElseActivity1);
     this.NextDrivenActivity1.Name = "NextDrivenActivity1";
     //
     // CancelDrivenActivity2
     //
     this.CancelDrivenActivity2.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.CancelDrivenActivity2.Activities.Add(this.setStateActivity4);
     this.CancelDrivenActivity2.Name = "CancelDrivenActivity2";
     //
     // packageInfoInitialization
     //
     this.packageInfoInitialization.Activities.Add(this.packageInfoCodeActivity);
     this.packageInfoInitialization.Activities.Add(this.wizardFormActivity1);
     this.packageInfoInitialization.Name = "packageInfoInitialization";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalState";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // stateInitializationActivity
     //
     this.stateInitializationActivity.Activities.Add(this.setStateActivity2);
     this.stateInitializationActivity.Name = "stateInitializationActivity";
     //
     // packageInfoState
     //
     this.packageInfoState.Activities.Add(this.packageInfoInitialization);
     this.packageInfoState.Activities.Add(this.CancelDrivenActivity2);
     this.packageInfoState.Activities.Add(this.NextDrivenActivity1);
     this.packageInfoState.Name = "packageInfoState";
     //
     // globalCancelEventDrivenActivity
     //
     this.globalCancelEventDrivenActivity.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.globalCancelEventDrivenActivity.Activities.Add(this.setStateActivity1);
     this.globalCancelEventDrivenActivity.Name = "globalCancelEventDrivenActivity";
     //
     // finalState
     //
     this.finalState.Name = "finalState";
     //
     // initializationState
     //
     this.initializationState.Activities.Add(this.stateInitializationActivity);
     this.initializationState.Name = "initializationState";
     //
     // CreatePackageWorkflow
     //
     this.Activities.Add(this.initializationState);
     this.Activities.Add(this.finalState);
     this.Activities.Add(this.globalCancelEventDrivenActivity);
     this.Activities.Add(this.packageInfoState);
     this.CompletedStateName     = "finalState";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializationState";
     this.Name = "CreatePackageWorkflow";
     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.Activities.Rules.RuleConditionReference ruleconditionreference1   = new System.Workflow.Activities.Rules.RuleConditionReference();
     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.ComponentModel.ActivityBind             activitybind10            = 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.SuspendSaveAsDraft      = new Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend();
     this.ifElseBranchActivity2   = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfSaveAsDraftAndAllowed = new System.Workflow.Activities.IfElseBranchActivity();
     this.TimeoutException        = new System.Workflow.Activities.DelayActivity();
     this.EvaluateSaveAsDraft     = new System.Workflow.Activities.IfElseActivity();
     this.FormResponse            = new System.Workflow.Activities.HandleExternalEventActivity();
     this.ResponseTimeout         = new System.Workflow.Activities.EventDrivenActivity();
     this.ReceiveFormResponse     = new System.Workflow.Activities.EventDrivenActivity();
     this.ListenForResponse       = new System.Workflow.Activities.ListenActivity();
     this.FormRequest             = new System.Workflow.Activities.CallExternalMethodActivity();
     this.RequestResponseSequence = new System.Workflow.Activities.SequenceActivity();
     this.WhileWaitingForForm     = new System.Workflow.Activities.WhileActivity();
     this.InitializeActivity      = new System.Workflow.Activities.CodeActivity();
     //
     // SuspendSaveAsDraft
     //
     activitybind1.Name = "RequireForm";
     activitybind1.Path = "Application";
     this.SuspendSaveAsDraft.ConstraintDays = 0;
     this.SuspendSaveAsDraft.MilestoneDays  = 0;
     this.SuspendSaveAsDraft.Name           = "SuspendSaveAsDraft";
     activitybind2.Name = "RequireForm";
     activitybind2.Path = "WorkQueueItemReleaseOnSuspend";
     this.SuspendSaveAsDraft.Success = false;
     activitybind3.Name = "RequireForm";
     activitybind3.Path = "SuspendMessage";
     activitybind4.Name = "RequireForm";
     activitybind4.Path = "FormName";
     activitybind5.Name = "RequireForm";
     activitybind5.Path = "FormName";
     activitybind6.Name = "RequireForm";
     activitybind6.Path = "WorkflowSteps";
     activitybind7.Name = "RequireForm";
     activitybind7.Path = "WorkQueueItem";
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.ApplicationProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.SuspendMessageProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.WorkflowLastStepProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.WorkflowNextStepProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.WorkflowStepsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.WorkQueueItemProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     this.SuspendSaveAsDraft.SetBinding(Mercury.Workflows.ActivityLibrary.WorkQueueItemSuspend.ReleaseItemProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // IfSaveAsDraftAndAllowed
     //
     this.IfSaveAsDraftAndAllowed.Activities.Add(this.SuspendSaveAsDraft);
     ruleconditionreference1.ConditionName  = "SaveAsDraftAndAllowed";
     this.IfSaveAsDraftAndAllowed.Condition = ruleconditionreference1;
     this.IfSaveAsDraftAndAllowed.Name      = "IfSaveAsDraftAndAllowed";
     //
     // TimeoutException
     //
     this.TimeoutException.Name            = "TimeoutException";
     this.TimeoutException.TimeoutDuration = System.TimeSpan.Parse("23:59:59");
     //
     // EvaluateSaveAsDraft
     //
     this.EvaluateSaveAsDraft.Activities.Add(this.IfSaveAsDraftAndAllowed);
     this.EvaluateSaveAsDraft.Activities.Add(this.ifElseBranchActivity2);
     this.EvaluateSaveAsDraft.Name = "EvaluateSaveAsDraft";
     //
     // FormResponse
     //
     this.FormResponse.EventName     = "OnUserInteractionResponse";
     this.FormResponse.InterfaceType = typeof(Mercury.Server.Workflows.IWorkflowService);
     this.FormResponse.Name          = "FormResponse";
     activitybind8.Name = "RequireForm";
     activitybind8.Path = "Application";
     workflowparameterbinding1.ParameterName = "sender";
     workflowparameterbinding1.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     activitybind9.Name = "RequireForm";
     activitybind9.Path = "UserInteractionResponseEventArgs";
     workflowparameterbinding2.ParameterName = "e";
     workflowparameterbinding2.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     this.FormResponse.ParameterBindings.Add(workflowparameterbinding1);
     this.FormResponse.ParameterBindings.Add(workflowparameterbinding2);
     this.FormResponse.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs> (this.FormResponse_OnInvoking);
     //
     // ResponseTimeout
     //
     this.ResponseTimeout.Activities.Add(this.TimeoutException);
     this.ResponseTimeout.Name = "ResponseTimeout";
     //
     // ReceiveFormResponse
     //
     this.ReceiveFormResponse.Activities.Add(this.FormResponse);
     this.ReceiveFormResponse.Activities.Add(this.EvaluateSaveAsDraft);
     this.ReceiveFormResponse.Name = "ReceiveFormResponse";
     //
     // ListenForResponse
     //
     this.ListenForResponse.Activities.Add(this.ReceiveFormResponse);
     this.ListenForResponse.Activities.Add(this.ResponseTimeout);
     this.ListenForResponse.Name = "ListenForResponse";
     //
     // FormRequest
     //
     this.FormRequest.InterfaceType          = typeof(Mercury.Server.Workflows.IWorkflowService);
     this.FormRequest.MethodName             = "UserInteractionRequest";
     this.FormRequest.Name                   = "FormRequest";
     activitybind10.Name                     = "RequireForm";
     activitybind10.Path                     = "UserInteractionRequest";
     workflowparameterbinding3.ParameterName = "request";
     workflowparameterbinding3.SetBinding(System.Workflow.ComponentModel.WorkflowParameterBinding.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.FormRequest.ParameterBindings.Add(workflowparameterbinding3);
     this.FormRequest.MethodInvoking += new System.EventHandler(this.FormRequest_OnInvoking);
     //
     // RequestResponseSequence
     //
     this.RequestResponseSequence.Activities.Add(this.FormRequest);
     this.RequestResponseSequence.Activities.Add(this.ListenForResponse);
     this.RequestResponseSequence.Name = "RequestResponseSequence";
     //
     // WhileWaitingForForm
     //
     this.WhileWaitingForForm.Activities.Add(this.RequestResponseSequence);
     codecondition1.Condition          += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs> (this.WhileWaitingForForm_OnEvaluation);
     this.WhileWaitingForForm.Condition = codecondition1;
     this.WhileWaitingForForm.Name      = "WhileWaitingForForm";
     //
     // InitializeActivity
     //
     this.InitializeActivity.Name         = "InitializeActivity";
     this.InitializeActivity.ExecuteCode += new System.EventHandler(this.InitializeActivity_OnExecuteCode);
     //
     // RequireForm
     //
     this.Activities.Add(this.InitializeActivity);
     this.Activities.Add(this.WhileWaitingForForm);
     this.Name = "RequireForm";
     this.CanModifyActivities = false;
 }
Esempio n. 20
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.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;
 }
Esempio n. 21
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 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.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();
     this.ReadResponse           = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
     this.ReadEnumeratedApproval = new System.Workflow.Activities.CodeActivity();
     this.Read = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
     this.ResolveParentRequest    = new System.Workflow.Activities.CodeActivity();
     this.ReadParentRequest       = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
     this.ResolveRequestParameter = new System.Workflow.Activities.CodeActivity();
     this.ResolveStandard2        = new Microsoft.ResourceManagement.Workflow.Activities.ResolveGrammarActivity();
     this.ResolveStandard         = new Microsoft.ResourceManagement.Workflow.Activities.ResolveGrammarActivity();
     this.ResolveApprovers        = new System.Workflow.Activities.CodeActivity();
     this.ForEachResponse         = new System.Workflow.Activities.ReplicatorActivity();
     this.FindApprovals           = new Microsoft.ResourceManagement.Workflow.Activities.EnumerateResourcesActivity();
     this.ResolveComparedRequest  = new System.Workflow.Activities.CodeActivity();
     this.ReadComparedRequest     = new Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity();
     this.ForEachResource         = new System.Workflow.Activities.ReplicatorActivity();
     this.CompositeRequest        = new System.Workflow.Activities.IfElseBranchActivity();
     this.RequestParameter        = new System.Workflow.Activities.IfElseBranchActivity();
     this.Approvers                  = new System.Workflow.Activities.IfElseBranchActivity();
     this.ComparedRequest            = new System.Workflow.Activities.IfElseBranchActivity();
     this.PerformRead                = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfCompositeRequest         = new System.Workflow.Activities.IfElseActivity();
     this.IfRequestParameter         = new System.Workflow.Activities.IfElseActivity();
     this.IfApprovers                = new System.Workflow.Activities.IfElseActivity();
     this.IfComparedRequest          = new System.Workflow.Activities.IfElseActivity();
     this.IfPerformRead              = new System.Workflow.Activities.IfElseActivity();
     this.CompositeRequestResolution = new System.Workflow.Activities.SequenceActivity();
     this.RequestParameterResolution = new System.Workflow.Activities.SequenceActivity();
     this.ApproversResolution        = new System.Workflow.Activities.SequenceActivity();
     this.ComparedRequestResolution  = new System.Workflow.Activities.SequenceActivity();
     this.Resolve     = new System.Workflow.Activities.CodeActivity();
     this.ForEachRead = new System.Workflow.Activities.ReplicatorActivity();
     this.SpecialParameterResolution = new System.Workflow.Activities.ParallelActivity();
     this.Prepare = new System.Workflow.Activities.CodeActivity();
     this.Request = new Microsoft.ResourceManagement.Workflow.Activities.CurrentRequestActivity();
     //
     // ReadResponse
     //
     activitybind1.Name                    = "ResolveLookups";
     activitybind1.Path                    = "ServiceActor";
     this.ReadResponse.Name                = "ReadResponse";
     this.ReadResponse.Resource            = null;
     activitybind2.Name                    = "ResolveLookups";
     activitybind2.Path                    = "ApprovalResponse";
     this.ReadResponse.SelectionAttributes = new string[] {
         "ObjectID",
         "Creator",
         "CreatedTime",
         "Decision"
     };
     this.ReadResponse.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ResourceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.ReadResponse.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // ReadEnumeratedApproval
     //
     this.ReadEnumeratedApproval.Name         = "ReadEnumeratedApproval";
     this.ReadEnumeratedApproval.ExecuteCode += new System.EventHandler(this.ReadEnumeratedApproval_ExecuteCode);
     //
     // Read
     //
     activitybind3.Name = "ResolveLookups";
     activitybind3.Path = "ServiceActor";
     this.Read.Name     = "Read";
     this.Read.Resource = null;
     activitybind4.Name = "ResolveLookups";
     activitybind4.Path = "ReadResource";
     activitybind5.Name = "ResolveLookups";
     activitybind5.Path = "ReadAttributes";
     this.Read.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     this.Read.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ResourceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.Read.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.SelectionAttributesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // ResolveParentRequest
     //
     this.ResolveParentRequest.Name         = "ResolveParentRequest";
     this.ResolveParentRequest.ExecuteCode += new System.EventHandler(this.ResolveParentRequest_ExecuteCode);
     //
     // ReadParentRequest
     //
     activitybind6.Name                         = "ResolveLookups";
     activitybind6.Path                         = "ServiceActor";
     this.ReadParentRequest.Name                = "ReadParentRequest";
     this.ReadParentRequest.Resource            = null;
     activitybind7.Name                         = "ResolveLookups";
     activitybind7.Path                         = "ParentRequest";
     this.ReadParentRequest.SelectionAttributes = new string[] {
         "ObjectID",
         "Operation",
         "RequestParameter"
     };
     this.ReadParentRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.ReadParentRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ResourceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // ResolveRequestParameter
     //
     this.ResolveRequestParameter.Name         = "ResolveRequestParameter";
     this.ResolveRequestParameter.ExecuteCode += new System.EventHandler(this.ResolveRequestParameter_ExecuteCode);
     //
     // ResolveStandard2
     //
     this.ResolveStandard2.GrammarExpression = "[//RequestParameter/AllChangesActionTable]";
     this.ResolveStandard2.Name = "ResolveStandard2";
     this.ResolveStandard2.ResolvedExpression    = null;
     this.ResolveStandard2.WorkflowDictionaryKey = null;
     //
     // ResolveStandard
     //
     this.ResolveStandard.GrammarExpression = "[//RequestParameter/AllChangesAuthorizationTable]";
     this.ResolveStandard.Name = "ResolveStandard";
     this.ResolveStandard.ResolvedExpression    = null;
     this.ResolveStandard.WorkflowDictionaryKey = null;
     //
     // ResolveApprovers
     //
     this.ResolveApprovers.Name         = "ResolveApprovers";
     this.ResolveApprovers.ExecuteCode += new System.EventHandler(this.ResolveApprovers_ExecuteCode);
     activitybind8.Name = "ResolveLookups";
     activitybind8.Path = "ApprovalResponses";
     //
     // ForEachResponse
     //
     this.ForEachResponse.Activities.Add(this.ReadResponse);
     this.ForEachResponse.ExecutionType     = System.Workflow.Activities.ExecutionType.Sequence;
     this.ForEachResponse.Name              = "ForEachResponse";
     this.ForEachResponse.ChildInitialized += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachResponse_ChildInitialized);
     this.ForEachResponse.ChildCompleted   += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachResponse_ChildCompleted);
     this.ForEachResponse.SetBinding(System.Workflow.Activities.ReplicatorActivity.InitialChildDataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     //
     // FindApprovals
     //
     this.FindApprovals.Activities.Add(this.ReadEnumeratedApproval);
     activitybind9.Name           = "ResolveLookups";
     activitybind9.Path           = "ServiceActor";
     this.FindApprovals.Name      = "FindApprovals";
     this.FindApprovals.PageSize  = 100;
     this.FindApprovals.Selection = new string[] {
         "ObjectID",
         "ApprovalResponse"
     };
     this.FindApprovals.SortingAttributes = null;
     this.FindApprovals.TotalResultsCount = 0;
     this.FindApprovals.XPathFilter       = null;
     this.FindApprovals.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.EnumerateResourcesActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     //
     // ResolveComparedRequest
     //
     this.ResolveComparedRequest.Name         = "ResolveComparedRequest";
     this.ResolveComparedRequest.ExecuteCode += new System.EventHandler(this.ResolveComparedRequest_ExecuteCode);
     //
     // ReadComparedRequest
     //
     activitybind10.Name                          = "ResolveLookups";
     activitybind10.Path                          = "ServiceActor";
     this.ReadComparedRequest.Name                = "ReadComparedRequest";
     this.ReadComparedRequest.Resource            = null;
     activitybind11.Name                          = "ResolveLookups";
     activitybind11.Path                          = "ComparedRequestId";
     this.ReadComparedRequest.SelectionAttributes = new string[] {
         "ObjectID",
         "Operation",
         "RequestParameter"
     };
     this.ReadComparedRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ActorIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.ReadComparedRequest.SetBinding(Microsoft.ResourceManagement.Workflow.Activities.ReadResourceActivity.ResourceIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     activitybind12.Name = "ResolveLookups";
     activitybind12.Path = "ReadResources";
     //
     // ForEachResource
     //
     this.ForEachResource.Activities.Add(this.Read);
     this.ForEachResource.ExecutionType     = System.Workflow.Activities.ExecutionType.Sequence;
     this.ForEachResource.Name              = "ForEachResource";
     this.ForEachResource.ChildInitialized += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachResource_ChildInitialized);
     this.ForEachResource.ChildCompleted   += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachResource_ChildCompleted);
     this.ForEachResource.SetBinding(System.Workflow.Activities.ReplicatorActivity.InitialChildDataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     //
     // CompositeRequest
     //
     this.CompositeRequest.Activities.Add(this.ReadParentRequest);
     this.CompositeRequest.Activities.Add(this.ResolveParentRequest);
     codecondition1.Condition       += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CompositeRequest_Condition);
     this.CompositeRequest.Condition = codecondition1;
     this.CompositeRequest.Name      = "CompositeRequest";
     //
     // RequestParameter
     //
     this.RequestParameter.Activities.Add(this.ResolveStandard);
     this.RequestParameter.Activities.Add(this.ResolveStandard2);
     this.RequestParameter.Activities.Add(this.ResolveRequestParameter);
     codecondition2.Condition       += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.RequestParameter_Condition);
     this.RequestParameter.Condition = codecondition2;
     this.RequestParameter.Name      = "RequestParameter";
     //
     // Approvers
     //
     this.Approvers.Activities.Add(this.FindApprovals);
     this.Approvers.Activities.Add(this.ForEachResponse);
     this.Approvers.Activities.Add(this.ResolveApprovers);
     codecondition3.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.Approvers_Condition);
     this.Approvers.Condition  = codecondition3;
     this.Approvers.Name       = "Approvers";
     //
     // ComparedRequest
     //
     this.ComparedRequest.Activities.Add(this.ReadComparedRequest);
     this.ComparedRequest.Activities.Add(this.ResolveComparedRequest);
     codecondition4.Condition      += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ComparedRequest_Condition);
     this.ComparedRequest.Condition = codecondition4;
     this.ComparedRequest.Name      = "ComparedRequest";
     //
     // PerformRead
     //
     this.PerformRead.Activities.Add(this.ForEachResource);
     codecondition5.Condition  += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.PerformRead_Condition);
     this.PerformRead.Condition = codecondition5;
     this.PerformRead.Name      = "PerformRead";
     //
     // IfCompositeRequest
     //
     this.IfCompositeRequest.Activities.Add(this.CompositeRequest);
     this.IfCompositeRequest.Name = "IfCompositeRequest";
     //
     // IfRequestParameter
     //
     this.IfRequestParameter.Activities.Add(this.RequestParameter);
     this.IfRequestParameter.Name = "IfRequestParameter";
     //
     // IfApprovers
     //
     this.IfApprovers.Activities.Add(this.Approvers);
     this.IfApprovers.Name = "IfApprovers";
     //
     // IfComparedRequest
     //
     this.IfComparedRequest.Activities.Add(this.ComparedRequest);
     this.IfComparedRequest.Name = "IfComparedRequest";
     //
     // IfPerformRead
     //
     this.IfPerformRead.Activities.Add(this.PerformRead);
     this.IfPerformRead.Name = "IfPerformRead";
     //
     // CompositeRequestResolution
     //
     this.CompositeRequestResolution.Activities.Add(this.IfCompositeRequest);
     this.CompositeRequestResolution.Name = "CompositeRequestResolution";
     //
     // RequestParameterResolution
     //
     this.RequestParameterResolution.Activities.Add(this.IfRequestParameter);
     this.RequestParameterResolution.Name = "RequestParameterResolution";
     //
     // ApproversResolution
     //
     this.ApproversResolution.Activities.Add(this.IfApprovers);
     this.ApproversResolution.Name = "ApproversResolution";
     //
     // ComparedRequestResolution
     //
     this.ComparedRequestResolution.Activities.Add(this.IfComparedRequest);
     this.ComparedRequestResolution.Name = "ComparedRequestResolution";
     //
     // Resolve
     //
     this.Resolve.Name         = "Resolve";
     this.Resolve.ExecuteCode += new System.EventHandler(this.Resolve_ExecuteCode);
     //
     // ForEachRead
     //
     this.ForEachRead.Activities.Add(this.IfPerformRead);
     this.ForEachRead.ExecutionType     = System.Workflow.Activities.ExecutionType.Sequence;
     this.ForEachRead.Name              = "ForEachRead";
     this.ForEachRead.ChildInitialized += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachRead_ChildInitialized);
     //
     // SpecialParameterResolution
     //
     this.SpecialParameterResolution.Activities.Add(this.ComparedRequestResolution);
     this.SpecialParameterResolution.Activities.Add(this.ApproversResolution);
     this.SpecialParameterResolution.Activities.Add(this.RequestParameterResolution);
     this.SpecialParameterResolution.Activities.Add(this.CompositeRequestResolution);
     this.SpecialParameterResolution.Name = "SpecialParameterResolution";
     //
     // Prepare
     //
     this.Prepare.Name         = "Prepare";
     this.Prepare.ExecuteCode += new System.EventHandler(this.Prepare_ExecuteCode);
     //
     // Request
     //
     this.Request.CurrentRequest = null;
     this.Request.Name           = "Request";
     //
     // ResolveLookups
     //
     this.Activities.Add(this.Request);
     this.Activities.Add(this.Prepare);
     this.Activities.Add(this.SpecialParameterResolution);
     this.Activities.Add(this.ForEachRead);
     this.Activities.Add(this.Resolve);
     this.Name = "ResolveLookups";
     this.CanModifyActivities = false;
 }
Esempio n. 22
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();
     this.setStateActivity9                     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity6                     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity4                     = new System.Workflow.Activities.SetStateActivity();
     this.step2WizardFormActivity               = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.ifElseBranchActivity6                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity5                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity2                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity8                     = new System.Workflow.Activities.SetStateActivity();
     this.step3CodeActivity_RefreshTree         = new System.Workflow.Activities.CodeActivity();
     this.closeCurrentViewActivity1             = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.finishHandleExternalEventActivity2    = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.step3WizardFormActivity               = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity5                     = new System.Workflow.Activities.SetStateActivity();
     this.finishHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.showErrorWizardFormActivity           = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.showErrorCodeActivity_Initialize      = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity10                    = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity3    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step2IfElseActivity_DidValidate       = new System.Workflow.Activities.IfElseActivity();
     this.step2CodeActivity_Uninstall           = new System.Workflow.Activities.CodeActivity();
     this.nextHandleExternalEventActivity2      = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.step2IfElseActivity_DidValidate_Old   = new System.Workflow.Activities.IfElseActivity();
     this.step2CodeActivity_Validate            = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity7                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.setStateActivity3                     = new System.Workflow.Activities.SetStateActivity();
     this.nextHandleExternalEventActivity1      = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.step1WizardFormActivity               = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity2                     = new System.Workflow.Activities.SetStateActivity();
     this.step3EventDrivenActivity_Finish       = new System.Workflow.Activities.EventDrivenActivity();
     this.step3StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.showErrorEventDrivenActivity_Finish   = new System.Workflow.Activities.EventDrivenActivity();
     this.showErrorStateInitializationActivity  = new System.Workflow.Activities.StateInitializationActivity();
     this.step2EventDrivenActivity_Cancel       = new System.Workflow.Activities.EventDrivenActivity();
     this.step2EventDrivenActivity_Next         = new System.Workflow.Activities.EventDrivenActivity();
     this.step2StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.step1EventDrivenActivity_Cancel       = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Next         = new System.Workflow.Activities.EventDrivenActivity();
     this.step1StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step3StateActivity                    = new System.Workflow.Activities.StateActivity();
     this.showErrorStateActivity                = new System.Workflow.Activities.StateActivity();
     this.step2StateActivity                    = new System.Workflow.Activities.StateActivity();
     this.step1StateActivity                    = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity                    = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity               = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel      = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity9
     //
     this.setStateActivity9.Name            = "setStateActivity9";
     this.setStateActivity9.TargetStateName = "showErrorStateActivity";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "step3StateActivity";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "showErrorStateActivity";
     //
     // step2WizardFormActivity
     //
     this.step2WizardFormActivity.ContainerLabel         = null;
     this.step2WizardFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderUninstallLocalPackageStep2.xml";
     this.step2WizardFormActivity.Name = "step2WizardFormActivity";
     //
     // ifElseBranchActivity6
     //
     this.ifElseBranchActivity6.Activities.Add(this.setStateActivity9);
     this.ifElseBranchActivity6.Name = "ifElseBranchActivity6";
     //
     // ifElseBranchActivity5
     //
     this.ifElseBranchActivity5.Activities.Add(this.setStateActivity6);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DidValidate);
     this.ifElseBranchActivity5.Condition = codecondition1;
     this.ifElseBranchActivity5.Name      = "ifElseBranchActivity5";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity4);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.step2WizardFormActivity);
     codecondition2.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DidValidate);
     this.ifElseBranchActivity1.Condition = codecondition2;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity8
     //
     this.setStateActivity8.Name            = "setStateActivity8";
     this.setStateActivity8.TargetStateName = "finalStateActivity";
     //
     // step3CodeActivity_RefreshTree
     //
     this.step3CodeActivity_RefreshTree.Name         = "step3CodeActivity_RefreshTree";
     this.step3CodeActivity_RefreshTree.ExecuteCode += new System.EventHandler(this.step3CodeActivity_RefreshTree_ExecuteCode);
     //
     // closeCurrentViewActivity1
     //
     this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
     //
     // finishHandleExternalEventActivity2
     //
     this.finishHandleExternalEventActivity2.EventName     = "Finish";
     this.finishHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity2.Name          = "finishHandleExternalEventActivity2";
     //
     // step3WizardFormActivity
     //
     this.step3WizardFormActivity.ContainerLabel         = null;
     this.step3WizardFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderUninstallLocalPackageStep3.xml";
     this.step3WizardFormActivity.Name = "step3WizardFormActivity";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finalStateActivity";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // showErrorWizardFormActivity
     //
     this.showErrorWizardFormActivity.ContainerLabel         = null;
     this.showErrorWizardFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderUninstallLocalPackageShowError.xml";
     this.showErrorWizardFormActivity.Name = "showErrorWizardFormActivity";
     //
     // showErrorCodeActivity_Initialize
     //
     this.showErrorCodeActivity_Initialize.Name         = "showErrorCodeActivity_Initialize";
     this.showErrorCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.showErrorCodeActivity_Initialize_ExecuteCode);
     //
     // setStateActivity10
     //
     this.setStateActivity10.Name            = "setStateActivity10";
     this.setStateActivity10.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity3
     //
     this.cancelHandleExternalEventActivity3.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity3.Name          = "cancelHandleExternalEventActivity3";
     //
     // step2IfElseActivity_DidValidate
     //
     this.step2IfElseActivity_DidValidate.Activities.Add(this.ifElseBranchActivity5);
     this.step2IfElseActivity_DidValidate.Activities.Add(this.ifElseBranchActivity6);
     this.step2IfElseActivity_DidValidate.Name = "step2IfElseActivity_DidValidate";
     //
     // step2CodeActivity_Uninstall
     //
     this.step2CodeActivity_Uninstall.Name         = "step2CodeActivity_Uninstall";
     this.step2CodeActivity_Uninstall.ExecuteCode += new System.EventHandler(this.step2CodeActivity_Uninstall_ExecuteCode);
     //
     // nextHandleExternalEventActivity2
     //
     this.nextHandleExternalEventActivity2.EventName     = "Next";
     this.nextHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity2.Name          = "nextHandleExternalEventActivity2";
     //
     // step2IfElseActivity_DidValidate_Old
     //
     this.step2IfElseActivity_DidValidate_Old.Activities.Add(this.ifElseBranchActivity1);
     this.step2IfElseActivity_DidValidate_Old.Activities.Add(this.ifElseBranchActivity2);
     this.step2IfElseActivity_DidValidate_Old.Name = "step2IfElseActivity_DidValidate_Old";
     //
     // step2CodeActivity_Validate
     //
     this.step2CodeActivity_Validate.Name         = "step2CodeActivity_Validate";
     this.step2CodeActivity_Validate.ExecuteCode += new System.EventHandler(this.step2CodeActivity_Validate_ExecuteCode);
     //
     // setStateActivity7
     //
     this.setStateActivity7.Name            = "setStateActivity7";
     this.setStateActivity7.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "step2StateActivity";
     //
     // nextHandleExternalEventActivity1
     //
     this.nextHandleExternalEventActivity1.EventName     = "Next";
     this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity1.Name          = "nextHandleExternalEventActivity1";
     //
     // step1WizardFormActivity
     //
     this.step1WizardFormActivity.ContainerLabel         = null;
     this.step1WizardFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderUninstallLocalPackageStep1.xml";
     this.step1WizardFormActivity.Name = "step1WizardFormActivity";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "step1StateActivity";
     //
     // step3EventDrivenActivity_Finish
     //
     this.step3EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity2);
     this.step3EventDrivenActivity_Finish.Activities.Add(this.closeCurrentViewActivity1);
     this.step3EventDrivenActivity_Finish.Activities.Add(this.step3CodeActivity_RefreshTree);
     this.step3EventDrivenActivity_Finish.Activities.Add(this.setStateActivity8);
     this.step3EventDrivenActivity_Finish.Name = "step3EventDrivenActivity_Finish";
     //
     // step3StateInitializationActivity
     //
     this.step3StateInitializationActivity.Activities.Add(this.step3WizardFormActivity);
     this.step3StateInitializationActivity.Name = "step3StateInitializationActivity";
     //
     // showErrorEventDrivenActivity_Finish
     //
     this.showErrorEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.showErrorEventDrivenActivity_Finish.Activities.Add(this.setStateActivity5);
     this.showErrorEventDrivenActivity_Finish.Name = "showErrorEventDrivenActivity_Finish";
     //
     // showErrorStateInitializationActivity
     //
     this.showErrorStateInitializationActivity.Activities.Add(this.showErrorCodeActivity_Initialize);
     this.showErrorStateInitializationActivity.Activities.Add(this.showErrorWizardFormActivity);
     this.showErrorStateInitializationActivity.Name = "showErrorStateInitializationActivity";
     //
     // step2EventDrivenActivity_Cancel
     //
     this.step2EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
     this.step2EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity10);
     this.step2EventDrivenActivity_Cancel.Name = "step2EventDrivenActivity_Cancel";
     //
     // step2EventDrivenActivity_Next
     //
     this.step2EventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity2);
     this.step2EventDrivenActivity_Next.Activities.Add(this.step2CodeActivity_Uninstall);
     this.step2EventDrivenActivity_Next.Activities.Add(this.step2IfElseActivity_DidValidate);
     this.step2EventDrivenActivity_Next.Name = "step2EventDrivenActivity_Next";
     //
     // step2StateInitializationActivity
     //
     this.step2StateInitializationActivity.Activities.Add(this.step2CodeActivity_Validate);
     this.step2StateInitializationActivity.Activities.Add(this.step2IfElseActivity_DidValidate_Old);
     this.step2StateInitializationActivity.Name = "step2StateInitializationActivity";
     //
     // step1EventDrivenActivity_Cancel
     //
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity7);
     this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
     //
     // step1EventDrivenActivity_Next
     //
     this.step1EventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Next.Activities.Add(this.setStateActivity3);
     this.step1EventDrivenActivity_Next.Name = "step1EventDrivenActivity_Next";
     //
     // step1StateInitializationActivity
     //
     this.step1StateInitializationActivity.Activities.Add(this.step1WizardFormActivity);
     this.step1StateInitializationActivity.Name = "step1StateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity2);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // step3StateActivity
     //
     this.step3StateActivity.Activities.Add(this.step3StateInitializationActivity);
     this.step3StateActivity.Activities.Add(this.step3EventDrivenActivity_Finish);
     this.step3StateActivity.Name = "step3StateActivity";
     //
     // showErrorStateActivity
     //
     this.showErrorStateActivity.Activities.Add(this.showErrorStateInitializationActivity);
     this.showErrorStateActivity.Activities.Add(this.showErrorEventDrivenActivity_Finish);
     this.showErrorStateActivity.Name = "showErrorStateActivity";
     //
     // step2StateActivity
     //
     this.step2StateActivity.Activities.Add(this.step2StateInitializationActivity);
     this.step2StateActivity.Activities.Add(this.step2EventDrivenActivity_Next);
     this.step2StateActivity.Activities.Add(this.step2EventDrivenActivity_Cancel);
     this.step2StateActivity.Name = "step2StateActivity";
     //
     // step1StateActivity
     //
     this.step1StateActivity.Activities.Add(this.step1StateInitializationActivity);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Next);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
     this.step1StateActivity.Name = "step1StateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // UninstallLocalPackageWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.step1StateActivity);
     this.Activities.Add(this.step2StateActivity);
     this.Activities.Add(this.showErrorStateActivity);
     this.Activities.Add(this.step3StateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "UninstallLocalPackageWorkflow";
     this.CanModifyActivities = false;
 }
Esempio n. 23
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();
     this.codeNotMakeInvoice      = new System.Workflow.Activities.CodeActivity();
     this.codeMakeInvoice         = new System.Workflow.Activities.CodeActivity();
     this.NotMakeInvoice          = new System.Workflow.Activities.IfElseBranchActivity();
     this.DoMakeInvoice           = new System.Workflow.Activities.IfElseBranchActivity();
     this.MakeInvoice             = new System.Workflow.Activities.IfElseActivity();
     this.codeMasePROPOSEPAYMENT  = new System.Workflow.Activities.CodeActivity();
     this.PROPOSEPAYMENTNotAprove = new System.Workflow.Activities.IfElseBranchActivity();
     this.PROPOSEPAYMENTAprove    = new System.Workflow.Activities.IfElseBranchActivity();
     this.NotMakePROPOSEPAYMENT   = new System.Workflow.Activities.IfElseBranchActivity();
     this.DoMakePROPOSEPAYMENT    = new System.Workflow.Activities.IfElseBranchActivity();
     this.PROPOSEPAYMENT          = new System.Workflow.Activities.IfElseActivity();
     this.MakePROPOSEPAYMENT      = new System.Workflow.Activities.IfElseActivity();
     this.PONotAprove             = new System.Workflow.Activities.IfElseBranchActivity();
     this.POAprove = new System.Workflow.Activities.IfElseBranchActivity();
     this.PO       = new System.Workflow.Activities.IfElseActivity();
     //
     // codeNotMakeInvoice
     //
     this.codeNotMakeInvoice.Name         = "codeNotMakeInvoice";
     this.codeNotMakeInvoice.ExecuteCode += new System.EventHandler(this.codeNotMakeInvoice_ExecuteCode);
     //
     // codeMakeInvoice
     //
     this.codeMakeInvoice.Name         = "codeMakeInvoice";
     this.codeMakeInvoice.ExecuteCode += new System.EventHandler(this.codeMakeInvoice_ExecuteCode);
     //
     // NotMakeInvoice
     //
     this.NotMakeInvoice.Activities.Add(this.codeNotMakeInvoice);
     this.NotMakeInvoice.Name = "NotMakeInvoice";
     //
     // DoMakeInvoice
     //
     this.DoMakeInvoice.Activities.Add(this.codeMakeInvoice);
     codecondition1.Condition    += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ConditionMakeInvoice);
     this.DoMakeInvoice.Condition = codecondition1;
     this.DoMakeInvoice.Name      = "DoMakeInvoice";
     //
     // MakeInvoice
     //
     this.MakeInvoice.Activities.Add(this.DoMakeInvoice);
     this.MakeInvoice.Activities.Add(this.NotMakeInvoice);
     this.MakeInvoice.Name = "MakeInvoice";
     //
     // codeMasePROPOSEPAYMENT
     //
     this.codeMasePROPOSEPAYMENT.Name         = "codeMasePROPOSEPAYMENT";
     this.codeMasePROPOSEPAYMENT.ExecuteCode += new System.EventHandler(this.codeMakePROPOSEPAYMENT_ExecuteCode);
     //
     // PROPOSEPAYMENTNotAprove
     //
     this.PROPOSEPAYMENTNotAprove.Name = "PROPOSEPAYMENTNotAprove";
     //
     // PROPOSEPAYMENTAprove
     //
     this.PROPOSEPAYMENTAprove.Activities.Add(this.MakeInvoice);
     codecondition2.Condition           += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ConditionPROPOSEPAYMENTAprove);
     this.PROPOSEPAYMENTAprove.Condition = codecondition2;
     this.PROPOSEPAYMENTAprove.Name      = "PROPOSEPAYMENTAprove";
     //
     // NotMakePROPOSEPAYMENT
     //
     this.NotMakePROPOSEPAYMENT.Name = "NotMakePROPOSEPAYMENT";
     //
     // DoMakePROPOSEPAYMENT
     //
     this.DoMakePROPOSEPAYMENT.Activities.Add(this.codeMasePROPOSEPAYMENT);
     codecondition3.Condition           += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ConditionMakePROPOSEPAYMENT);
     this.DoMakePROPOSEPAYMENT.Condition = codecondition3;
     this.DoMakePROPOSEPAYMENT.Name      = "DoMakePROPOSEPAYMENT";
     //
     // PROPOSEPAYMENT
     //
     this.PROPOSEPAYMENT.Activities.Add(this.PROPOSEPAYMENTAprove);
     this.PROPOSEPAYMENT.Activities.Add(this.PROPOSEPAYMENTNotAprove);
     this.PROPOSEPAYMENT.Name = "PROPOSEPAYMENT";
     //
     // MakePROPOSEPAYMENT
     //
     this.MakePROPOSEPAYMENT.Activities.Add(this.DoMakePROPOSEPAYMENT);
     this.MakePROPOSEPAYMENT.Activities.Add(this.NotMakePROPOSEPAYMENT);
     this.MakePROPOSEPAYMENT.Name = "MakePROPOSEPAYMENT";
     //
     // PONotAprove
     //
     this.PONotAprove.Name = "PONotAprove";
     //
     // POAprove
     //
     this.POAprove.Activities.Add(this.MakePROPOSEPAYMENT);
     this.POAprove.Activities.Add(this.PROPOSEPAYMENT);
     codecondition4.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ConditionPOAprove);
     this.POAprove.Condition   = codecondition4;
     this.POAprove.Name        = "POAprove";
     //
     // PO
     //
     this.PO.Activities.Add(this.POAprove);
     this.PO.Activities.Add(this.PONotAprove);
     this.PO.Name = "PO";
     //
     // Purchase
     //
     this.Activities.Add(this.PO);
     this.Name = "Purchase";
     this.CanModifyActivities = false;
 }
Esempio n. 24
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();
     this.setStateActivity7                    = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity4                    = new System.Workflow.Activities.SetStateActivity();
     this.closeCurrentViewActivity1            = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.setStateActivity5                    = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity3                    = new System.Workflow.Activities.SetStateActivity();
     this.codeActivity3                        = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity4                = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity3                = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity2                = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1                = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity2                      = new System.Workflow.Activities.IfElseActivity();
     this.codeActivity2                        = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity6                    = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2   = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.ifElseActivity1                      = new System.Workflow.Activities.IfElseActivity();
     this.finishHandleExternalEventActivity1   = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.wizzardFormActivity1                 = new Composite.C1Console.Workflow.Activities.DataDialogFormActivity();
     this.setStateActivity2                    = new System.Workflow.Activities.SetStateActivity();
     this.codeActivity1                        = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity1                    = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1   = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.finalizeStateInitializationActivity  = new System.Workflow.Activities.StateInitializationActivity();
     this.cancelEventDrivenActivity            = new System.Workflow.Activities.EventDrivenActivity();
     this.finishEventDrivenActivity            = new System.Workflow.Activities.EventDrivenActivity();
     this.selectZipStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.initialStateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.finalStateActivity                   = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity1                 = new System.Workflow.Activities.EventDrivenActivity();
     this.finalizeStateActivity                = new System.Workflow.Activities.StateActivity();
     this.selectZipFileStateActivity           = new System.Workflow.Activities.StateActivity();
     this.initialState = new System.Workflow.Activities.StateActivity();
     //
     // setStateActivity7
     //
     this.setStateActivity7.Name            = "setStateActivity7";
     this.setStateActivity7.TargetStateName = "selectZipFileStateActivity";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalStateActivity";
     //
     // closeCurrentViewActivity1
     //
     this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "selectZipFileStateActivity";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "finalizeStateActivity";
     //
     // codeActivity3
     //
     this.codeActivity3.Name         = "codeActivity3";
     this.codeActivity3.ExecuteCode += new System.EventHandler(this.HandleFinish_ExecuteCode);
     //
     // ifElseBranchActivity4
     //
     this.ifElseBranchActivity4.Activities.Add(this.setStateActivity7);
     this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
     //
     // ifElseBranchActivity3
     //
     this.ifElseBranchActivity3.Activities.Add(this.closeCurrentViewActivity1);
     this.ifElseBranchActivity3.Activities.Add(this.setStateActivity4);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ZipWasUploaded);
     this.ifElseBranchActivity3.Condition = codecondition1;
     this.ifElseBranchActivity3.Name      = "ifElseBranchActivity3";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity5);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.codeActivity3);
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity3);
     codecondition2.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.HasUserUploaded);
     this.ifElseBranchActivity1.Condition = codecondition2;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // ifElseActivity2
     //
     this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity3);
     this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity4);
     this.ifElseActivity2.Name = "ifElseActivity2";
     //
     // codeActivity2
     //
     this.codeActivity2.Name         = "codeActivity2";
     this.codeActivity2.ExecuteCode += new System.EventHandler(this.FinalizeCodeActivity_ExecuteCode);
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // wizzardFormActivity1
     //
     this.wizzardFormActivity1.ContainerLabel         = null;
     this.wizzardFormActivity1.FormDefinitionFileName = "/Administrative/WebsiteFileElementProviderUploadAndExtractZipFile.xml";
     this.wizzardFormActivity1.Name = "wizzardFormActivity1";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "selectZipFileStateActivity";
     //
     // codeActivity1
     //
     this.codeActivity1.Name         = "codeActivity1";
     this.codeActivity1.ExecuteCode += new System.EventHandler(this.InitializeCodeActivity_ExecuteCode);
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // finalizeStateInitializationActivity
     //
     this.finalizeStateInitializationActivity.Activities.Add(this.codeActivity2);
     this.finalizeStateInitializationActivity.Activities.Add(this.ifElseActivity2);
     this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
     //
     // cancelEventDrivenActivity
     //
     this.cancelEventDrivenActivity.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.cancelEventDrivenActivity.Activities.Add(this.setStateActivity6);
     this.cancelEventDrivenActivity.Name = "cancelEventDrivenActivity";
     //
     // finishEventDrivenActivity
     //
     this.finishEventDrivenActivity.Activities.Add(this.finishHandleExternalEventActivity1);
     this.finishEventDrivenActivity.Activities.Add(this.ifElseActivity1);
     this.finishEventDrivenActivity.Name = "finishEventDrivenActivity";
     //
     // selectZipStateInitializationActivity
     //
     this.selectZipStateInitializationActivity.Activities.Add(this.wizzardFormActivity1);
     this.selectZipStateInitializationActivity.Name = "selectZipStateInitializationActivity";
     //
     // initialStateInitializationActivity
     //
     this.initialStateInitializationActivity.Activities.Add(this.codeActivity1);
     this.initialStateInitializationActivity.Activities.Add(this.setStateActivity2);
     this.initialStateInitializationActivity.Name = "initialStateInitializationActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // eventDrivenActivity1
     //
     this.eventDrivenActivity1.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity1.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity1.Name = "eventDrivenActivity1";
     //
     // finalizeStateActivity
     //
     this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
     this.finalizeStateActivity.Name = "finalizeStateActivity";
     //
     // selectZipFileStateActivity
     //
     this.selectZipFileStateActivity.Activities.Add(this.selectZipStateInitializationActivity);
     this.selectZipFileStateActivity.Activities.Add(this.finishEventDrivenActivity);
     this.selectZipFileStateActivity.Activities.Add(this.cancelEventDrivenActivity);
     this.selectZipFileStateActivity.Name = "selectZipFileStateActivity";
     //
     // initialState
     //
     this.initialState.Activities.Add(this.initialStateInitializationActivity);
     this.initialState.Name = "initialState";
     //
     // UploadAndExtractZipFileWorkflow
     //
     this.Activities.Add(this.initialState);
     this.Activities.Add(this.selectZipFileStateActivity);
     this.Activities.Add(this.finalizeStateActivity);
     this.Activities.Add(this.eventDrivenActivity1);
     this.Activities.Add(this.finalStateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initialState";
     this.Name = "UploadAndExtractZipFileWorkflow";
     this.CanModifyActivities = false;
 }
Esempio n. 25
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.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.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
     this.spTaskActivity1       = new NAPAS.Portal.Workflow.SPTaskActivity();
     this.ifElseActivity1       = new System.Workflow.Activities.IfElseActivity();
     this.replicatorActivity1   = new System.Workflow.Activities.ReplicatorActivity();
     this.onWorkflowActivated1  = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ifTaskCompleted);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // spTaskActivity1
     //
     this.spTaskActivity1.Name            = "spTaskActivity1";
     this.spTaskActivity1.TaskAssignedTo  = null;
     this.spTaskActivity1.TaskDescription = null;
     this.spTaskActivity1.TaskDueDate     = new System.DateTime(((long)(0)));
     this.spTaskActivity1.TaskTitle       = null;
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // replicatorActivity1
     //
     this.replicatorActivity1.Activities.Add(this.spTaskActivity1);
     this.replicatorActivity1.ExecutionType = System.Workflow.Activities.ExecutionType.Sequence;
     this.replicatorActivity1.Name          = "replicatorActivity1";
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.UntilCompleted_Condition);
     this.replicatorActivity1.UntilCondition    = codecondition2;
     this.replicatorActivity1.ChildInitialized += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.replicateTasks_ChildInitialized);
     this.replicatorActivity1.ChildCompleted   += new System.EventHandler <System.Workflow.Activities.ReplicatorChildEventArgs>(this.replicateTasks_ChildCompleted);
     this.replicatorActivity1.Completed        += new System.EventHandler(this.replicateTasks_Completed);
     this.replicatorActivity1.Initialized      += new System.EventHandler(this.replicateTasks_Initialized);
     activitybind2.Name = "NAPAS_Workflow";
     activitybind2.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "NAPAS_Workflow";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind1.Name = "NAPAS_Workflow";
     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)));
     //
     // NAPAS_Workflow
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.replicatorActivity1);
     this.Activities.Add(this.ifElseActivity1);
     this.Name = "NAPAS_Workflow";
     this.CanModifyActivities = false;
 }
Esempio n. 26
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.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     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.logErrorMessage              = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.cmdErrorHandler              = new System.Workflow.Activities.CodeActivity();
     this.logWorkflow                  = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Initialize_ChildWorkflow     = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity1        = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.ObsługaPojedynczejWiadomości = new System.Workflow.Activities.SequenceActivity();
     this.faultHandlersActivity1       = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.logEnd         = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.whileActivity1 = new System.Workflow.Activities.WhileActivity();
     this.logSelected    = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.Select_ListaWiadomosciOczekujacych = new System.Workflow.Activities.CodeActivity();
     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             = "swfObslugaWiadomosciOczekujacych";
     activitybind1.Path             = "logErrorMessage_HistoryDescription";
     activitybind2.Name             = "swfObslugaWiadomosciOczekujacych";
     activitybind2.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)(activitybind1)));
     this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // cmdErrorHandler
     //
     this.cmdErrorHandler.Name         = "cmdErrorHandler";
     this.cmdErrorHandler.ExecuteCode += new System.EventHandler(this.cmdErrorHandler_ExecuteCode);
     //
     // logWorkflow
     //
     this.logWorkflow.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logWorkflow.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logWorkflow.HistoryDescription = "WF uruchomiony";
     activitybind3.Name         = "swfObslugaWiadomosciOczekujacych";
     activitybind3.Path         = "logWorkflow_HistoryOutcome";
     this.logWorkflow.Name      = "logWorkflow";
     this.logWorkflow.OtherData = "";
     this.logWorkflow.UserId    = -1;
     this.logWorkflow.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // Initialize_ChildWorkflow
     //
     this.Initialize_ChildWorkflow.Name         = "Initialize_ChildWorkflow";
     this.Initialize_ChildWorkflow.ExecuteCode += new System.EventHandler(this.Initialize_ChildWorkflow_ExecuteCode);
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.cmdErrorHandler);
     this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
     this.faultHandlerActivity1.FaultType = typeof(System.SystemException);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // ObsługaPojedynczejWiadomości
     //
     this.ObsługaPojedynczejWiadomości.Activities.Add(this.Initialize_ChildWorkflow);
     this.ObsługaPojedynczejWiadomości.Activities.Add(this.logWorkflow);
     this.ObsługaPojedynczejWiadomości.Name = "ObsługaPojedynczejWiadomości";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // logEnd
     //
     this.logEnd.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logEnd.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logEnd.HistoryDescription = "Zakończony";
     this.logEnd.HistoryOutcome     = "";
     this.logEnd.Name      = "logEnd";
     this.logEnd.OtherData = "";
     this.logEnd.UserId    = -1;
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.ObsługaPojedynczejWiadomości);
     codecondition1.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.whileRecordExist);
     this.whileActivity1.Condition = codecondition1;
     this.whileActivity1.Name      = "whileActivity1";
     //
     // logSelected
     //
     this.logSelected.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logSelected.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logSelected.HistoryDescription = "Liczba wiadomości do obsługi";
     activitybind4.Name         = "swfObslugaWiadomosciOczekujacych";
     activitybind4.Path         = "logSelected_HistoryOutcome";
     this.logSelected.Name      = "logSelected";
     this.logSelected.OtherData = "";
     this.logSelected.UserId    = -1;
     this.logSelected.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     //
     // Select_ListaWiadomosciOczekujacych
     //
     this.Select_ListaWiadomosciOczekujacych.Name         = "Select_ListaWiadomosciOczekujacych";
     this.Select_ListaWiadomosciOczekujacych.ExecuteCode += new System.EventHandler(this.Select_ListaWiadomosciOczekujacych_ExecuteCode);
     activitybind6.Name = "swfObslugaWiadomosciOczekujacych";
     activitybind6.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "swfObslugaWiadomosciOczekujacych";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind5.Name = "swfObslugaWiadomosciOczekujacych";
     activitybind5.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)(activitybind6)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     //
     // swfObslugaWiadomosciOczekujacych
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.Select_ListaWiadomosciOczekujacych);
     this.Activities.Add(this.logSelected);
     this.Activities.Add(this.whileActivity1);
     this.Activities.Add(this.logEnd);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "swfObslugaWiadomosciOczekujacych";
     this.CanModifyActivities = false;
 }
 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();
     this.faultHandler1          = new System.Workflow.Activities.CodeActivity();
     this.setControlValue1       = new Microsoft.Ccf.HostedApplicationToolkit.Activity.SetControlValue();
     this.sleep                  = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity1  = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.sequenceActivity1      = new System.Workflow.Activities.SequenceActivity();
     this.faultHandlersActivity1 = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.whileActivity1         = new System.Workflow.Activities.WhileActivity();
     //
     // faultHandler1
     //
     this.faultHandler1.Name         = "faultHandler1";
     this.faultHandler1.ExecuteCode += new System.EventHandler(this.faultHandler1_ExecuteCode);
     //
     // setControlValue1
     //
     this.setControlValue1.ApplicationName = "StandaloneTestApp";
     this.setControlValue1.ControlName     = "textbox_acc";
     activitybind1.Name         = "CountDownAsync";
     activitybind1.Path         = "Iterations";
     this.setControlValue1.Name = "setControlValue1";
     this.setControlValue1.SetBinding(Microsoft.Ccf.HostedApplicationToolkit.Activity.SetControlValue.ControlValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // sleep
     //
     this.sleep.Name         = "sleep";
     this.sleep.ExecuteCode += new System.EventHandler(this.sleep_ExecuteCode);
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.faultHandler1);
     this.faultHandlerActivity1.FaultType = typeof(Microsoft.Ccf.HostedApplicationToolkit.AutomationHosting.AutomationHostingException);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // sequenceActivity1
     //
     this.sequenceActivity1.Activities.Add(this.sleep);
     this.sequenceActivity1.Activities.Add(this.setControlValue1);
     this.sequenceActivity1.Name = "sequenceActivity1";
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.sequenceActivity1);
     codecondition1.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.WhileCondition);
     this.whileActivity1.Condition = codecondition1;
     this.whileActivity1.Name      = "whileActivity1";
     //
     // CountDownAsync
     //
     this.Activities.Add(this.whileActivity1);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "CountDownAsync";
     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.Runtime.CorrelationToken correlationtoken1 = 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.Activities.CodeCondition codecondition1 = 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 activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            this.logErrorMessage = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.ErrorHandler = new System.Workflow.Activities.CodeActivity();
            this.logTask = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Create_Task = new System.Workflow.Activities.CodeActivity();
            this.faultHandlerActivity1 = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
            this.faultHandlersActivity1 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.sendEmail2 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.whileActivity1 = new System.Workflow.Activities.WhileActivity();
            this.Set_TaskEnumerator = new System.Workflow.Activities.CodeActivity();
            this.sendEmail1 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.logKlienci = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Select_Klienci = new System.Workflow.Activities.CodeActivity();
            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 = "GeneratorZadanWF";
            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);
            // 
            // logTask
            // 
            this.logTask.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logTask.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind2.Name = "GeneratorZadanWF";
            activitybind2.Path = "logTask_HistoryDescription";
            activitybind3.Name = "GeneratorZadanWF";
            activitybind3.Path = "logTask_HistoryOutcome";
            this.logTask.Name = "logTask";
            this.logTask.OtherData = "";
            this.logTask.UserId = -1;
            this.logTask.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.logTask.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // Create_Task
            // 
            this.Create_Task.Name = "Create_Task";
            this.Create_Task.ExecuteCode += new System.EventHandler(this.Create_Task_ExecuteCode);
            // 
            // faultHandlerActivity1
            // 
            this.faultHandlerActivity1.Activities.Add(this.ErrorHandler);
            this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
            this.faultHandlerActivity1.FaultType = typeof(System.Exception);
            this.faultHandlerActivity1.Name = "faultHandlerActivity1";
            // 
            // sequenceActivity1
            // 
            this.sequenceActivity1.Activities.Add(this.Create_Task);
            this.sequenceActivity1.Activities.Add(this.logTask);
            this.sequenceActivity1.Name = "sequenceActivity1";
            // 
            // faultHandlersActivity1
            // 
            this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
            this.faultHandlersActivity1.Name = "faultHandlersActivity1";
            // 
            // sendEmail2
            // 
            this.sendEmail2.BCC = null;
            this.sendEmail2.Body = null;
            this.sendEmail2.CC = null;
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "GeneratorZadanWF";
            this.sendEmail2.CorrelationToken = correlationtoken1;
            this.sendEmail2.From = "";
            this.sendEmail2.Headers = null;
            this.sendEmail2.IncludeStatus = false;
            this.sendEmail2.Name = "sendEmail2";
            activitybind4.Name = "GeneratorZadanWF";
            activitybind4.Path = "msgSubject";
            activitybind5.Name = "GeneratorZadanWF";
            activitybind5.Path = "msgTo";
            this.sendEmail2.MethodInvoking += new System.EventHandler(this.sendEmail2_MethodInvoking);
            this.sendEmail2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.sendEmail2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // whileActivity1
            // 
            this.whileActivity1.Activities.Add(this.sequenceActivity1);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.whileTaskExist);
            this.whileActivity1.Condition = codecondition1;
            this.whileActivity1.Name = "whileActivity1";
            // 
            // Set_TaskEnumerator
            // 
            this.Set_TaskEnumerator.Name = "Set_TaskEnumerator";
            this.Set_TaskEnumerator.ExecuteCode += new System.EventHandler(this.Set_TaskEnumerator_ExecuteCode);
            // 
            // sendEmail1
            // 
            this.sendEmail1.BCC = null;
            this.sendEmail1.Body = null;
            this.sendEmail1.CC = null;
            this.sendEmail1.CorrelationToken = correlationtoken1;
            this.sendEmail1.From = "";
            this.sendEmail1.Headers = null;
            this.sendEmail1.IncludeStatus = false;
            this.sendEmail1.Name = "sendEmail1";
            activitybind6.Name = "GeneratorZadanWF";
            activitybind6.Path = "msgSubject";
            activitybind7.Name = "GeneratorZadanWF";
            activitybind7.Path = "msgTo";
            this.sendEmail1.MethodInvoking += new System.EventHandler(this.sendEmail1_MethodInvoking);
            this.sendEmail1.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            this.sendEmail1.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // logKlienci
            // 
            this.logKlienci.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logKlienci.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logKlienci.HistoryDescription = "Liczba wybranych klientów";
            activitybind8.Name = "GeneratorZadanWF";
            activitybind8.Path = "logKlienci_HistoryOutcome";
            this.logKlienci.Name = "logKlienci";
            this.logKlienci.OtherData = "";
            this.logKlienci.UserId = -1;
            this.logKlienci.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            // 
            // Select_Klienci
            // 
            this.Select_Klienci.Name = "Select_Klienci";
            this.Select_Klienci.ExecuteCode += new System.EventHandler(this.Select_Klienci_ExecuteCode);
            activitybind10.Name = "GeneratorZadanWF";
            activitybind10.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind9.Name = "GeneratorZadanWF";
            activitybind9.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)(activitybind10)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            // 
            // GeneratorZadanWF
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.Select_Klienci);
            this.Activities.Add(this.logKlienci);
            this.Activities.Add(this.sendEmail1);
            this.Activities.Add(this.Set_TaskEnumerator);
            this.Activities.Add(this.whileActivity1);
            this.Activities.Add(this.sendEmail2);
            this.Activities.Add(this.faultHandlersActivity1);
            this.Name = "GeneratorZadanWF";
            this.CanModifyActivities = false;

        }
Esempio n. 29
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;

        }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.setStateActivity5                         = new System.Workflow.Activities.SetStateActivity();
     this.viewCodeActivity_ShowMessage              = new System.Workflow.Activities.CodeActivity();
     this.viewDocumentFormActivity                  = new Composite.C1Console.Workflow.Activities.DocumentFormActivity();
     this.ifElseBranchActivity2                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1                     = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity4                         = new System.Workflow.Activities.SetStateActivity();
     this.installAddOnCodeActivity_Execute          = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity3                         = new System.Workflow.Activities.SetStateActivity();
     this.customEvent01HandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CustomEvent01HandleExternalEventActivity();
     this.ifElseActivity_AddOnDescriptionExists     = new System.Workflow.Activities.IfElseActivity();
     this.viewStateCodeActivity_Initialize          = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity2                         = new System.Workflow.Activities.SetStateActivity();
     this.installAddOnStateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.viewSateEventDrivenActivity_Install       = new System.Workflow.Activities.EventDrivenActivity();
     this.viewStateInitializationActivity           = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity     = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                         = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1        = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.installAddOnStateActivity                 = new System.Workflow.Activities.StateActivity();
     this.viewStateActivity                         = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity                        = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity                   = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel          = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finalStateActivity";
     //
     // viewCodeActivity_ShowMessage
     //
     this.viewCodeActivity_ShowMessage.Name         = "viewCodeActivity_ShowMessage";
     this.viewCodeActivity_ShowMessage.ExecuteCode += new System.EventHandler(this.viewCodeActivity_ShowMessage_ExecuteCode);
     //
     // viewDocumentFormActivity
     //
     this.viewDocumentFormActivity.ContainerLabel = null;
     this.viewDocumentFormActivity.CustomToolbarDefinitionFileName = null;
     this.viewDocumentFormActivity.FormDefinitionFileName          = "\\Administrative\\PackageElementProviderViewAvailablePackageInformation.xml";
     this.viewDocumentFormActivity.Name = "viewDocumentFormActivity";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.viewCodeActivity_ShowMessage);
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity5);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.viewDocumentFormActivity);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.AddOnDescriptionExists);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "viewStateActivity";
     //
     // installAddOnCodeActivity_Execute
     //
     this.installAddOnCodeActivity_Execute.Name         = "installAddOnCodeActivity_Execute";
     this.installAddOnCodeActivity_Execute.ExecuteCode += new System.EventHandler(this.installAddOnCodeActivity_Execute_ExecuteCode);
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "installAddOnStateActivity";
     //
     // customEvent01HandleExternalEventActivity1
     //
     this.customEvent01HandleExternalEventActivity1.EventName     = "CustomEvent01";
     this.customEvent01HandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.customEvent01HandleExternalEventActivity1.Name          = "customEvent01HandleExternalEventActivity1";
     //
     // ifElseActivity_AddOnDescriptionExists
     //
     this.ifElseActivity_AddOnDescriptionExists.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity_AddOnDescriptionExists.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity_AddOnDescriptionExists.Name = "ifElseActivity_AddOnDescriptionExists";
     //
     // viewStateCodeActivity_Initialize
     //
     this.viewStateCodeActivity_Initialize.Name         = "viewStateCodeActivity_Initialize";
     this.viewStateCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.viewStateCodeActivity_Initialize_ExecuteCode);
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "viewStateActivity";
     //
     // installAddOnStateInitializationActivity
     //
     this.installAddOnStateInitializationActivity.Activities.Add(this.installAddOnCodeActivity_Execute);
     this.installAddOnStateInitializationActivity.Activities.Add(this.setStateActivity4);
     this.installAddOnStateInitializationActivity.Name = "installAddOnStateInitializationActivity";
     //
     // viewSateEventDrivenActivity_Install
     //
     this.viewSateEventDrivenActivity_Install.Activities.Add(this.customEvent01HandleExternalEventActivity1);
     this.viewSateEventDrivenActivity_Install.Activities.Add(this.setStateActivity3);
     this.viewSateEventDrivenActivity_Install.Name = "viewSateEventDrivenActivity_Install";
     //
     // viewStateInitializationActivity
     //
     this.viewStateInitializationActivity.Activities.Add(this.viewStateCodeActivity_Initialize);
     this.viewStateInitializationActivity.Activities.Add(this.ifElseActivity_AddOnDescriptionExists);
     this.viewStateInitializationActivity.Name = "viewStateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity2);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // installAddOnStateActivity
     //
     this.installAddOnStateActivity.Activities.Add(this.installAddOnStateInitializationActivity);
     this.installAddOnStateActivity.Name = "installAddOnStateActivity";
     //
     // viewStateActivity
     //
     this.viewStateActivity.Activities.Add(this.viewStateInitializationActivity);
     this.viewStateActivity.Activities.Add(this.viewSateEventDrivenActivity_Install);
     this.viewStateActivity.Name = "viewStateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // ViewAvailableAddOnInfoWorkflowWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.viewStateActivity);
     this.Activities.Add(this.installAddOnStateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "ViewAvailableAddOnInfoWorkflowWorkflow";
     this.CanModifyActivities = false;
 }
 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.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.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.Runtime.CorrelationToken    correlationtoken2 = 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.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.Runtime.CorrelationToken    correlationtoken3 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind16    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind17    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind18    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind19    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind20    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind21    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind22    = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Runtime.CorrelationToken    correlationtoken4 = new System.Workflow.Runtime.CorrelationToken();
     System.Workflow.ComponentModel.ActivityBind activitybind23    = new System.Workflow.ComponentModel.ActivityBind();
     this.IrParaEstadoFinalReprovado        = new System.Workflow.Activities.SetStateActivity();
     this.IrParaEstadoFinalAprovado         = new System.Workflow.Activities.SetStateActivity();
     this.IrParaEstadoAnalisarReembolso     = new System.Workflow.Activities.SetStateActivity();
     this.IrParaRevisarReembolso            = new System.Workflow.Activities.SetStateActivity();
     this.IrParaAprovarReembolso            = new System.Workflow.Activities.SetStateActivity();
     this.IfReprovadoAprovarReembolso       = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfAprovadoAprovarReembolso        = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity4             = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfAprovadoRevisarReembolso        = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfReprovadoAnalisarReembolso      = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfAprovadoAnalisarReembolso       = new System.Workflow.Activities.IfElseBranchActivity();
     this.VerificaAprovarReembolso          = new System.Workflow.Activities.IfElseActivity();
     this.CompleteTask_AprovarReembolso     = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
     this.TaskChanged_AprovarReembolso      = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
     this.TaskCreated_AprovarReembolso      = new Microsoft.SharePoint.WorkflowActions.OnTaskCreated();
     this.CreateTask_AprovarReembolso       = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
     this.ValidaRevisarReembolso            = new System.Workflow.Activities.IfElseActivity();
     this.CompleteTask_RevisarReembolso     = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
     this.TaskChanged_RevisarReembolso      = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
     this.TaskCreated_RevisarReembolso      = new Microsoft.SharePoint.WorkflowActions.OnTaskCreated();
     this.CreateTask_RevisarReembolso       = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
     this.VerificaAnalisarReembolso         = new System.Workflow.Activities.IfElseActivity();
     this.CompleteTask_AnalisarReembolso    = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
     this.TaskChanged_AnalisarReembolso     = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
     this.TaskCreated_AnalisarReembolso     = new Microsoft.SharePoint.WorkflowActions.OnTaskCreated();
     this.CreateTask_AnalisarReembolso      = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
     this.IrParaAnalisarReembolso           = new System.Workflow.Activities.SetStateActivity();
     this.onWorkflowActivated1              = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     this.ED_TaskComplete_AprovarReembolso  = new System.Workflow.Activities.EventDrivenActivity();
     this.ED_TaskCreated_AprovarReembolso   = new System.Workflow.Activities.EventDrivenActivity();
     this.Inicial_AprovarReembolso          = new System.Workflow.Activities.StateInitializationActivity();
     this.ED_TaskComplete_RevisarReembolso  = new System.Workflow.Activities.EventDrivenActivity();
     this.ED_TaskCreated_RevisarReembolso   = new System.Workflow.Activities.EventDrivenActivity();
     this.Inicial_RevisarReembolso          = new System.Workflow.Activities.StateInitializationActivity();
     this.ED_TaskComplete_AnalisarReembolso = new System.Workflow.Activities.EventDrivenActivity();
     this.ED_TaskCreated_AnalisarReembolso  = new System.Workflow.Activities.EventDrivenActivity();
     this.Inicial_AnalisarReembolso         = new System.Workflow.Activities.StateInitializationActivity();
     this.ED_Inicial              = new System.Workflow.Activities.EventDrivenActivity();
     this.EstadoFinal             = new System.Workflow.Activities.StateActivity();
     this.Estado_AprovarReembolso = new System.Workflow.Activities.StateActivity();
     this.Estado_RevisarReembolso = new System.Workflow.Activities.StateActivity();
     this.EstadoAnalisarReembolso = new System.Workflow.Activities.StateActivity();
     this.EstadoInicial           = new System.Workflow.Activities.StateActivity();
     //
     // IrParaEstadoFinalReprovado
     //
     this.IrParaEstadoFinalReprovado.Name            = "IrParaEstadoFinalReprovado";
     this.IrParaEstadoFinalReprovado.TargetStateName = "EstadoFinal";
     //
     // IrParaEstadoFinalAprovado
     //
     this.IrParaEstadoFinalAprovado.Name            = "IrParaEstadoFinalAprovado";
     this.IrParaEstadoFinalAprovado.TargetStateName = "EstadoFinal";
     //
     // IrParaEstadoAnalisarReembolso
     //
     this.IrParaEstadoAnalisarReembolso.Name            = "IrParaEstadoAnalisarReembolso";
     this.IrParaEstadoAnalisarReembolso.TargetStateName = "EstadoAnalisarReembolso";
     //
     // IrParaRevisarReembolso
     //
     this.IrParaRevisarReembolso.Name            = "IrParaRevisarReembolso";
     this.IrParaRevisarReembolso.TargetStateName = "Estado_RevisarReembolso";
     //
     // IrParaAprovarReembolso
     //
     this.IrParaAprovarReembolso.Name            = "IrParaAprovarReembolso";
     this.IrParaAprovarReembolso.TargetStateName = "Estado_AprovarReembolso";
     //
     // IfReprovadoAprovarReembolso
     //
     this.IfReprovadoAprovarReembolso.Activities.Add(this.IrParaEstadoFinalReprovado);
     codecondition1.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ChecarSeReprovadoAprovarReembolso);
     this.IfReprovadoAprovarReembolso.Condition = codecondition1;
     this.IfReprovadoAprovarReembolso.Name      = "IfReprovadoAprovarReembolso";
     //
     // IfAprovadoAprovarReembolso
     //
     this.IfAprovadoAprovarReembolso.Activities.Add(this.IrParaEstadoFinalAprovado);
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ChecarSeAprovadoAprovarReembolso);
     this.IfAprovadoAprovarReembolso.Condition = codecondition2;
     this.IfAprovadoAprovarReembolso.Name      = "IfAprovadoAprovarReembolso";
     //
     // ifElseBranchActivity4
     //
     this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
     //
     // IfAprovadoRevisarReembolso
     //
     this.IfAprovadoRevisarReembolso.Activities.Add(this.IrParaEstadoAnalisarReembolso);
     codecondition3.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ChecarSeAprovadoRevisarReembolso);
     this.IfAprovadoRevisarReembolso.Condition = codecondition3;
     this.IfAprovadoRevisarReembolso.Name      = "IfAprovadoRevisarReembolso";
     //
     // IfReprovadoAnalisarReembolso
     //
     this.IfReprovadoAnalisarReembolso.Activities.Add(this.IrParaRevisarReembolso);
     codecondition4.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ChecarSeReprovadoAnalisarReembolso);
     this.IfReprovadoAnalisarReembolso.Condition = codecondition4;
     this.IfReprovadoAnalisarReembolso.Name      = "IfReprovadoAnalisarReembolso";
     //
     // IfAprovadoAnalisarReembolso
     //
     this.IfAprovadoAnalisarReembolso.Activities.Add(this.IrParaAprovarReembolso);
     codecondition5.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ChecarSeAprovadoAnalisarReembolso);
     this.IfAprovadoAnalisarReembolso.Condition = codecondition5;
     this.IfAprovadoAnalisarReembolso.Name      = "IfAprovadoAnalisarReembolso";
     //
     // VerificaAprovarReembolso
     //
     this.VerificaAprovarReembolso.Activities.Add(this.IfAprovadoAprovarReembolso);
     this.VerificaAprovarReembolso.Activities.Add(this.IfReprovadoAprovarReembolso);
     this.VerificaAprovarReembolso.Name = "VerificaAprovarReembolso";
     //
     // CompleteTask_AprovarReembolso
     //
     correlationtoken1.Name = "TokenAprovarReembolso";
     correlationtoken1.OwnerActivityName = "Estado_AprovarReembolso";
     this.CompleteTask_AprovarReembolso.CorrelationToken = correlationtoken1;
     this.CompleteTask_AprovarReembolso.Name             = "CompleteTask_AprovarReembolso";
     activitybind1.Name = "WFReembolsoDespesas";
     activitybind1.Path = "CreateTask_AprovarReembolso_TaskId1";
     this.CompleteTask_AprovarReembolso.TaskOutcome = null;
     this.CompleteTask_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // TaskChanged_AprovarReembolso
     //
     this.TaskChanged_AprovarReembolso.AfterProperties  = null;
     this.TaskChanged_AprovarReembolso.BeforeProperties = null;
     this.TaskChanged_AprovarReembolso.CorrelationToken = correlationtoken1;
     this.TaskChanged_AprovarReembolso.Executor         = null;
     this.TaskChanged_AprovarReembolso.Name             = "TaskChanged_AprovarReembolso";
     activitybind2.Name = "WFReembolsoDespesas";
     activitybind2.Path = "CreateTask_AprovarReembolso_TaskId1";
     this.TaskChanged_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // TaskCreated_AprovarReembolso
     //
     activitybind3.Name = "WFReembolsoDespesas";
     activitybind3.Path = "TaskCreated_AprovarReembolso_AfterProperties1";
     this.TaskCreated_AprovarReembolso.CorrelationToken = correlationtoken1;
     this.TaskCreated_AprovarReembolso.Executor         = null;
     this.TaskCreated_AprovarReembolso.Name             = "TaskCreated_AprovarReembolso";
     activitybind4.Name = "WFReembolsoDespesas";
     activitybind4.Path = "CreateTask_AprovarReembolso_TaskId1";
     this.TaskCreated_AprovarReembolso.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.TaskCreated_AprovarReembolso_Invoked);
     this.TaskCreated_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskCreated.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.TaskCreated_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskCreated.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // CreateTask_AprovarReembolso
     //
     activitybind5.Name = "WFReembolsoDespesas";
     activitybind5.Path = "CreateTask_AprovarReembolso_ContentTypeId1";
     this.CreateTask_AprovarReembolso.CorrelationToken   = correlationtoken1;
     this.CreateTask_AprovarReembolso.ListItemId         = -1;
     this.CreateTask_AprovarReembolso.Name               = "CreateTask_AprovarReembolso";
     this.CreateTask_AprovarReembolso.SpecialPermissions = null;
     activitybind6.Name = "WFReembolsoDespesas";
     activitybind6.Path = "CreateTask_AprovarReembolso_TaskId1";
     activitybind7.Name = "WFReembolsoDespesas";
     activitybind7.Path = "CreateTask_AprovarReembolso_TaskProperties1";
     this.CreateTask_AprovarReembolso.MethodInvoking += new System.EventHandler(this.CreateTask_AprovarReembolso_MethodInvoking);
     this.CreateTask_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.CreateTask_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     this.CreateTask_AprovarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // ValidaRevisarReembolso
     //
     this.ValidaRevisarReembolso.Activities.Add(this.IfAprovadoRevisarReembolso);
     this.ValidaRevisarReembolso.Activities.Add(this.ifElseBranchActivity4);
     this.ValidaRevisarReembolso.Name = "ValidaRevisarReembolso";
     //
     // CompleteTask_RevisarReembolso
     //
     correlationtoken2.Name = "TokenRevisarReembolso";
     correlationtoken2.OwnerActivityName = "Estado_RevisarReembolso";
     this.CompleteTask_RevisarReembolso.CorrelationToken = correlationtoken2;
     this.CompleteTask_RevisarReembolso.Name             = "CompleteTask_RevisarReembolso";
     activitybind8.Name = "WFReembolsoDespesas";
     activitybind8.Path = "CreateTask_RevisarReembolso_TaskId1";
     this.CompleteTask_RevisarReembolso.TaskOutcome = null;
     this.CompleteTask_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
     //
     // TaskChanged_RevisarReembolso
     //
     activitybind9.Name = "WFReembolsoDespesas";
     activitybind9.Path = "TaskChanged_RevisarReembolso_AfterProperties1";
     this.TaskChanged_RevisarReembolso.BeforeProperties = null;
     this.TaskChanged_RevisarReembolso.CorrelationToken = correlationtoken2;
     this.TaskChanged_RevisarReembolso.Executor         = null;
     this.TaskChanged_RevisarReembolso.Name             = "TaskChanged_RevisarReembolso";
     activitybind10.Name = "WFReembolsoDespesas";
     activitybind10.Path = "CreateTask_RevisarReembolso_TaskId1";
     this.TaskChanged_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
     this.TaskChanged_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
     //
     // TaskCreated_RevisarReembolso
     //
     activitybind11.Name = "WFReembolsoDespesas";
     activitybind11.Path = "TaskChanged_RevisarReembolso_AfterProperties1";
     this.TaskCreated_RevisarReembolso.CorrelationToken = correlationtoken2;
     this.TaskCreated_RevisarReembolso.Executor         = null;
     this.TaskCreated_RevisarReembolso.Name             = "TaskCreated_RevisarReembolso";
     activitybind12.Name = "WFReembolsoDespesas";
     activitybind12.Path = "CreateTask_RevisarReembolso_TaskId1";
     this.TaskCreated_RevisarReembolso.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.TaskCreated_RevisarReembolso_Invoked);
     this.TaskCreated_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskCreated.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
     this.TaskCreated_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskCreated.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
     //
     // CreateTask_RevisarReembolso
     //
     activitybind13.Name = "WFReembolsoDespesas";
     activitybind13.Path = "CreateTask_RevisarReembolso_ContentTypeId1";
     this.CreateTask_RevisarReembolso.CorrelationToken   = correlationtoken2;
     this.CreateTask_RevisarReembolso.ListItemId         = -1;
     this.CreateTask_RevisarReembolso.Name               = "CreateTask_RevisarReembolso";
     this.CreateTask_RevisarReembolso.SpecialPermissions = null;
     activitybind14.Name = "WFReembolsoDespesas";
     activitybind14.Path = "CreateTask_RevisarReembolso_TaskId1";
     activitybind15.Name = "WFReembolsoDespesas";
     activitybind15.Path = "CreateTask_RevisarReembolso_TaskProperties1";
     this.CreateTask_RevisarReembolso.MethodInvoking += new System.EventHandler(this.CreateTask_RevisarReembolso_MethodInvoking);
     this.CreateTask_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
     this.CreateTask_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
     this.CreateTask_RevisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
     //
     // VerificaAnalisarReembolso
     //
     this.VerificaAnalisarReembolso.Activities.Add(this.IfAprovadoAnalisarReembolso);
     this.VerificaAnalisarReembolso.Activities.Add(this.IfReprovadoAnalisarReembolso);
     this.VerificaAnalisarReembolso.Name = "VerificaAnalisarReembolso";
     //
     // CompleteTask_AnalisarReembolso
     //
     correlationtoken3.Name = "TokenAnalisarReembolso";
     correlationtoken3.OwnerActivityName = "EstadoAnalisarReembolso";
     this.CompleteTask_AnalisarReembolso.CorrelationToken = correlationtoken3;
     this.CompleteTask_AnalisarReembolso.Name             = "CompleteTask_AnalisarReembolso";
     activitybind16.Name = "WFReembolsoDespesas";
     activitybind16.Path = "CreateTask_AnalisarReembolso_TaskId1";
     this.CompleteTask_AnalisarReembolso.TaskOutcome = null;
     this.CompleteTask_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
     //
     // TaskChanged_AnalisarReembolso
     //
     this.TaskChanged_AnalisarReembolso.AfterProperties  = null;
     this.TaskChanged_AnalisarReembolso.BeforeProperties = null;
     this.TaskChanged_AnalisarReembolso.CorrelationToken = correlationtoken3;
     this.TaskChanged_AnalisarReembolso.Executor         = null;
     this.TaskChanged_AnalisarReembolso.Name             = "TaskChanged_AnalisarReembolso";
     activitybind17.Name = "WFReembolsoDespesas";
     activitybind17.Path = "CreateTask_AnalisarReembolso_TaskId1";
     this.TaskChanged_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
     //
     // TaskCreated_AnalisarReembolso
     //
     activitybind18.Name = "WFReembolsoDespesas";
     activitybind18.Path = "TaskCreated_AnalisarReembolso_AfterProperties1";
     this.TaskCreated_AnalisarReembolso.CorrelationToken = correlationtoken3;
     this.TaskCreated_AnalisarReembolso.Executor         = null;
     this.TaskCreated_AnalisarReembolso.Name             = "TaskCreated_AnalisarReembolso";
     activitybind19.Name = "WFReembolsoDespesas";
     activitybind19.Path = "CreateTask_AnalisarReembolso_TaskId1";
     this.TaskCreated_AnalisarReembolso.Invoked += new System.EventHandler <System.Workflow.Activities.ExternalDataEventArgs>(this.TaskCreated_AnalisarReembolso_Invoked);
     this.TaskCreated_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskCreated.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
     this.TaskCreated_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskCreated.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
     //
     // CreateTask_AnalisarReembolso
     //
     activitybind20.Name = "WFReembolsoDespesas";
     activitybind20.Path = "CreateTask_AnalisarReembolso_ContentTypeId1";
     this.CreateTask_AnalisarReembolso.CorrelationToken   = correlationtoken3;
     this.CreateTask_AnalisarReembolso.ListItemId         = -1;
     this.CreateTask_AnalisarReembolso.Name               = "CreateTask_AnalisarReembolso";
     this.CreateTask_AnalisarReembolso.SpecialPermissions = null;
     activitybind21.Name = "WFReembolsoDespesas";
     activitybind21.Path = "CreateTask_AnalisarReembolso_TaskId1";
     activitybind22.Name = "WFReembolsoDespesas";
     activitybind22.Path = "CreateTask_AnalisarReembolso_TaskProperties1";
     this.CreateTask_AnalisarReembolso.MethodInvoking += new System.EventHandler(this.CreateTask_AnalisarReembolso_MethodInvoking);
     this.CreateTask_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
     this.CreateTask_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind21)));
     this.CreateTask_AnalisarReembolso.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind22)));
     //
     // IrParaAnalisarReembolso
     //
     this.IrParaAnalisarReembolso.Name            = "IrParaAnalisarReembolso";
     this.IrParaAnalisarReembolso.TargetStateName = "EstadoAnalisarReembolso";
     //
     // onWorkflowActivated1
     //
     correlationtoken4.Name = "workflowToken";
     correlationtoken4.OwnerActivityName        = "WFReembolsoDespesas";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken4;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind23.Name = "WFReembolsoDespesas";
     activitybind23.Path = "workflowProperties";
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind23)));
     //
     // ED_TaskComplete_AprovarReembolso
     //
     this.ED_TaskComplete_AprovarReembolso.Activities.Add(this.TaskChanged_AprovarReembolso);
     this.ED_TaskComplete_AprovarReembolso.Activities.Add(this.CompleteTask_AprovarReembolso);
     this.ED_TaskComplete_AprovarReembolso.Activities.Add(this.VerificaAprovarReembolso);
     this.ED_TaskComplete_AprovarReembolso.Name = "ED_TaskComplete_AprovarReembolso";
     //
     // ED_TaskCreated_AprovarReembolso
     //
     this.ED_TaskCreated_AprovarReembolso.Activities.Add(this.TaskCreated_AprovarReembolso);
     this.ED_TaskCreated_AprovarReembolso.Name = "ED_TaskCreated_AprovarReembolso";
     //
     // Inicial_AprovarReembolso
     //
     this.Inicial_AprovarReembolso.Activities.Add(this.CreateTask_AprovarReembolso);
     this.Inicial_AprovarReembolso.Name = "Inicial_AprovarReembolso";
     //
     // ED_TaskComplete_RevisarReembolso
     //
     this.ED_TaskComplete_RevisarReembolso.Activities.Add(this.TaskChanged_RevisarReembolso);
     this.ED_TaskComplete_RevisarReembolso.Activities.Add(this.CompleteTask_RevisarReembolso);
     this.ED_TaskComplete_RevisarReembolso.Activities.Add(this.ValidaRevisarReembolso);
     this.ED_TaskComplete_RevisarReembolso.Name = "ED_TaskComplete_RevisarReembolso";
     //
     // ED_TaskCreated_RevisarReembolso
     //
     this.ED_TaskCreated_RevisarReembolso.Activities.Add(this.TaskCreated_RevisarReembolso);
     this.ED_TaskCreated_RevisarReembolso.Name = "ED_TaskCreated_RevisarReembolso";
     //
     // Inicial_RevisarReembolso
     //
     this.Inicial_RevisarReembolso.Activities.Add(this.CreateTask_RevisarReembolso);
     this.Inicial_RevisarReembolso.Name = "Inicial_RevisarReembolso";
     //
     // ED_TaskComplete_AnalisarReembolso
     //
     this.ED_TaskComplete_AnalisarReembolso.Activities.Add(this.TaskChanged_AnalisarReembolso);
     this.ED_TaskComplete_AnalisarReembolso.Activities.Add(this.CompleteTask_AnalisarReembolso);
     this.ED_TaskComplete_AnalisarReembolso.Activities.Add(this.VerificaAnalisarReembolso);
     this.ED_TaskComplete_AnalisarReembolso.Name = "ED_TaskComplete_AnalisarReembolso";
     //
     // ED_TaskCreated_AnalisarReembolso
     //
     this.ED_TaskCreated_AnalisarReembolso.Activities.Add(this.TaskCreated_AnalisarReembolso);
     this.ED_TaskCreated_AnalisarReembolso.Name = "ED_TaskCreated_AnalisarReembolso";
     //
     // Inicial_AnalisarReembolso
     //
     this.Inicial_AnalisarReembolso.Activities.Add(this.CreateTask_AnalisarReembolso);
     this.Inicial_AnalisarReembolso.Name = "Inicial_AnalisarReembolso";
     //
     // ED_Inicial
     //
     this.ED_Inicial.Activities.Add(this.onWorkflowActivated1);
     this.ED_Inicial.Activities.Add(this.IrParaAnalisarReembolso);
     this.ED_Inicial.Name = "ED_Inicial";
     //
     // EstadoFinal
     //
     this.EstadoFinal.Name = "EstadoFinal";
     //
     // Estado_AprovarReembolso
     //
     this.Estado_AprovarReembolso.Activities.Add(this.Inicial_AprovarReembolso);
     this.Estado_AprovarReembolso.Activities.Add(this.ED_TaskCreated_AprovarReembolso);
     this.Estado_AprovarReembolso.Activities.Add(this.ED_TaskComplete_AprovarReembolso);
     this.Estado_AprovarReembolso.Name = "Estado_AprovarReembolso";
     //
     // Estado_RevisarReembolso
     //
     this.Estado_RevisarReembolso.Activities.Add(this.Inicial_RevisarReembolso);
     this.Estado_RevisarReembolso.Activities.Add(this.ED_TaskCreated_RevisarReembolso);
     this.Estado_RevisarReembolso.Activities.Add(this.ED_TaskComplete_RevisarReembolso);
     this.Estado_RevisarReembolso.Name = "Estado_RevisarReembolso";
     //
     // EstadoAnalisarReembolso
     //
     this.EstadoAnalisarReembolso.Activities.Add(this.Inicial_AnalisarReembolso);
     this.EstadoAnalisarReembolso.Activities.Add(this.ED_TaskCreated_AnalisarReembolso);
     this.EstadoAnalisarReembolso.Activities.Add(this.ED_TaskComplete_AnalisarReembolso);
     this.EstadoAnalisarReembolso.Name = "EstadoAnalisarReembolso";
     //
     // EstadoInicial
     //
     this.EstadoInicial.Activities.Add(this.ED_Inicial);
     this.EstadoInicial.Name = "EstadoInicial";
     //
     // WFReembolsoDespesas
     //
     this.Activities.Add(this.EstadoInicial);
     this.Activities.Add(this.EstadoAnalisarReembolso);
     this.Activities.Add(this.Estado_RevisarReembolso);
     this.Activities.Add(this.Estado_AprovarReembolso);
     this.Activities.Add(this.EstadoFinal);
     this.CompletedStateName     = "EstadoFinal";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "EstadoInicial";
     this.Name = "WFReembolsoDespesas";
     this.CanModifyActivities = false;
 }
        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();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.initializeStateCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity7 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity4 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.caShowMessageBox = new System.Workflow.Activities.CodeActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.finalizeStateCodeActivity_Finalize = new System.Workflow.Activities.CodeActivity();
            this.closeCurrentViewActivity1 = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.confirmDialogFormActivity1 = new Composite.C1Console.Workflow.Activities.ConfirmDialogFormActivity();
            this.ifTypeIsReferenced = new System.Workflow.Activities.IfElseActivity();
            this.finalizeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.step1EventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.step1EventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.step1StateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
            this.step1StateActivity = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "step1StateActivity";
            // 
            // initializeStateCodeActivity_Initialize
            // 
            this.initializeStateCodeActivity_Initialize.Name = "initializeStateCodeActivity_Initialize";
            this.initializeStateCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.initializeStateCodeActivity_Initialize_ExecuteCode);
            // 
            // setStateActivity7
            // 
            this.setStateActivity7.Name = "setStateActivity7";
            this.setStateActivity7.TargetStateName = "finalStateActivity";
            // 
            // ifElseBranchActivity4
            // 
            this.ifElseBranchActivity4.Activities.Add(this.initializeStateCodeActivity_Initialize);
            this.ifElseBranchActivity4.Activities.Add(this.setStateActivity4);
            this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
            // 
            // ifElseBranchActivity3
            // 
            this.ifElseBranchActivity3.Activities.Add(this.setStateActivity7);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsUsedByPageType);
            this.ifElseBranchActivity3.Condition = codecondition1;
            this.ifElseBranchActivity3.Description = "IsUsedByPageType";
            this.ifElseBranchActivity3.Name = "ifElseBranchActivity3";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity3);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity4);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "finalStateActivity";
            // 
            // caShowMessageBox
            // 
            this.caShowMessageBox.Name = "caShowMessageBox";
            this.caShowMessageBox.ExecuteCode += new System.EventHandler(this.codeActivity_ShowTypeIsReferencedWarning);
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.ifElseActivity1);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.caShowMessageBox);
            this.ifElseBranchActivity1.Activities.Add(this.setStateActivity6);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.TypeIsReferenced);
            this.ifElseBranchActivity1.Condition = codecondition2;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // finalizeStateCodeActivity_Finalize
            // 
            this.finalizeStateCodeActivity_Finalize.Name = "finalizeStateCodeActivity_Finalize";
            this.finalizeStateCodeActivity_Finalize.ExecuteCode += new System.EventHandler(this.finalizeStateCodeActivity_Finalize_ExecuteCode);
            // 
            // closeCurrentViewActivity1
            // 
            this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity2
            // 
            this.cancelHandleExternalEventActivity2.EventName = "Cancel";
            this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity2.Name = "cancelHandleExternalEventActivity2";
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "finalizeStateActivity";
            // 
            // finishHandleExternalEventActivity1
            // 
            this.finishHandleExternalEventActivity1.EventName = "Finish";
            this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity1.Name = "finishHandleExternalEventActivity1";
            // 
            // confirmDialogFormActivity1
            // 
            this.confirmDialogFormActivity1.ContainerLabel = null;
            this.confirmDialogFormActivity1.FormDefinitionFileName = "\\Administrative\\DeleteAggregationTypeStep1.xml";
            this.confirmDialogFormActivity1.Name = "confirmDialogFormActivity1";
            // 
            // ifTypeIsReferenced
            // 
            this.ifTypeIsReferenced.Activities.Add(this.ifElseBranchActivity1);
            this.ifTypeIsReferenced.Activities.Add(this.ifElseBranchActivity2);
            this.ifTypeIsReferenced.Name = "ifTypeIsReferenced";
            // 
            // finalizeStateInitializationActivity
            // 
            this.finalizeStateInitializationActivity.Activities.Add(this.closeCurrentViewActivity1);
            this.finalizeStateInitializationActivity.Activities.Add(this.finalizeStateCodeActivity_Finalize);
            this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity5);
            this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
            // 
            // step1EventDrivenActivity_Cancel
            // 
            this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
            this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
            this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
            // 
            // step1EventDrivenActivity_Finish
            // 
            this.step1EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
            this.step1EventDrivenActivity_Finish.Activities.Add(this.setStateActivity3);
            this.step1EventDrivenActivity_Finish.Name = "step1EventDrivenActivity_Finish";
            // 
            // step1StateInitializationActivity
            // 
            this.step1StateInitializationActivity.Activities.Add(this.confirmDialogFormActivity1);
            this.step1StateInitializationActivity.Name = "step1StateInitializationActivity";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.ifTypeIsReferenced);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // finalizeStateActivity
            // 
            this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
            this.finalizeStateActivity.Name = "finalizeStateActivity";
            // 
            // step1StateActivity
            // 
            this.step1StateActivity.Activities.Add(this.step1StateInitializationActivity);
            this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Finish);
            this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
            this.step1StateActivity.Name = "step1StateActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // DeleteAggregationTypeWorkflow
            // 
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.step1StateActivity);
            this.Activities.Add(this.finalizeStateActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "DeleteAggregationTypeWorkflow";
            this.CanModifyActivities = false;

        }
 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.Activities.CodeCondition codecondition6  = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition codecondition7  = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition codecondition8  = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition codecondition9  = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition codecondition10 = new System.Workflow.Activities.CodeCondition();
     this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
     this.RuleDontAllowPageAddCodeActivity = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity4                 = new System.Workflow.Activities.SetStateActivity();
     this.stepInitialize_codeActivity       = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity14            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity13            = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity9                 = new System.Workflow.Activities.SetStateActivity();
     this.MissingPageTypeCodeActivity       = new System.Workflow.Activities.CodeActivity();
     this.ifElse_RulesDontAllowPageAdd      = new System.Workflow.Activities.IfElseActivity();
     this.ifElseBranchActivity12            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity11            = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity6                 = new System.Workflow.Activities.SetStateActivity();
     this.MissingActiveLanguageCodeActivity = new System.Workflow.Activities.CodeActivity();
     this.ifElse_CheckPageTypesExists       = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity7                 = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity_GoToFinalize     = new System.Workflow.Activities.SetStateActivity();
     this.PresetCalculatedFields            = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity6             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity5             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity10            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity9             = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity20                = new System.Workflow.Activities.SetStateActivity();
     this.MissingTemplateAlertActivity      = new System.Workflow.Activities.CodeActivity();
     this.ifElse_CheckActiveLanguagesExists = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity_GoToStep2        = new System.Workflow.Activities.SetStateActivity();
     this.ifElseActivity4_ValidateUrlTitle  = new System.Workflow.Activities.IfElseActivity();
     this.ifElseBranchActivity8             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity7             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity4             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity3             = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity11                = new System.Workflow.Activities.SetStateActivity();
     this.ifElse_CheckTemplatesExists       = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity14                = new System.Workflow.Activities.SetStateActivity();
     this.ifElseActivity_CanSkipStep2       = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity13                = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity3                 = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity_redoStep2        = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity12                = new System.Workflow.Activities.SetStateActivity();
     this.ifElseBranchActivity16            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseCheckPageTypesExist         = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity19            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity18            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity17            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity15            = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity2             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1             = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity1   = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.ifElse_FirstPageValid = new System.Workflow.Activities.IfElseActivity();
     this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.ifFirstPageValid = new System.Workflow.Activities.IfElseActivity();
     this.nextHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.step1WizzardFormActivity         = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity1                  = new System.Workflow.Activities.SetStateActivity();
     this.stepFinalize_codeActivity          = new System.Workflow.Activities.CodeActivity();
     this.closeCurrentViewActivity1          = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.setStateActivity5                  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.ifElseActivity__ValidateUrlTitle   = new System.Workflow.Activities.IfElseActivity();
     this.handleExternalEventActivity5       = new System.Workflow.Activities.HandleExternalEventActivity();
     this.setStateActivity8                  = new System.Workflow.Activities.SetStateActivity();
     this.handleExternalEventActivity2       = new System.Workflow.Activities.HandleExternalEventActivity();
     this.step2WizzardFormActivity           = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.PrepareStep2       = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity19 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.step1_eventDrivenActivity_Cancel      = new System.Workflow.Activities.EventDrivenActivity();
     this.step1_eventDrivenActivity_Finish      = new System.Workflow.Activities.EventDrivenActivity();
     this.step1_eventDrivenActivity_Next        = new System.Workflow.Activities.EventDrivenActivity();
     this.step1StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.finalizeStateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.step2_eventDrivenActivity_Cancel      = new System.Workflow.Activities.EventDrivenActivity();
     this.step2_eventDrivenActivity_Finish      = new System.Workflow.Activities.EventDrivenActivity();
     this.step2_eventDrivenActivity_Previous    = new System.Workflow.Activities.EventDrivenActivity();
     this.step2StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.eventDrivenActivity_GlobalCancel      = new System.Workflow.Activities.EventDrivenActivity();
     this.initializeActivity = new System.Workflow.Activities.StateActivity();
     this.step1State         = new System.Workflow.Activities.StateActivity();
     this.finalizeActivity   = new System.Workflow.Activities.StateActivity();
     this.finishState        = new System.Workflow.Activities.StateActivity();
     this.step2State         = new System.Workflow.Activities.StateActivity();
     //
     // setStateActivity10
     //
     this.setStateActivity10.Name            = "setStateActivity10";
     this.setStateActivity10.TargetStateName = "finishState";
     //
     // RuleDontAllowPageAddCodeActivity
     //
     this.RuleDontAllowPageAddCodeActivity.Name         = "RuleDontAllowPageAddCodeActivity";
     this.RuleDontAllowPageAddCodeActivity.ExecuteCode += new System.EventHandler(this.RuleDontAllowPageAddCodeActivity_ExecuteCode);
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "step1State";
     //
     // stepInitialize_codeActivity
     //
     this.stepInitialize_codeActivity.Name         = "stepInitialize_codeActivity";
     this.stepInitialize_codeActivity.ExecuteCode += new System.EventHandler(this.stepInitialize_codeActivity_ExecuteCode);
     //
     // ifElseBranchActivity14
     //
     this.ifElseBranchActivity14.Activities.Add(this.RuleDontAllowPageAddCodeActivity);
     this.ifElseBranchActivity14.Activities.Add(this.setStateActivity10);
     this.ifElseBranchActivity14.Name = "ifElseBranchActivity14";
     //
     // ifElseBranchActivity13
     //
     this.ifElseBranchActivity13.Activities.Add(this.stepInitialize_codeActivity);
     this.ifElseBranchActivity13.Activities.Add(this.setStateActivity4);
     codecondition1.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CheckRulesAllowPageAddExists);
     this.ifElseBranchActivity13.Condition = codecondition1;
     this.ifElseBranchActivity13.Name      = "ifElseBranchActivity13";
     //
     // setStateActivity9
     //
     this.setStateActivity9.Name            = "setStateActivity9";
     this.setStateActivity9.TargetStateName = "finishState";
     //
     // MissingPageTypeCodeActivity
     //
     this.MissingPageTypeCodeActivity.Name         = "MissingPageTypeCodeActivity";
     this.MissingPageTypeCodeActivity.ExecuteCode += new System.EventHandler(this.MissingPageTypeCodeActivity_ExecuteCode);
     //
     // ifElse_RulesDontAllowPageAdd
     //
     this.ifElse_RulesDontAllowPageAdd.Activities.Add(this.ifElseBranchActivity13);
     this.ifElse_RulesDontAllowPageAdd.Activities.Add(this.ifElseBranchActivity14);
     this.ifElse_RulesDontAllowPageAdd.Name = "ifElse_RulesDontAllowPageAdd";
     //
     // ifElseBranchActivity12
     //
     this.ifElseBranchActivity12.Activities.Add(this.MissingPageTypeCodeActivity);
     this.ifElseBranchActivity12.Activities.Add(this.setStateActivity9);
     this.ifElseBranchActivity12.Name = "ifElseBranchActivity12";
     //
     // ifElseBranchActivity11
     //
     this.ifElseBranchActivity11.Activities.Add(this.ifElse_RulesDontAllowPageAdd);
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CheckPageTypeExists);
     this.ifElseBranchActivity11.Condition = codecondition2;
     this.ifElseBranchActivity11.Name      = "ifElseBranchActivity11";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "finishState";
     //
     // MissingActiveLanguageCodeActivity
     //
     this.MissingActiveLanguageCodeActivity.Name         = "MissingActiveLanguageCodeActivity";
     this.MissingActiveLanguageCodeActivity.ExecuteCode += new System.EventHandler(this.MissingActiveLanguageCodeActivity_ExecuteCode);
     //
     // ifElse_CheckPageTypesExists
     //
     this.ifElse_CheckPageTypesExists.Activities.Add(this.ifElseBranchActivity11);
     this.ifElse_CheckPageTypesExists.Activities.Add(this.ifElseBranchActivity12);
     this.ifElse_CheckPageTypesExists.Name = "ifElse_CheckPageTypesExists";
     //
     // setStateActivity7
     //
     this.setStateActivity7.Name            = "setStateActivity7";
     this.setStateActivity7.TargetStateName = "step1State";
     //
     // setStateActivity_GoToFinalize
     //
     this.setStateActivity_GoToFinalize.Name            = "setStateActivity_GoToFinalize";
     this.setStateActivity_GoToFinalize.TargetStateName = "finalizeActivity";
     //
     // PresetCalculatedFields
     //
     this.PresetCalculatedFields.Name         = "PresetCalculatedFields";
     this.PresetCalculatedFields.ExecuteCode += new System.EventHandler(this.PresetCalculatedFields_ExecuteCode);
     //
     // ifElseBranchActivity6
     //
     this.ifElseBranchActivity6.Activities.Add(this.MissingActiveLanguageCodeActivity);
     this.ifElseBranchActivity6.Activities.Add(this.setStateActivity6);
     this.ifElseBranchActivity6.Name = "ifElseBranchActivity6";
     //
     // ifElseBranchActivity5
     //
     this.ifElseBranchActivity5.Activities.Add(this.ifElse_CheckPageTypesExists);
     codecondition3.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CheckActiveLanguagesExists);
     this.ifElseBranchActivity5.Condition = codecondition3;
     this.ifElseBranchActivity5.Name      = "ifElseBranchActivity5";
     //
     // ifElseBranchActivity10
     //
     this.ifElseBranchActivity10.Activities.Add(this.setStateActivity7);
     this.ifElseBranchActivity10.Name = "ifElseBranchActivity10";
     //
     // ifElseBranchActivity9
     //
     this.ifElseBranchActivity9.Activities.Add(this.PresetCalculatedFields);
     this.ifElseBranchActivity9.Activities.Add(this.setStateActivity_GoToFinalize);
     codecondition4.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateUrlTitle);
     this.ifElseBranchActivity9.Condition = codecondition4;
     this.ifElseBranchActivity9.Name      = "ifElseBranchActivity9";
     //
     // setStateActivity20
     //
     this.setStateActivity20.Name            = "setStateActivity20";
     this.setStateActivity20.TargetStateName = "finishState";
     //
     // MissingTemplateAlertActivity
     //
     this.MissingTemplateAlertActivity.Name         = "MissingTemplateAlertActivity";
     this.MissingTemplateAlertActivity.ExecuteCode += new System.EventHandler(this.MissingTemplateAlertActivity_ExecuteCode);
     //
     // ifElse_CheckActiveLanguagesExists
     //
     this.ifElse_CheckActiveLanguagesExists.Activities.Add(this.ifElseBranchActivity5);
     this.ifElse_CheckActiveLanguagesExists.Activities.Add(this.ifElseBranchActivity6);
     this.ifElse_CheckActiveLanguagesExists.Name = "ifElse_CheckActiveLanguagesExists";
     //
     // setStateActivity_GoToStep2
     //
     this.setStateActivity_GoToStep2.Name            = "setStateActivity_GoToStep2";
     this.setStateActivity_GoToStep2.TargetStateName = "step2State";
     //
     // ifElseActivity4_ValidateUrlTitle
     //
     this.ifElseActivity4_ValidateUrlTitle.Activities.Add(this.ifElseBranchActivity9);
     this.ifElseActivity4_ValidateUrlTitle.Activities.Add(this.ifElseBranchActivity10);
     this.ifElseActivity4_ValidateUrlTitle.Description = "ValidateUrlTitle";
     this.ifElseActivity4_ValidateUrlTitle.Name        = "ifElseActivity4_ValidateUrlTitle";
     //
     // ifElseBranchActivity8
     //
     this.ifElseBranchActivity8.Activities.Add(this.MissingTemplateAlertActivity);
     this.ifElseBranchActivity8.Activities.Add(this.setStateActivity20);
     this.ifElseBranchActivity8.Name = "ifElseBranchActivity8";
     //
     // ifElseBranchActivity7
     //
     this.ifElseBranchActivity7.Activities.Add(this.ifElse_CheckActiveLanguagesExists);
     codecondition5.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CheckTemplatesExists);
     this.ifElseBranchActivity7.Condition = codecondition5;
     this.ifElseBranchActivity7.Name      = "ifElseBranchActivity7";
     //
     // ifElseBranchActivity4
     //
     this.ifElseBranchActivity4.Activities.Add(this.setStateActivity_GoToStep2);
     this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
     //
     // ifElseBranchActivity3
     //
     this.ifElseBranchActivity3.Activities.Add(this.ifElseActivity4_ValidateUrlTitle);
     codecondition6.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CanSkipStep2);
     this.ifElseBranchActivity3.Condition = codecondition6;
     this.ifElseBranchActivity3.Name      = "ifElseBranchActivity3";
     //
     // setStateActivity11
     //
     this.setStateActivity11.Name            = "setStateActivity11";
     this.setStateActivity11.TargetStateName = "finishState";
     //
     // ifElse_CheckTemplatesExists
     //
     this.ifElse_CheckTemplatesExists.Activities.Add(this.ifElseBranchActivity7);
     this.ifElse_CheckTemplatesExists.Activities.Add(this.ifElseBranchActivity8);
     this.ifElse_CheckTemplatesExists.Name = "ifElse_CheckTemplatesExists";
     //
     // setStateActivity14
     //
     this.setStateActivity14.Name            = "setStateActivity14";
     this.setStateActivity14.TargetStateName = "step1State";
     //
     // ifElseActivity_CanSkipStep2
     //
     this.ifElseActivity_CanSkipStep2.Activities.Add(this.ifElseBranchActivity3);
     this.ifElseActivity_CanSkipStep2.Activities.Add(this.ifElseBranchActivity4);
     this.ifElseActivity_CanSkipStep2.Name = "ifElseActivity_CanSkipStep2";
     //
     // setStateActivity13
     //
     this.setStateActivity13.Name            = "setStateActivity13";
     this.setStateActivity13.TargetStateName = "step1State";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "step2State";
     //
     // setStateActivity_redoStep2
     //
     this.setStateActivity_redoStep2.Name            = "setStateActivity_redoStep2";
     this.setStateActivity_redoStep2.TargetStateName = "step2State";
     //
     // setStateActivity12
     //
     this.setStateActivity12.Name            = "setStateActivity12";
     this.setStateActivity12.TargetStateName = "finalizeActivity";
     //
     // ifElseBranchActivity16
     //
     this.ifElseBranchActivity16.Activities.Add(this.setStateActivity11);
     this.ifElseBranchActivity16.Name = "ifElseBranchActivity16";
     //
     // ifElseCheckPageTypesExist
     //
     this.ifElseCheckPageTypesExist.Activities.Add(this.ifElse_CheckTemplatesExists);
     codecondition7.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.CheckPageTypesExist);
     this.ifElseCheckPageTypesExist.Condition = codecondition7;
     this.ifElseCheckPageTypesExist.Name      = "ifElseCheckPageTypesExist";
     //
     // ifElseBranchActivity19
     //
     this.ifElseBranchActivity19.Activities.Add(this.setStateActivity14);
     this.ifElseBranchActivity19.Name = "ifElseBranchActivity19";
     //
     // ifElseBranchActivity18
     //
     this.ifElseBranchActivity18.Activities.Add(this.ifElseActivity_CanSkipStep2);
     codecondition8.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateFirstPage);
     this.ifElseBranchActivity18.Condition = codecondition8;
     this.ifElseBranchActivity18.Name      = "ifElseBranchActivity18";
     //
     // ifElseBranchActivity17
     //
     this.ifElseBranchActivity17.Activities.Add(this.setStateActivity13);
     this.ifElseBranchActivity17.Name = "ifElseBranchActivity17";
     //
     // ifElseBranchActivity15
     //
     this.ifElseBranchActivity15.Activities.Add(this.setStateActivity3);
     codecondition9.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateFirstPage);
     this.ifElseBranchActivity15.Condition = codecondition9;
     this.ifElseBranchActivity15.Name      = "ifElseBranchActivity15";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity_redoStep2);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity12);
     codecondition10.Condition           += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateUrlTitle);
     this.ifElseBranchActivity1.Condition = codecondition10;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseCheckPageTypesExist);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity16);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "finishState";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // ifElse_FirstPageValid
     //
     this.ifElse_FirstPageValid.Activities.Add(this.ifElseBranchActivity18);
     this.ifElse_FirstPageValid.Activities.Add(this.ifElseBranchActivity19);
     this.ifElse_FirstPageValid.Name = "ifElse_FirstPageValid";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // ifFirstPageValid
     //
     this.ifFirstPageValid.Activities.Add(this.ifElseBranchActivity15);
     this.ifFirstPageValid.Activities.Add(this.ifElseBranchActivity17);
     this.ifFirstPageValid.Name = "ifFirstPageValid";
     //
     // nextHandleExternalEventActivity1
     //
     this.nextHandleExternalEventActivity1.EventName     = "Next";
     this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity1.Name          = "nextHandleExternalEventActivity1";
     //
     // step1WizzardFormActivity
     //
     this.step1WizzardFormActivity.ContainerLabel         = "Add new";
     this.step1WizzardFormActivity.FormDefinitionFileName = "\\Administrative\\AddNewPageStep1.xml";
     this.step1WizzardFormActivity.Name = "step1WizzardFormActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finishState";
     //
     // stepFinalize_codeActivity
     //
     this.stepFinalize_codeActivity.Name         = "stepFinalize_codeActivity";
     this.stepFinalize_codeActivity.ExecuteCode += new System.EventHandler(this.stepFinalize_codeActivity_ExecuteCode);
     //
     // closeCurrentViewActivity1
     //
     this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finishState";
     //
     // cancelHandleExternalEventActivity3
     //
     this.cancelHandleExternalEventActivity3.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity3.Name          = "cancelHandleExternalEventActivity3";
     //
     // ifElseActivity__ValidateUrlTitle
     //
     this.ifElseActivity__ValidateUrlTitle.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity__ValidateUrlTitle.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity__ValidateUrlTitle.Name = "ifElseActivity__ValidateUrlTitle";
     //
     // handleExternalEventActivity5
     //
     this.handleExternalEventActivity5.EventName     = "Finish";
     this.handleExternalEventActivity5.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.handleExternalEventActivity5.Name          = "handleExternalEventActivity5";
     //
     // setStateActivity8
     //
     this.setStateActivity8.Name            = "setStateActivity8";
     this.setStateActivity8.TargetStateName = "step1State";
     //
     // handleExternalEventActivity2
     //
     this.handleExternalEventActivity2.EventName     = "Previous";
     this.handleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.handleExternalEventActivity2.Name          = "handleExternalEventActivity2";
     //
     // step2WizzardFormActivity
     //
     this.step2WizzardFormActivity.ContainerLabel         = "Add new";
     this.step2WizzardFormActivity.FormDefinitionFileName = "\\Administrative\\AddNewPageStep2.xml";
     this.step2WizzardFormActivity.Name = "step2WizzardFormActivity";
     //
     // PrepareStep2
     //
     this.PrepareStep2.Name         = "PrepareStep2";
     this.PrepareStep2.ExecuteCode += new System.EventHandler(this.PrepareStep2_ExecuteCode);
     //
     // setStateActivity19
     //
     this.setStateActivity19.Name            = "setStateActivity19";
     this.setStateActivity19.TargetStateName = "finishState";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.ifElseActivity1);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // step1_eventDrivenActivity_Cancel
     //
     this.step1_eventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step1_eventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
     this.step1_eventDrivenActivity_Cancel.Name = "step1_eventDrivenActivity_Cancel";
     //
     // step1_eventDrivenActivity_Finish
     //
     this.step1_eventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.step1_eventDrivenActivity_Finish.Activities.Add(this.ifElse_FirstPageValid);
     this.step1_eventDrivenActivity_Finish.Name = "step1_eventDrivenActivity_Finish";
     //
     // step1_eventDrivenActivity_Next
     //
     this.step1_eventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity1);
     this.step1_eventDrivenActivity_Next.Activities.Add(this.ifFirstPageValid);
     this.step1_eventDrivenActivity_Next.Name = "step1_eventDrivenActivity_Next";
     //
     // step1StateInitializationActivity
     //
     this.step1StateInitializationActivity.Activities.Add(this.step1WizzardFormActivity);
     this.step1StateInitializationActivity.Name = "step1StateInitializationActivity";
     //
     // finalizeStateInitializationActivity
     //
     this.finalizeStateInitializationActivity.Activities.Add(this.closeCurrentViewActivity1);
     this.finalizeStateInitializationActivity.Activities.Add(this.stepFinalize_codeActivity);
     this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity1);
     this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
     //
     // step2_eventDrivenActivity_Cancel
     //
     this.step2_eventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
     this.step2_eventDrivenActivity_Cancel.Activities.Add(this.setStateActivity5);
     this.step2_eventDrivenActivity_Cancel.Name = "step2_eventDrivenActivity_Cancel";
     //
     // step2_eventDrivenActivity_Finish
     //
     this.step2_eventDrivenActivity_Finish.Activities.Add(this.handleExternalEventActivity5);
     this.step2_eventDrivenActivity_Finish.Activities.Add(this.ifElseActivity__ValidateUrlTitle);
     this.step2_eventDrivenActivity_Finish.Name = "step2_eventDrivenActivity_Finish";
     //
     // step2_eventDrivenActivity_Previous
     //
     this.step2_eventDrivenActivity_Previous.Activities.Add(this.handleExternalEventActivity2);
     this.step2_eventDrivenActivity_Previous.Activities.Add(this.setStateActivity8);
     this.step2_eventDrivenActivity_Previous.Name = "step2_eventDrivenActivity_Previous";
     //
     // step2StateInitializationActivity
     //
     this.step2StateInitializationActivity.Activities.Add(this.PrepareStep2);
     this.step2StateInitializationActivity.Activities.Add(this.step2WizzardFormActivity);
     this.step2StateInitializationActivity.Name = "step2StateInitializationActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity19);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // initializeActivity
     //
     this.initializeActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeActivity.Name = "initializeActivity";
     //
     // step1State
     //
     this.step1State.Activities.Add(this.step1StateInitializationActivity);
     this.step1State.Activities.Add(this.step1_eventDrivenActivity_Next);
     this.step1State.Activities.Add(this.step1_eventDrivenActivity_Finish);
     this.step1State.Activities.Add(this.step1_eventDrivenActivity_Cancel);
     this.step1State.Name = "step1State";
     //
     // finalizeActivity
     //
     this.finalizeActivity.Activities.Add(this.finalizeStateInitializationActivity);
     this.finalizeActivity.Name = "finalizeActivity";
     //
     // finishState
     //
     this.finishState.Name = "finishState";
     //
     // step2State
     //
     this.step2State.Activities.Add(this.step2StateInitializationActivity);
     this.step2State.Activities.Add(this.step2_eventDrivenActivity_Previous);
     this.step2State.Activities.Add(this.step2_eventDrivenActivity_Finish);
     this.step2State.Activities.Add(this.step2_eventDrivenActivity_Cancel);
     this.step2State.Name = "step2State";
     //
     // AddNewPageWorkflow
     //
     this.Activities.Add(this.step2State);
     this.Activities.Add(this.finishState);
     this.Activities.Add(this.finalizeActivity);
     this.Activities.Add(this.step1State);
     this.Activities.Add(this.initializeActivity);
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.CompletedStateName     = "finishState";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeActivity";
     this.Name = "AddNewPageWorkflow";
     this.CanModifyActivities = false;
 }
Esempio n. 34
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.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.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            this.onTaskChanged1 = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.onWorkflowItemChanged1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowItemChanged();
            this.logToHistoryListActivity2 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.completeTask1 = new Microsoft.SharePoint.WorkflowActions.CompleteTask();
            this.whileActivity2 = new System.Workflow.Activities.WhileActivity();
            this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.createTaskWithContentType1 = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
            this.whileActivity1 = new System.Workflow.Activities.WhileActivity();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // onTaskChanged1
            // 
            activitybind1.Name = "OneApproval";
            activitybind1.Path = "onTaskChanged1_AfterProperties1";
            activitybind2.Name = "OneApproval";
            activitybind2.Path = "onTaskChanged1_BeforeProperties1";
            correlationtoken1.Name = "Approval1";
            correlationtoken1.OwnerActivityName = "OneApproval";
            this.onTaskChanged1.CorrelationToken = correlationtoken1;
            this.onTaskChanged1.Executor = null;
            this.onTaskChanged1.Name = "onTaskChanged1";
            activitybind3.Name = "OneApproval";
            activitybind3.Path = "TaskId";
            this.onTaskChanged1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked);
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // onWorkflowItemChanged1
            // 
            this.onWorkflowItemChanged1.AfterProperties = null;
            this.onWorkflowItemChanged1.BeforeProperties = null;
            correlationtoken2.Name = "workflowToken";
            correlationtoken2.OwnerActivityName = "OneApproval";
            this.onWorkflowItemChanged1.CorrelationToken = correlationtoken2;
            this.onWorkflowItemChanged1.Name = "onWorkflowItemChanged1";
            this.onWorkflowItemChanged1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowItemChanged1_Invoked);
            // 
            // logToHistoryListActivity2
            // 
            this.logToHistoryListActivity2.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity2.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind4.Name = "OneApproval";
            activitybind4.Path = "logToHistoryListActivity2_HistoryDescription1";
            activitybind5.Name = "OneApproval";
            activitybind5.Path = "logToHistoryListActivity2_HistoryOutcome1";
            this.logToHistoryListActivity2.Name = "logToHistoryListActivity2";
            this.logToHistoryListActivity2.OtherData = "";
            this.logToHistoryListActivity2.UserId = -1;
            this.logToHistoryListActivity2.MethodInvoking += new System.EventHandler(this.logToHistoryListActivity2_MethodInvoking);
            this.logToHistoryListActivity2.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.logToHistoryListActivity2.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // completeTask1
            // 
            this.completeTask1.CorrelationToken = correlationtoken1;
            this.completeTask1.Name = "completeTask1";
            activitybind6.Name = "OneApproval";
            activitybind6.Path = "TaskId";
            this.completeTask1.TaskOutcome = null;
            this.completeTask1.SetBinding(Microsoft.SharePoint.WorkflowActions.CompleteTask.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // whileActivity2
            // 
            this.whileActivity2.Activities.Add(this.onTaskChanged1);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckApprovalAction);
            this.whileActivity2.Condition = codecondition1;
            this.whileActivity2.Name = "whileActivity2";
            // 
            // logToHistoryListActivity1
            // 
            this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind7.Name = "OneApproval";
            activitybind7.Path = "logToHistoryListActivity1_HistoryDescription1";
            activitybind8.Name = "OneApproval";
            activitybind8.Path = "logToHistoryListActivity1_HistoryOutcome1";
            this.logToHistoryListActivity1.Name = "logToHistoryListActivity1";
            this.logToHistoryListActivity1.OtherData = "";
            this.logToHistoryListActivity1.UserId = -1;
            this.logToHistoryListActivity1.MethodInvoking += new System.EventHandler(this.logToHistoryListActivity1_MethodInvoking);
            this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            // 
            // createTaskWithContentType1
            // 
            activitybind9.Name = "OneApproval";
            activitybind9.Path = "ContentTypeID";
            this.createTaskWithContentType1.CorrelationToken = correlationtoken1;
            this.createTaskWithContentType1.ListItemId = -1;
            this.createTaskWithContentType1.Name = "createTaskWithContentType1";
            this.createTaskWithContentType1.SpecialPermissions = null;
            activitybind10.Name = "OneApproval";
            activitybind10.Path = "TaskId";
            activitybind11.Name = "OneApproval";
            activitybind11.Path = "createTaskWithContentType1_TaskProperties1";
            this.createTaskWithContentType1.MethodInvoking += new System.EventHandler(this.createTaskWithContentType1_MethodInvoking);
            this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            this.createTaskWithContentType1.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            // 
            // whileActivity1
            // 
            this.whileActivity1.Activities.Add(this.onWorkflowItemChanged1);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckApprovalInput);
            this.whileActivity1.Condition = codecondition2;
            this.whileActivity1.Name = "whileActivity1";
            activitybind13.Name = "OneApproval";
            activitybind13.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            this.onWorkflowActivated1.CorrelationToken = correlationtoken2;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind12.Name = "OneApproval";
            activitybind12.Path = "workflowProperties";
            this.onWorkflowActivated1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked_1);
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            // 
            // OneApproval
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.whileActivity1);
            this.Activities.Add(this.createTaskWithContentType1);
            this.Activities.Add(this.logToHistoryListActivity1);
            this.Activities.Add(this.whileActivity2);
            this.Activities.Add(this.completeTask1);
            this.Activities.Add(this.logToHistoryListActivity2);
            this.Name = "OneApproval";
            this.CanModifyActivities = false;

        }
Esempio n. 35
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.SaveCodeActivity   = new System.Workflow.Activities.CodeActivity();
     this.elseBranchActivity = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifValidateActivity = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity2  = new System.Workflow.Activities.SetStateActivity();
     this.ifElseActivity1    = new System.Workflow.Activities.IfElseActivity();
     this.saveHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.SaveHandleExternalEventActivity();
     this.documentFormActivity1            = new Composite.C1Console.Workflow.Activities.DocumentFormActivity();
     this.InitCodeActivity  = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.eventDrivenActivity_Save           = new System.Workflow.Activities.EventDrivenActivity();
     this.EditStateInitializationActivity    = new System.Workflow.Activities.StateInitializationActivity();
     this.GlobalEventDrivenActivity          = new System.Workflow.Activities.EventDrivenActivity();
     this.FinishActivity = new System.Workflow.Activities.StateActivity();
     this.EditPackageWorkflowInitialState = new System.Workflow.Activities.StateActivity();
     //
     // SaveCodeActivity
     //
     this.SaveCodeActivity.Name         = "SaveCodeActivity";
     this.SaveCodeActivity.ExecuteCode += new System.EventHandler(this.SaveCodeActivity_ExecuteCode);
     //
     // elseBranchActivity
     //
     this.elseBranchActivity.Name = "elseBranchActivity";
     //
     // ifValidateActivity
     //
     this.ifValidateActivity.Activities.Add(this.SaveCodeActivity);
     codecondition1.Condition         += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateSave);
     this.ifValidateActivity.Condition = codecondition1;
     this.ifValidateActivity.Name      = "ifValidateActivity";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "EditPackageWorkflowInitialState";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifValidateActivity);
     this.ifElseActivity1.Activities.Add(this.elseBranchActivity);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // saveHandleExternalEventActivity1
     //
     this.saveHandleExternalEventActivity1.EventName     = "Save";
     this.saveHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.saveHandleExternalEventActivity1.Name          = "saveHandleExternalEventActivity1";
     //
     // documentFormActivity1
     //
     this.documentFormActivity1.ContainerLabel = null;
     this.documentFormActivity1.CustomToolbarDefinitionFileName = "\\InstalledPackages\\Composite.Tools.PackageCreator\\PackageInfoToolbar.xml";
     this.documentFormActivity1.FormDefinitionFileName          = "\\InstalledPackages\\Composite.Tools.PackageCreator\\PackageInfo.xml";
     this.documentFormActivity1.Name = "documentFormActivity1";
     //
     // InitCodeActivity
     //
     this.InitCodeActivity.Name         = "InitCodeActivity";
     this.InitCodeActivity.ExecuteCode += new System.EventHandler(this.InitCodeActivity_ExecuteCode);
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "FinishActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // eventDrivenActivity_Save
     //
     this.eventDrivenActivity_Save.Activities.Add(this.saveHandleExternalEventActivity1);
     this.eventDrivenActivity_Save.Activities.Add(this.ifElseActivity1);
     this.eventDrivenActivity_Save.Activities.Add(this.setStateActivity2);
     this.eventDrivenActivity_Save.Name = "eventDrivenActivity_Save";
     //
     // EditStateInitializationActivity
     //
     this.EditStateInitializationActivity.Activities.Add(this.InitCodeActivity);
     this.EditStateInitializationActivity.Activities.Add(this.documentFormActivity1);
     this.EditStateInitializationActivity.Name = "EditStateInitializationActivity";
     //
     // GlobalEventDrivenActivity
     //
     this.GlobalEventDrivenActivity.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.GlobalEventDrivenActivity.Activities.Add(this.setStateActivity1);
     this.GlobalEventDrivenActivity.Name = "GlobalEventDrivenActivity";
     //
     // FinishActivity
     //
     this.FinishActivity.Name = "FinishActivity";
     //
     // EditPackageWorkflowInitialState
     //
     this.EditPackageWorkflowInitialState.Activities.Add(this.EditStateInitializationActivity);
     this.EditPackageWorkflowInitialState.Activities.Add(this.eventDrivenActivity_Save);
     this.EditPackageWorkflowInitialState.Name = "EditPackageWorkflowInitialState";
     //
     // EditPackageWorkflow
     //
     this.Activities.Add(this.EditPackageWorkflowInitialState);
     this.Activities.Add(this.FinishActivity);
     this.Activities.Add(this.GlobalEventDrivenActivity);
     this.CompletedStateName     = "FinishActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "EditPackageWorkflowInitialState";
     this.Name = "EditPackageWorkflow";
     this.CanModifyActivities = false;
 }
Esempio n. 36
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.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.Activities.CodeCondition codecondition6 = 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.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.Activities.CodeCondition codecondition7 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition8 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition9 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition10 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition11 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            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 activitybind19 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind18 = new System.Workflow.ComponentModel.ActivityBind();
            this.logManagedForms = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.UpdateMessage = new System.Workflow.Activities.CodeActivity();
            this.Manage_PDW1 = new System.Workflow.Activities.CodeActivity();
            this.Manage_PD5 = new System.Workflow.Activities.CodeActivity();
            this.logFirmaZewnetrzna = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Manage_PD4 = new System.Workflow.Activities.CodeActivity();
            this.logFirma = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Manage_PDW = new System.Workflow.Activities.CodeActivity();
            this.Manage_PD1 = new System.Workflow.Activities.CodeActivity();
            this.Manage_ZUS3 = new System.Workflow.Activities.CodeActivity();
            this.logOsobaFizyczna = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Manage_Reminders2 = new System.Workflow.Activities.CodeActivity();
            this.Manage_RBR2 = new System.Workflow.Activities.CodeActivity();
            this.Manage_VAT2 = new System.Workflow.Activities.CodeActivity();
            this.Manage_PDS = new System.Workflow.Activities.CodeActivity();
            this.Manage_ZUS2 = new System.Workflow.Activities.CodeActivity();
            this.logKSH = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Manage_Reminders = new System.Workflow.Activities.CodeActivity();
            this.Manage_RBR = new System.Workflow.Activities.CodeActivity();
            this.Manage_VAT = new System.Workflow.Activities.CodeActivity();
            this.Manage_PD = new System.Workflow.Activities.CodeActivity();
            this.Manage_ZUS = new System.Workflow.Activities.CodeActivity();
            this.logKPiR = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.ifManagedForms = new System.Workflow.Activities.IfElseBranchActivity();
            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.ManagedForms = new System.Workflow.Activities.IfElseActivity();
            this.Case_CT = new System.Workflow.Activities.IfElseActivity();
            this.logKlient = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Set_Klient = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity6 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Select_Klienci4 = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity3 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.logRefinedCounter1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Refine_Klienci2 = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity5 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Select_Klienci3 = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity2 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.logToHistoryListActivity4 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Select_Klienci2 = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.logRefinedCounter = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Refine_Klienci = new System.Workflow.Activities.CodeActivity();
            this.logKlientCounter = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.Select_Klienci = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
            this.None = new System.Workflow.Activities.IfElseBranchActivity();
            this.Serwis = new System.Workflow.Activities.IfElseBranchActivity();
            this.TypK = new System.Workflow.Activities.IfElseBranchActivity();
            this.TypK_Serwis = new System.Workflow.Activities.IfElseBranchActivity();
            this.UpdateItem = new System.Workflow.Activities.CodeActivity();
            this.logToHistoryListActivity7 = 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.whileKlient = new System.Workflow.Activities.WhileActivity();
            this.Prepare_List = new System.Workflow.Activities.CodeActivity();
            this.Case = new System.Workflow.Activities.IfElseActivity();
            this.Preset_ot = new System.Workflow.Activities.CodeActivity();
            this.faultHandlerActivity1 = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.ifValidRequest = new System.Workflow.Activities.IfElseBranchActivity();
            this.faultHandlersActivity1 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.UpdateItem2 = new System.Workflow.Activities.CodeActivity();
            this.Set_Status_Zakonczony = new System.Workflow.Activities.CodeActivity();
            this.ReportTime = new System.Workflow.Activities.CodeActivity();
            this.send_CtrlMsg2 = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.ValidateRequest = new System.Workflow.Activities.IfElseActivity();
            this.send_CtrMsg = new Microsoft.SharePoint.WorkflowActions.SendEmail();
            this.UpdateItem3 = new System.Workflow.Activities.CodeActivity();
            this.Set_Status_Obsluga = new System.Workflow.Activities.CodeActivity();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            // 
            // logManagedForms
            // 
            this.logManagedForms.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logManagedForms.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind1.Name = "wfGFR";
            activitybind1.Path = "logManagedForms_HistoryDescription";
            activitybind2.Name = "wfGFR";
            activitybind2.Path = "logManagedForms_HistoryOutcome";
            this.logManagedForms.Name = "logManagedForms";
            this.logManagedForms.OtherData = "";
            this.logManagedForms.UserId = -1;
            this.logManagedForms.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.logManagedForms.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // UpdateMessage
            // 
            this.UpdateMessage.Name = "UpdateMessage";
            this.UpdateMessage.ExecuteCode += new System.EventHandler(this.UpdateMessage_ExecuteCode);
            // 
            // Manage_PDW1
            // 
            this.Manage_PDW1.Name = "Manage_PDW1";
            this.Manage_PDW1.ExecuteCode += new System.EventHandler(this.Manage_PDW_ExecuteCode);
            // 
            // 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;
            // 
            // 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;
            // 
            // Manage_PDW
            // 
            this.Manage_PDW.Name = "Manage_PDW";
            this.Manage_PDW.ExecuteCode += new System.EventHandler(this.Manage_PDW_ExecuteCode);
            // 
            // Manage_PD1
            // 
            this.Manage_PD1.Name = "Manage_PD1";
            this.Manage_PD1.ExecuteCode += new System.EventHandler(this.Manage_PD_ExecuteCode);
            // 
            // 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;
            // 
            // Manage_Reminders2
            // 
            this.Manage_Reminders2.Name = "Manage_Reminders2";
            this.Manage_Reminders2.ExecuteCode += new System.EventHandler(this.Manage_Reminders_ExecuteCode);
            // 
            // Manage_RBR2
            // 
            this.Manage_RBR2.Enabled = false;
            this.Manage_RBR2.Name = "Manage_RBR2";
            this.Manage_RBR2.ExecuteCode += new System.EventHandler(this.Manage_RBR_ExecuteCode);
            // 
            // Manage_VAT2
            // 
            this.Manage_VAT2.Name = "Manage_VAT2";
            this.Manage_VAT2.ExecuteCode += new System.EventHandler(this.Manage_VAT_ExecuteCode);
            // 
            // Manage_PDS
            // 
            this.Manage_PDS.Name = "Manage_PDS";
            this.Manage_PDS.ExecuteCode += new System.EventHandler(this.Manage_PDS_ExecuteCode);
            // 
            // 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;
            // 
            // Manage_Reminders
            // 
            this.Manage_Reminders.Name = "Manage_Reminders";
            this.Manage_Reminders.ExecuteCode += new System.EventHandler(this.Manage_Reminders_ExecuteCode);
            // 
            // Manage_RBR
            // 
            this.Manage_RBR.Enabled = false;
            this.Manage_RBR.Name = "Manage_RBR";
            this.Manage_RBR.ExecuteCode += new System.EventHandler(this.Manage_RBR_ExecuteCode);
            // 
            // Manage_VAT
            // 
            this.Manage_VAT.Name = "Manage_VAT";
            this.Manage_VAT.ExecuteCode += new System.EventHandler(this.Manage_VAT_ExecuteCode);
            // 
            // Manage_PD
            // 
            this.Manage_PD.Name = "Manage_PD";
            this.Manage_PD.ExecuteCode += new System.EventHandler(this.Manage_PD_ExecuteCode);
            // 
            // 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;
            // 
            // ifManagedForms
            // 
            this.ifManagedForms.Activities.Add(this.UpdateMessage);
            this.ifManagedForms.Activities.Add(this.logManagedForms);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.hasManagedForms);
            this.ifManagedForms.Condition = codecondition1;
            this.ifManagedForms.Name = "ifManagedForms";
            // 
            // CT_FirmaZewnetrzna
            // 
            this.CT_FirmaZewnetrzna.Activities.Add(this.logFirmaZewnetrzna);
            this.CT_FirmaZewnetrzna.Activities.Add(this.Manage_PD5);
            this.CT_FirmaZewnetrzna.Activities.Add(this.Manage_PDW1);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isFirmaZewnetrzna);
            this.CT_FirmaZewnetrzna.Condition = codecondition2;
            this.CT_FirmaZewnetrzna.Name = "CT_FirmaZewnetrzna";
            // 
            // CT_Firma
            // 
            this.CT_Firma.Activities.Add(this.logFirma);
            this.CT_Firma.Activities.Add(this.Manage_PD4);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isFirma);
            this.CT_Firma.Condition = codecondition3;
            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.Manage_PD1);
            this.CT_OsobaFizyczna.Activities.Add(this.Manage_PDW);
            codecondition4.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isOsobaFizyczna);
            this.CT_OsobaFizyczna.Condition = codecondition4;
            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.Manage_PDS);
            this.CT_KSH.Activities.Add(this.Manage_VAT2);
            this.CT_KSH.Activities.Add(this.Manage_RBR2);
            this.CT_KSH.Activities.Add(this.Manage_Reminders2);
            codecondition5.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isKSH);
            this.CT_KSH.Condition = codecondition5;
            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.Manage_PD);
            this.CT_KPIR.Activities.Add(this.Manage_VAT);
            this.CT_KPIR.Activities.Add(this.Manage_RBR);
            this.CT_KPIR.Activities.Add(this.Manage_Reminders);
            codecondition6.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isKPIR);
            this.CT_KPIR.Condition = codecondition6;
            this.CT_KPIR.Name = "CT_KPIR";
            // 
            // ManagedForms
            // 
            this.ManagedForms.Activities.Add(this.ifManagedForms);
            this.ManagedForms.Name = "ManagedForms";
            // 
            // 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";
            activitybind3.Name = "wfGFR";
            activitybind3.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)(activitybind3)));
            // 
            // Set_Klient
            // 
            this.Set_Klient.Name = "Set_Klient";
            this.Set_Klient.ExecuteCode += new System.EventHandler(this.Set_Klient_ExecuteCode);
            // 
            // logToHistoryListActivity6
            // 
            this.logToHistoryListActivity6.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity6.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity6.HistoryDescription = "Aktywnych klientów";
            activitybind4.Name = "wfGFR";
            activitybind4.Path = "logKlientCounter_HistoryOutcome";
            this.logToHistoryListActivity6.Name = "logToHistoryListActivity6";
            this.logToHistoryListActivity6.OtherData = "";
            this.logToHistoryListActivity6.UserId = -1;
            this.logToHistoryListActivity6.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // Select_Klienci4
            // 
            this.Select_Klienci4.Name = "Select_Klienci4";
            this.Select_Klienci4.ExecuteCode += new System.EventHandler(this.Select_Klienci_ExecuteCode);
            // 
            // logToHistoryListActivity3
            // 
            this.logToHistoryListActivity3.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity3.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity3.HistoryDescription = "Case";
            this.logToHistoryListActivity3.HistoryOutcome = "None";
            this.logToHistoryListActivity3.Name = "logToHistoryListActivity3";
            this.logToHistoryListActivity3.OtherData = "";
            this.logToHistoryListActivity3.UserId = -1;
            // 
            // logRefinedCounter1
            // 
            this.logRefinedCounter1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logRefinedCounter1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logRefinedCounter1.HistoryDescription = "Spełniających kryteria";
            activitybind5.Name = "wfGFR";
            activitybind5.Path = "logKlientCounter_HistoryOutcome";
            this.logRefinedCounter1.Name = "logRefinedCounter1";
            this.logRefinedCounter1.OtherData = "";
            this.logRefinedCounter1.UserId = -1;
            this.logRefinedCounter1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // Refine_Klienci2
            // 
            this.Refine_Klienci2.Name = "Refine_Klienci2";
            this.Refine_Klienci2.ExecuteCode += new System.EventHandler(this.Refine_Klienci_ExecuteCode);
            // 
            // logToHistoryListActivity5
            // 
            this.logToHistoryListActivity5.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity5.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity5.HistoryDescription = "Aktywnych klientów";
            activitybind6.Name = "wfGFR";
            activitybind6.Path = "logKlientCounter_HistoryOutcome";
            this.logToHistoryListActivity5.Name = "logToHistoryListActivity5";
            this.logToHistoryListActivity5.OtherData = "";
            this.logToHistoryListActivity5.UserId = -1;
            this.logToHistoryListActivity5.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            // 
            // Select_Klienci3
            // 
            this.Select_Klienci3.Name = "Select_Klienci3";
            this.Select_Klienci3.ExecuteCode += new System.EventHandler(this.Select_Klienci_ExecuteCode);
            // 
            // logToHistoryListActivity2
            // 
            this.logToHistoryListActivity2.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity2.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity2.HistoryDescription = "Case";
            this.logToHistoryListActivity2.HistoryOutcome = "Serwis";
            this.logToHistoryListActivity2.Name = "logToHistoryListActivity2";
            this.logToHistoryListActivity2.OtherData = "";
            this.logToHistoryListActivity2.UserId = -1;
            // 
            // logToHistoryListActivity4
            // 
            this.logToHistoryListActivity4.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity4.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity4.HistoryDescription = "Aktywnych klientów";
            activitybind7.Name = "wfGFR";
            activitybind7.Path = "logKlientCounter_HistoryOutcome";
            this.logToHistoryListActivity4.Name = "logToHistoryListActivity4";
            this.logToHistoryListActivity4.OtherData = "";
            this.logToHistoryListActivity4.UserId = -1;
            this.logToHistoryListActivity4.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // Select_Klienci2
            // 
            this.Select_Klienci2.Name = "Select_Klienci2";
            this.Select_Klienci2.ExecuteCode += new System.EventHandler(this.Select_Klienci_ExecuteCode);
            // 
            // logToHistoryListActivity1
            // 
            this.logToHistoryListActivity1.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity1.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity1.HistoryDescription = "Case";
            this.logToHistoryListActivity1.HistoryOutcome = "TK";
            this.logToHistoryListActivity1.Name = "logToHistoryListActivity1";
            this.logToHistoryListActivity1.OtherData = "";
            this.logToHistoryListActivity1.UserId = -1;
            // 
            // logRefinedCounter
            // 
            this.logRefinedCounter.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logRefinedCounter.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logRefinedCounter.HistoryDescription = "Spełniających kryteria";
            activitybind8.Name = "wfGFR";
            activitybind8.Path = "logKlientCounter_HistoryOutcome";
            this.logRefinedCounter.Name = "logRefinedCounter";
            this.logRefinedCounter.OtherData = "";
            this.logRefinedCounter.UserId = -1;
            this.logRefinedCounter.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            // 
            // Refine_Klienci
            // 
            this.Refine_Klienci.Name = "Refine_Klienci";
            this.Refine_Klienci.ExecuteCode += new System.EventHandler(this.Refine_Klienci_ExecuteCode);
            // 
            // logKlientCounter
            // 
            this.logKlientCounter.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logKlientCounter.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logKlientCounter.HistoryDescription = "Aktywnych klientów";
            activitybind9.Name = "wfGFR";
            activitybind9.Path = "logKlientCounter_HistoryOutcome";
            this.logKlientCounter.Name = "logKlientCounter";
            this.logKlientCounter.OtherData = "";
            this.logKlientCounter.UserId = -1;
            this.logKlientCounter.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            // 
            // Select_Klienci
            // 
            this.Select_Klienci.Name = "Select_Klienci";
            this.Select_Klienci.ExecuteCode += new System.EventHandler(this.Select_Klienci_ExecuteCode);
            // 
            // logToHistoryListActivity
            // 
            this.logToHistoryListActivity.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logToHistoryListActivity.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logToHistoryListActivity.HistoryDescription = "Case";
            this.logToHistoryListActivity.HistoryOutcome = "TK_Serwis";
            this.logToHistoryListActivity.Name = "logToHistoryListActivity";
            this.logToHistoryListActivity.OtherData = "";
            this.logToHistoryListActivity.UserId = -1;
            // 
            // sequenceActivity1
            // 
            this.sequenceActivity1.Activities.Add(this.Set_Klient);
            this.sequenceActivity1.Activities.Add(this.logKlient);
            this.sequenceActivity1.Activities.Add(this.Case_CT);
            this.sequenceActivity1.Activities.Add(this.ManagedForms);
            this.sequenceActivity1.Name = "sequenceActivity1";
            // 
            // None
            // 
            this.None.Activities.Add(this.logToHistoryListActivity3);
            this.None.Activities.Add(this.Select_Klienci4);
            this.None.Activities.Add(this.logToHistoryListActivity6);
            this.None.Name = "None";
            // 
            // Serwis
            // 
            this.Serwis.Activities.Add(this.logToHistoryListActivity2);
            this.Serwis.Activities.Add(this.Select_Klienci3);
            this.Serwis.Activities.Add(this.logToHistoryListActivity5);
            this.Serwis.Activities.Add(this.Refine_Klienci2);
            this.Serwis.Activities.Add(this.logRefinedCounter1);
            codecondition7.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isSerwis);
            this.Serwis.Condition = codecondition7;
            this.Serwis.Name = "Serwis";
            // 
            // TypK
            // 
            this.TypK.Activities.Add(this.logToHistoryListActivity1);
            this.TypK.Activities.Add(this.Select_Klienci2);
            this.TypK.Activities.Add(this.logToHistoryListActivity4);
            codecondition8.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isTypK);
            this.TypK.Condition = codecondition8;
            this.TypK.Name = "TypK";
            // 
            // TypK_Serwis
            // 
            this.TypK_Serwis.Activities.Add(this.logToHistoryListActivity);
            this.TypK_Serwis.Activities.Add(this.Select_Klienci);
            this.TypK_Serwis.Activities.Add(this.logKlientCounter);
            this.TypK_Serwis.Activities.Add(this.Refine_Klienci);
            this.TypK_Serwis.Activities.Add(this.logRefinedCounter);
            codecondition9.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isTypK_Serwis);
            this.TypK_Serwis.Condition = codecondition9;
            this.TypK_Serwis.Name = "TypK_Serwis";
            // 
            // UpdateItem
            // 
            this.UpdateItem.Name = "UpdateItem";
            this.UpdateItem.ExecuteCode += new System.EventHandler(this.UpdateItem_ExecuteCode);
            // 
            // 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 = "Anulowane";
            this.logToHistoryListActivity7.Name = "logToHistoryListActivity7";
            this.logToHistoryListActivity7.OtherData = "";
            this.logToHistoryListActivity7.UserId = -1;
            // 
            // Status_Anulowany
            // 
            this.Status_Anulowany.Name = "Status_Anulowany";
            this.Status_Anulowany.ExecuteCode += new System.EventHandler(this.Status_Anulowane_ExecuteCode);
            // 
            // logErrorMessage
            // 
            this.logErrorMessage.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logErrorMessage.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind10.Name = "wfGFR";
            activitybind10.Path = "logErrorMessage_HistoryDescription";
            activitybind11.Name = "wfGFR";
            activitybind11.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)(activitybind10)));
            this.logErrorMessage.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            // 
            // ErrorHandler
            // 
            this.ErrorHandler.Name = "ErrorHandler";
            this.ErrorHandler.ExecuteCode += new System.EventHandler(this.ErrorHandler_ExecuteCode);
            // 
            // whileKlient
            // 
            this.whileKlient.Activities.Add(this.sequenceActivity1);
            codecondition10.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.whileKlientExist);
            this.whileKlient.Condition = codecondition10;
            this.whileKlient.Name = "whileKlient";
            // 
            // Prepare_List
            // 
            this.Prepare_List.Name = "Prepare_List";
            this.Prepare_List.ExecuteCode += new System.EventHandler(this.Prepare_List_ExecuteCode);
            // 
            // Case
            // 
            this.Case.Activities.Add(this.TypK_Serwis);
            this.Case.Activities.Add(this.TypK);
            this.Case.Activities.Add(this.Serwis);
            this.Case.Activities.Add(this.None);
            this.Case.Name = "Case";
            // 
            // Preset_ot
            // 
            this.Preset_ot.Name = "Preset_ot";
            this.Preset_ot.ExecuteCode += new System.EventHandler(this.Preset_ot_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.logToHistoryListActivity7);
            this.faultHandlerActivity1.Activities.Add(this.UpdateItem);
            this.faultHandlerActivity1.FaultType = typeof(System.SystemException);
            this.faultHandlerActivity1.Name = "faultHandlerActivity1";
            // 
            // ifValidRequest
            // 
            this.ifValidRequest.Activities.Add(this.Preset_ot);
            this.ifValidRequest.Activities.Add(this.Case);
            this.ifValidRequest.Activities.Add(this.Prepare_List);
            this.ifValidRequest.Activities.Add(this.whileKlient);
            codecondition11.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.isValidRequest);
            this.ifValidRequest.Condition = codecondition11;
            this.ifValidRequest.Name = "ifValidRequest";
            // 
            // faultHandlersActivity1
            // 
            this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
            this.faultHandlersActivity1.Name = "faultHandlersActivity1";
            // 
            // UpdateItem2
            // 
            this.UpdateItem2.Name = "UpdateItem2";
            this.UpdateItem2.ExecuteCode += new System.EventHandler(this.UpdateItem_ExecuteCode);
            // 
            // Set_Status_Zakonczony
            // 
            this.Set_Status_Zakonczony.Name = "Set_Status_Zakonczony";
            this.Set_Status_Zakonczony.ExecuteCode += new System.EventHandler(this.Set_Status_Zakonczony_ExecuteCode);
            // 
            // ReportTime
            // 
            this.ReportTime.Name = "ReportTime";
            this.ReportTime.ExecuteCode += new System.EventHandler(this.ReportTime_ExecuteCode);
            // 
            // send_CtrlMsg2
            // 
            this.send_CtrlMsg2.BCC = null;
            activitybind12.Name = "wfGFR";
            activitybind12.Path = "msgBody";
            this.send_CtrlMsg2.CC = null;
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "wfGFR";
            this.send_CtrlMsg2.CorrelationToken = correlationtoken1;
            this.send_CtrlMsg2.From = null;
            this.send_CtrlMsg2.Headers = null;
            this.send_CtrlMsg2.IncludeStatus = false;
            this.send_CtrlMsg2.Name = "send_CtrlMsg2";
            activitybind13.Name = "wfGFR";
            activitybind13.Path = "msgSubject";
            activitybind14.Name = "wfGFR";
            activitybind14.Path = "msgTo";
            this.send_CtrlMsg2.MethodInvoking += new System.EventHandler(this.send_CtrlMsg2_MethodInvoking);
            this.send_CtrlMsg2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            this.send_CtrlMsg2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
            this.send_CtrlMsg2.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            // 
            // ValidateRequest
            // 
            this.ValidateRequest.Activities.Add(this.ifValidRequest);
            this.ValidateRequest.Name = "ValidateRequest";
            // 
            // send_CtrMsg
            // 
            this.send_CtrMsg.BCC = null;
            activitybind15.Name = "wfGFR";
            activitybind15.Path = "msgBody";
            this.send_CtrMsg.CC = null;
            this.send_CtrMsg.CorrelationToken = correlationtoken1;
            this.send_CtrMsg.From = null;
            this.send_CtrMsg.Headers = null;
            this.send_CtrMsg.IncludeStatus = false;
            this.send_CtrMsg.Name = "send_CtrMsg";
            activitybind16.Name = "wfGFR";
            activitybind16.Path = "msgSubject";
            activitybind17.Name = "wfGFR";
            activitybind17.Path = "msgTo";
            this.send_CtrMsg.MethodInvoking += new System.EventHandler(this.send_CtrlMsg_MethodInvoking);
            this.send_CtrMsg.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
            this.send_CtrMsg.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
            this.send_CtrMsg.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
            // 
            // UpdateItem3
            // 
            this.UpdateItem3.Name = "UpdateItem3";
            this.UpdateItem3.ExecuteCode += new System.EventHandler(this.UpdateItem_ExecuteCode);
            // 
            // Set_Status_Obsluga
            // 
            this.Set_Status_Obsluga.Name = "Set_Status_Obsluga";
            this.Set_Status_Obsluga.ExecuteCode += new System.EventHandler(this.Set_Status_Obsluga_ExecuteCode);
            activitybind19.Name = "wfGFR";
            activitybind19.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind18.Name = "wfGFR";
            activitybind18.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)(activitybind19)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
            // 
            // wfGFR
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.Set_Status_Obsluga);
            this.Activities.Add(this.UpdateItem3);
            this.Activities.Add(this.send_CtrMsg);
            this.Activities.Add(this.ValidateRequest);
            this.Activities.Add(this.send_CtrlMsg2);
            this.Activities.Add(this.ReportTime);
            this.Activities.Add(this.Set_Status_Zakonczony);
            this.Activities.Add(this.UpdateItem2);
            this.Activities.Add(this.faultHandlersActivity1);
            this.Name = "wfGFR";
            this.CanModifyActivities = false;

        }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.setStateActivity4              = new System.Workflow.Activities.SetStateActivity();
     this.closeCurrentViewActivity1      = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.finalizeCodeActivity           = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity6              = new System.Workflow.Activities.SetStateActivity();
     this.finalizeCodeActivity_ShowError = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity2          = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1          = new System.Workflow.Activities.IfElseBranchActivity();
     this.doesFolderExists  = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
     this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.wizzardFormActivity1 = new Composite.C1Console.Workflow.Activities.DataDialogFormActivity();
     this.setStateActivity2    = new System.Workflow.Activities.SetStateActivity();
     this.initializeAddNewfolderCodeActivity = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.stateInitializationActivity3       = new System.Workflow.Activities.StateInitializationActivity();
     this.step1EventDrivenActivity_Cancel    = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Finish    = new System.Workflow.Activities.EventDrivenActivity();
     this.stateInitializationActivity2       = new System.Workflow.Activities.StateInitializationActivity();
     this.stateInitializationActivity1       = new System.Workflow.Activities.StateInitializationActivity();
     this.cancelActivity        = new System.Workflow.Activities.EventDrivenActivity();
     this.finalStateActivity    = new System.Workflow.Activities.StateActivity();
     this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
     this.step1StateActivity    = new System.Workflow.Activities.StateActivity();
     this.AddNewWebsiteFolderWorkflowInitialState = new System.Workflow.Activities.StateActivity();
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalStateActivity";
     //
     // closeCurrentViewActivity1
     //
     this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
     //
     // finalizeCodeActivity
     //
     this.finalizeCodeActivity.Name         = "finalizeCodeActivity";
     this.finalizeCodeActivity.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_ExecuteCode);
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "step1StateActivity";
     //
     // finalizeCodeActivity_ShowError
     //
     this.finalizeCodeActivity_ShowError.Name         = "finalizeCodeActivity_ShowError";
     this.finalizeCodeActivity_ShowError.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_ShowError_ExecuteCode);
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.finalizeCodeActivity);
     this.ifElseBranchActivity2.Activities.Add(this.closeCurrentViewActivity1);
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity4);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.finalizeCodeActivity_ShowError);
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity6);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.FolderExists);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // doesFolderExists
     //
     this.doesFolderExists.Activities.Add(this.ifElseBranchActivity1);
     this.doesFolderExists.Activities.Add(this.ifElseBranchActivity2);
     this.doesFolderExists.Description = "Folder exists?";
     this.doesFolderExists.Name        = "doesFolderExists";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "finalizeStateActivity";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // wizzardFormActivity1
     //
     this.wizzardFormActivity1.ContainerLabel         = null;
     this.wizzardFormActivity1.FormDefinitionFileName = "/Administrative/WebsiteFileElementProviderAddNewFolder.xml";
     this.wizzardFormActivity1.Name = "wizzardFormActivity1";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "step1StateActivity";
     //
     // initializeAddNewfolderCodeActivity
     //
     this.initializeAddNewfolderCodeActivity.Name         = "initializeAddNewfolderCodeActivity";
     this.initializeAddNewfolderCodeActivity.ExecuteCode += new System.EventHandler(this.initializeAddNewfolderCodeActivity_ExecuteCode);
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // stateInitializationActivity3
     //
     this.stateInitializationActivity3.Activities.Add(this.doesFolderExists);
     this.stateInitializationActivity3.Name = "stateInitializationActivity3";
     //
     // step1EventDrivenActivity_Cancel
     //
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity5);
     this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
     //
     // step1EventDrivenActivity_Finish
     //
     this.step1EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Finish.Activities.Add(this.setStateActivity3);
     this.step1EventDrivenActivity_Finish.Name = "step1EventDrivenActivity_Finish";
     //
     // stateInitializationActivity2
     //
     this.stateInitializationActivity2.Activities.Add(this.wizzardFormActivity1);
     this.stateInitializationActivity2.Name = "stateInitializationActivity2";
     //
     // stateInitializationActivity1
     //
     this.stateInitializationActivity1.Activities.Add(this.initializeAddNewfolderCodeActivity);
     this.stateInitializationActivity1.Activities.Add(this.setStateActivity2);
     this.stateInitializationActivity1.Name = "stateInitializationActivity1";
     //
     // cancelActivity
     //
     this.cancelActivity.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.cancelActivity.Activities.Add(this.setStateActivity1);
     this.cancelActivity.Name = "cancelActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // finalizeStateActivity
     //
     this.finalizeStateActivity.Activities.Add(this.stateInitializationActivity3);
     this.finalizeStateActivity.Name = "finalizeStateActivity";
     //
     // step1StateActivity
     //
     this.step1StateActivity.Activities.Add(this.stateInitializationActivity2);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Finish);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
     this.step1StateActivity.Name = "step1StateActivity";
     //
     // AddNewWebsiteFolderWorkflowInitialState
     //
     this.AddNewWebsiteFolderWorkflowInitialState.Activities.Add(this.stateInitializationActivity1);
     this.AddNewWebsiteFolderWorkflowInitialState.Name = "AddNewWebsiteFolderWorkflowInitialState";
     //
     // AddNewWebsiteFolderWorkflow
     //
     this.Activities.Add(this.AddNewWebsiteFolderWorkflowInitialState);
     this.Activities.Add(this.step1StateActivity);
     this.Activities.Add(this.finalizeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.cancelActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "AddNewWebsiteFolderWorkflowInitialState";
     this.Name = "AddNewWebsiteFolderWorkflow";
     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.Activities.CodeCondition codecondition1 = 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.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind14 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind15 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind16 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind17 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind18 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind19 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind20 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            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.Collections.Generic.Dictionary<string, System.Collections.Generic.List<System.Guid>> dictionary_21 = new System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<System.Guid>>();
            this.ResolveDynamicLookupString = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookupString();
            this.ForEachDynamicStringForResolution = new System.Workflow.Activities.ReplicatorActivity();
            this.ResolveDynamicExpression = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.PrepareDynamicGrammarResolution = new System.Workflow.Activities.CodeActivity();
            this.DynamicGrammarResolutionNeed = new System.Workflow.Activities.IfElseBranchActivity();
            this.Update = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups();
            this.GetActorForChildRequest = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor();
            this.PrepareUpdate = new System.Workflow.Activities.CodeActivity();
            this.IfDynamicGrammarResolutionNeed = new System.Workflow.Activities.IfElseActivity();
            this.ResolveForValue = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.GetActor = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor();
            this.Submit = new System.Workflow.Activities.SequenceActivity();
            this.ActorIsNotValueExpression = new System.Workflow.Activities.IfElseBranchActivity();
            this.ForEachIteration = new System.Workflow.Activities.ReplicatorActivity();
            this.PrepareIteration = new System.Workflow.Activities.CodeActivity();
            this.IfActorIsNotValueExpression = new System.Workflow.Activities.IfElseActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.RunQueries = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveQueries();
            this.Prepare = new System.Workflow.Activities.CodeActivity();
            // 
            // ResolveDynamicLookupString
            // 
            this.ResolveDynamicLookupString.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.ResolveDynamicLookupString.Name = "ResolveDynamicLookupString";
            activitybind1.Name = "RunQueries";
            activitybind1.Path = "QueryResults";
            this.ResolveDynamicLookupString.Resolved = null;
            this.ResolveDynamicLookupString.ResolvedList = null;
            this.ResolveDynamicLookupString.StringForResolution = null;
            activitybind2.Name = "UpdateResources";
            activitybind2.Path = "Value";
            this.ResolveDynamicLookupString.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookupString.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.ResolveDynamicLookupString.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookupString.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            activitybind3.Name = "UpdateResources";
            activitybind3.Path = "DynamicStringsForResolution";
            // 
            // ForEachDynamicStringForResolution
            // 
            this.ForEachDynamicStringForResolution.Activities.Add(this.ResolveDynamicLookupString);
            this.ForEachDynamicStringForResolution.ExecutionType = System.Workflow.Activities.ExecutionType.Sequence;
            this.ForEachDynamicStringForResolution.Name = "ForEachDynamicStringForResolution";
            this.ForEachDynamicStringForResolution.ChildInitialized += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachDynamicStringForResolution_ChildInitialized);
            this.ForEachDynamicStringForResolution.ChildCompleted += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachDynamicStringForResolution_ChildCompleted);
            this.ForEachDynamicStringForResolution.SetBinding(System.Workflow.Activities.ReplicatorActivity.InitialChildDataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // ResolveDynamicExpression
            // 
            this.ResolveDynamicExpression.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind4.Name = "UpdateResources";
            activitybind4.Path = "ActivityExpressionEvaluator.LookupCache";
            this.ResolveDynamicExpression.Name = "ResolveDynamicExpression";
            activitybind5.Name = "UpdateResources";
            activitybind5.Path = "Value";
            this.ResolveDynamicExpression.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.ResolveDynamicExpression.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.ResolveDynamicExpression.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // PrepareDynamicGrammarResolution
            // 
            this.PrepareDynamicGrammarResolution.Name = "PrepareDynamicGrammarResolution";
            this.PrepareDynamicGrammarResolution.ExecuteCode += new System.EventHandler(this.PrepareDynamicGrammarResolution_ExecuteCode);
            // 
            // DynamicGrammarResolutionNeed
            // 
            this.DynamicGrammarResolutionNeed.Activities.Add(this.PrepareDynamicGrammarResolution);
            this.DynamicGrammarResolutionNeed.Activities.Add(this.ResolveDynamicExpression);
            this.DynamicGrammarResolutionNeed.Activities.Add(this.ForEachDynamicStringForResolution);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DynamicGrammarResolutionNeed_Condition);
            this.DynamicGrammarResolutionNeed.Condition = codecondition1;
            this.DynamicGrammarResolutionNeed.Name = "DynamicGrammarResolutionNeed";
            // 
            // Update
            // 
            activitybind6.Name = "GetActorForChildRequest";
            activitybind6.Path = "Actor";
            activitybind7.Name = "UpdateResources";
            activitybind7.Path = "ApplyAuthorizationPolicy";
            this.Update.Name = "Update";
            activitybind8.Name = "RunQueries";
            activitybind8.Path = "QueryResults";
            activitybind9.Name = "UpdateResources";
            activitybind9.Path = "LookupUpdates";
            activitybind10.Name = "UpdateResources";
            activitybind10.Path = "Value";
            this.Update.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            this.Update.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups.UpdateLookupDefinitionsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.Update.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups.ActorProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.Update.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            this.Update.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups.ApplyAuthorizationPolicyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            // 
            // GetActorForChildRequest
            // 
            activitybind11.Name = "GetActor";
            activitybind11.Path = "Actor";
            activitybind12.Name = "UpdateResources";
            activitybind12.Path = "ActorString";
            activitybind13.Name = "UpdateResources";
            activitybind13.Path = "ActorType";
            this.GetActorForChildRequest.Name = "GetActorForChildRequest";
            activitybind14.Name = "RunQueries";
            activitybind14.Path = "QueryResults";
            activitybind15.Name = "UpdateResources";
            activitybind15.Path = "Value";
            this.GetActorForChildRequest.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind14)));
            this.GetActorForChildRequest.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.ActorStringProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            this.GetActorForChildRequest.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.ActorTypeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            this.GetActorForChildRequest.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.ActorProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            this.GetActorForChildRequest.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind15)));
            // 
            // PrepareUpdate
            // 
            this.PrepareUpdate.Name = "PrepareUpdate";
            this.PrepareUpdate.ExecuteCode += new System.EventHandler(this.PrepareUpdate_ExecuteCode);
            // 
            // IfDynamicGrammarResolutionNeed
            // 
            this.IfDynamicGrammarResolutionNeed.Activities.Add(this.DynamicGrammarResolutionNeed);
            this.IfDynamicGrammarResolutionNeed.Name = "IfDynamicGrammarResolutionNeed";
            // 
            // ResolveForValue
            // 
            this.ResolveForValue.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind16.Name = "UpdateResources";
            activitybind16.Path = "ValueExpressions";
            this.ResolveForValue.Name = "ResolveForValue";
            this.ResolveForValue.QueryResults = null;
            activitybind17.Name = "UpdateResources";
            activitybind17.Path = "Value";
            this.ResolveForValue.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind16)));
            this.ResolveForValue.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind17)));
            // 
            // GetActor
            // 
            this.GetActor.Actor = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind18.Name = "UpdateResources";
            activitybind18.Path = "ActorString";
            activitybind19.Name = "UpdateResources";
            activitybind19.Path = "ActorType";
            this.GetActor.Name = "GetActor";
            activitybind20.Name = "RunQueries";
            activitybind20.Path = "QueryResults";
            this.GetActor.Value = null;
            this.GetActor.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind20)));
            this.GetActor.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.ActorStringProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind18)));
            this.GetActor.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor.ActorTypeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind19)));
            // 
            // Submit
            // 
            this.Submit.Activities.Add(this.ResolveForValue);
            this.Submit.Activities.Add(this.IfDynamicGrammarResolutionNeed);
            this.Submit.Activities.Add(this.PrepareUpdate);
            this.Submit.Activities.Add(this.GetActorForChildRequest);
            this.Submit.Activities.Add(this.Update);
            this.Submit.Name = "Submit";
            // 
            // ActorIsNotValueExpression
            // 
            this.ActorIsNotValueExpression.Activities.Add(this.GetActor);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ActorIsNotValueExpression_Condition);
            this.ActorIsNotValueExpression.Condition = codecondition2;
            this.ActorIsNotValueExpression.Name = "ActorIsNotValueExpression";
            // 
            // ForEachIteration
            // 
            this.ForEachIteration.Activities.Add(this.Submit);
            this.ForEachIteration.ExecutionType = System.Workflow.Activities.ExecutionType.Sequence;
            this.ForEachIteration.Name = "ForEachIteration";
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ForEachIteration_UntilCondition);
            this.ForEachIteration.UntilCondition = codecondition3;
            this.ForEachIteration.ChildInitialized += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachIteration_ChildInitialized);
            this.ForEachIteration.ChildCompleted += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachIteration_ChildCompleted);
            // 
            // PrepareIteration
            // 
            this.PrepareIteration.Name = "PrepareIteration";
            this.PrepareIteration.ExecuteCode += new System.EventHandler(this.PrepareIteration_ExecuteCode);
            // 
            // IfActorIsNotValueExpression
            // 
            this.IfActorIsNotValueExpression.Activities.Add(this.ActorIsNotValueExpression);
            this.IfActorIsNotValueExpression.Name = "IfActorIsNotValueExpression";
            // 
            // Resolve
            // 
            this.Resolve.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind21.Name = "UpdateResources";
            activitybind21.Path = "ActivityExpressionEvaluator.LookupCache";
            this.Resolve.Name = "Resolve";
            activitybind22.Name = "RunQueries";
            activitybind22.Path = "QueryResults";
            this.Resolve.Value = null;
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind22)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind21)));
            // 
            // RunQueries
            // 
            this.RunQueries.Name = "RunQueries";
            activitybind23.Name = "UpdateResources";
            activitybind23.Path = "Queries";
            this.RunQueries.QueryResults = dictionary_21;
            this.RunQueries.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveQueries.QueryDefinitionsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind23)));
            // 
            // Prepare
            // 
            this.Prepare.Name = "Prepare";
            this.Prepare.ExecuteCode += new System.EventHandler(this.Prepare_ExecuteCode);
            // 
            // UpdateResources
            // 
            this.Activities.Add(this.Prepare);
            this.Activities.Add(this.RunQueries);
            this.Activities.Add(this.Resolve);
            this.Activities.Add(this.IfActorIsNotValueExpression);
            this.Activities.Add(this.PrepareIteration);
            this.Activities.Add(this.ForEachIteration);
            this.Name = "UpdateResources";
            this.CanModifyActivities = false;

        }
        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();
            this.showConsoleMessageBoxActivity1 = new Composite.C1Console.Workflow.Activities.ShowConsoleMessageBoxActivity();
            this.saveCodeActivity = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity9 = new System.Workflow.Activities.SetStateActivity();
            this.setToPublishCodeActivity = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity8 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity6 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity5 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity4 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity7 = new System.Workflow.Activities.SetStateActivity();
            this.newPageTypeSelectedCodeActivity_UpdateView = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.ifElseActivity2 = new System.Workflow.Activities.IfElseActivity();
            this.saveAndPublishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.SaveAndPublishHandleExternalEventActivity();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.customEvent01HandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CustomEvent01HandleExternalEventActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.editPreviewCodeActivity = new System.Workflow.Activities.CodeActivity();
            this.previewHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.PreviewHandleExternalEventActivity();
            this.ifElseActivity2_PageStillExists = new System.Workflow.Activities.IfElseActivity();
            this.saveHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.SaveHandleExternalEventActivity();
            this.editStateCodeActivity = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.newPageTypeSelectedStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.saveStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.editEventDrivenActivity_SaveAndPublish = new System.Workflow.Activities.EventDrivenActivity();
            this.editEventDrivenActivity_PageTypeChanged = new System.Workflow.Activities.EventDrivenActivity();
            this.editEventDrivenActivity_Preview = new System.Workflow.Activities.EventDrivenActivity();
            this.editEventDrivenActivity_Save = new System.Workflow.Activities.EventDrivenActivity();
            this.editStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.newPageTypeSelectedStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            this.saveStateActivity = new System.Workflow.Activities.StateActivity();
            this.editStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            // 
            // showConsoleMessageBoxActivity1
            // 
            this.showConsoleMessageBoxActivity1.DialogType = Composite.C1Console.Events.DialogType.Message;
            this.showConsoleMessageBoxActivity1.Message = "${Composite.Plugins.PageElementProvider, PageSaveValidationFailedMessage}";
            this.showConsoleMessageBoxActivity1.Name = "showConsoleMessageBoxActivity1";
            this.showConsoleMessageBoxActivity1.Title = "${Composite.Plugins.PageElementProvider, PageSaveValidationFailedTitle}";
            // 
            // saveCodeActivity
            // 
            this.saveCodeActivity.Name = "saveCodeActivity";
            this.saveCodeActivity.ExecuteCode += new System.EventHandler(this.saveCodeActivity_ExecuteCode);
            // 
            // setStateActivity10
            // 
            this.setStateActivity10.Name = "setStateActivity10";
            this.setStateActivity10.TargetStateName = "finalStateActivity";
            // 
            // setStateActivity9
            // 
            this.setStateActivity9.Name = "setStateActivity9";
            this.setStateActivity9.TargetStateName = "saveStateActivity";
            // 
            // setToPublishCodeActivity
            // 
            this.setToPublishCodeActivity.Name = "setToPublishCodeActivity";
            this.setToPublishCodeActivity.ExecuteCode += new System.EventHandler(this.setToPublishCodeActivity_ExecuteCode);
            // 
            // setStateActivity8
            // 
            this.setStateActivity8.Name = "setStateActivity8";
            this.setStateActivity8.TargetStateName = "finalStateActivity";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "saveStateActivity";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.showConsoleMessageBoxActivity1);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.saveCodeActivity);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ValidateSave);
            this.ifElseBranchActivity1.Condition = codecondition1;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // ifElseBranchActivity6
            // 
            this.ifElseBranchActivity6.Activities.Add(this.setStateActivity10);
            this.ifElseBranchActivity6.Name = "ifElseBranchActivity6";
            // 
            // ifElseBranchActivity5
            // 
            this.ifElseBranchActivity5.Activities.Add(this.setToPublishCodeActivity);
            this.ifElseBranchActivity5.Activities.Add(this.setStateActivity9);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.PageStillExists);
            this.ifElseBranchActivity5.Condition = codecondition2;
            this.ifElseBranchActivity5.Name = "ifElseBranchActivity5";
            // 
            // ifElseBranchActivity4
            // 
            this.ifElseBranchActivity4.Activities.Add(this.setStateActivity8);
            this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
            // 
            // ifElseBranchActivity3
            // 
            this.ifElseBranchActivity3.Activities.Add(this.setStateActivity2);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.PageStillExists);
            this.ifElseBranchActivity3.Condition = codecondition3;
            this.ifElseBranchActivity3.Name = "ifElseBranchActivity3";
            // 
            // setStateActivity7
            // 
            this.setStateActivity7.Name = "setStateActivity7";
            this.setStateActivity7.TargetStateName = "editStateActivity";
            // 
            // newPageTypeSelectedCodeActivity_UpdateView
            // 
            this.newPageTypeSelectedCodeActivity_UpdateView.Name = "newPageTypeSelectedCodeActivity_UpdateView";
            this.newPageTypeSelectedCodeActivity_UpdateView.ExecuteCode += new System.EventHandler(this.newPageTypeSelectedCodeActivity_UpdateView_ExecuteCode);
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "editStateActivity";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // ifElseActivity2
            // 
            this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity5);
            this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity6);
            this.ifElseActivity2.Name = "ifElseActivity2";
            // 
            // saveAndPublishHandleExternalEventActivity1
            // 
            this.saveAndPublishHandleExternalEventActivity1.EventName = "SaveAndPublish";
            this.saveAndPublishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.saveAndPublishHandleExternalEventActivity1.Name = "saveAndPublishHandleExternalEventActivity1";
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "newPageTypeSelectedStateActivity";
            // 
            // customEvent01HandleExternalEventActivity1
            // 
            this.customEvent01HandleExternalEventActivity1.EventName = "CustomEvent01";
            this.customEvent01HandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.customEvent01HandleExternalEventActivity1.Name = "customEvent01HandleExternalEventActivity1";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "editStateActivity";
            // 
            // editPreviewCodeActivity
            // 
            this.editPreviewCodeActivity.Name = "editPreviewCodeActivity";
            this.editPreviewCodeActivity.ExecuteCode += new System.EventHandler(this.editPreviewCodeActivity_ExecuteCode);
            // 
            // previewHandleExternalEventActivity1
            // 
            this.previewHandleExternalEventActivity1.EventName = "Preview";
            this.previewHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.previewHandleExternalEventActivity1.Name = "previewHandleExternalEventActivity1";
            // 
            // ifElseActivity2_PageStillExists
            // 
            this.ifElseActivity2_PageStillExists.Activities.Add(this.ifElseBranchActivity3);
            this.ifElseActivity2_PageStillExists.Activities.Add(this.ifElseBranchActivity4);
            this.ifElseActivity2_PageStillExists.Name = "ifElseActivity2_PageStillExists";
            // 
            // saveHandleExternalEventActivity1
            // 
            this.saveHandleExternalEventActivity1.EventName = "Save";
            this.saveHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.saveHandleExternalEventActivity1.Name = "saveHandleExternalEventActivity1";
            // 
            // editStateCodeActivity
            // 
            this.editStateCodeActivity.Name = "editStateCodeActivity";
            this.editStateCodeActivity.ExecuteCode += new System.EventHandler(this.editStateCodeActivity_ExecuteCode);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "editStateActivity";
            // 
            // newPageTypeSelectedStateInitializationActivity
            // 
            this.newPageTypeSelectedStateInitializationActivity.Activities.Add(this.newPageTypeSelectedCodeActivity_UpdateView);
            this.newPageTypeSelectedStateInitializationActivity.Activities.Add(this.setStateActivity7);
            this.newPageTypeSelectedStateInitializationActivity.Name = "newPageTypeSelectedStateInitializationActivity";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // saveStateInitializationActivity
            // 
            this.saveStateInitializationActivity.Activities.Add(this.ifElseActivity1);
            this.saveStateInitializationActivity.Activities.Add(this.setStateActivity1);
            this.saveStateInitializationActivity.Name = "saveStateInitializationActivity";
            // 
            // editEventDrivenActivity_SaveAndPublish
            // 
            this.editEventDrivenActivity_SaveAndPublish.Activities.Add(this.saveAndPublishHandleExternalEventActivity1);
            this.editEventDrivenActivity_SaveAndPublish.Activities.Add(this.ifElseActivity2);
            this.editEventDrivenActivity_SaveAndPublish.Name = "editEventDrivenActivity_SaveAndPublish";
            // 
            // editEventDrivenActivity_PageTypeChanged
            // 
            this.editEventDrivenActivity_PageTypeChanged.Activities.Add(this.customEvent01HandleExternalEventActivity1);
            this.editEventDrivenActivity_PageTypeChanged.Activities.Add(this.setStateActivity6);
            this.editEventDrivenActivity_PageTypeChanged.Name = "editEventDrivenActivity_PageTypeChanged";
            // 
            // editEventDrivenActivity_Preview
            // 
            this.editEventDrivenActivity_Preview.Activities.Add(this.previewHandleExternalEventActivity1);
            this.editEventDrivenActivity_Preview.Activities.Add(this.editPreviewCodeActivity);
            this.editEventDrivenActivity_Preview.Activities.Add(this.setStateActivity4);
            this.editEventDrivenActivity_Preview.Name = "editEventDrivenActivity_Preview";
            // 
            // editEventDrivenActivity_Save
            // 
            this.editEventDrivenActivity_Save.Activities.Add(this.saveHandleExternalEventActivity1);
            this.editEventDrivenActivity_Save.Activities.Add(this.ifElseActivity2_PageStillExists);
            this.editEventDrivenActivity_Save.Name = "editEventDrivenActivity_Save";
            // 
            // editStateInitializationActivity
            // 
            this.editStateInitializationActivity.Activities.Add(this.editStateCodeActivity);
            this.editStateInitializationActivity.Name = "editStateInitializationActivity";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity3);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // newPageTypeSelectedStateActivity
            // 
            this.newPageTypeSelectedStateActivity.Activities.Add(this.newPageTypeSelectedStateInitializationActivity);
            this.newPageTypeSelectedStateActivity.Name = "newPageTypeSelectedStateActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity5);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // saveStateActivity
            // 
            this.saveStateActivity.Activities.Add(this.saveStateInitializationActivity);
            this.saveStateActivity.Name = "saveStateActivity";
            // 
            // editStateActivity
            // 
            this.editStateActivity.Activities.Add(this.editStateInitializationActivity);
            this.editStateActivity.Activities.Add(this.editEventDrivenActivity_Save);
            this.editStateActivity.Activities.Add(this.editEventDrivenActivity_Preview);
            this.editStateActivity.Activities.Add(this.editEventDrivenActivity_PageTypeChanged);
            this.editStateActivity.Activities.Add(this.editEventDrivenActivity_SaveAndPublish);
            this.editStateActivity.Name = "editStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // EditPageWorkflow
            // 
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.editStateActivity);
            this.Activities.Add(this.saveStateActivity);
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.newPageTypeSelectedStateActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "EditPageWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 40
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();
     this.setStateActivity10     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity9      = new System.Workflow.Activities.SetStateActivity();
     this.ifElseBranchActivity4  = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity3  = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity21     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity14     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity15     = new System.Workflow.Activities.SetStateActivity();
     this.if_DoesPagesExists     = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity5      = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity3      = new System.Workflow.Activities.SetStateActivity();
     this.ifElseBranchActivity10 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity9  = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity6  = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity5  = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity2  = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1  = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity18     = new System.Workflow.Activities.SetStateActivity();
     this.previousHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.PreviousHandleExternalEventActivity();
     this.setStateActivity12 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity4 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.setStateActivity13 = new System.Workflow.Activities.SetStateActivity();
     this.finishHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.wizardFormActivity4 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity17  = new System.Workflow.Activities.SetStateActivity();
     this.previousHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.PreviousHandleExternalEventActivity();
     this.setStateActivity11 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.ifElseActivity3 = new System.Workflow.Activities.IfElseActivity();
     this.finishHandleExternalEventActivity1        = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.enterDefaultValuesCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity16 = new System.Workflow.Activities.SetStateActivity();
     this.previousHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.PreviousHandleExternalEventActivity();
     this.setStateActivity8 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity5 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.if_DidFieldNameValidate            = new System.Workflow.Activities.IfElseActivity();
     this.createFieldGroupCodeActivity_CreateVisabilatiyRule = new System.Workflow.Activities.CodeActivity();
     this.nextHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.wizardFormActivity1 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.createFieldGroupCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity20                             = new System.Workflow.Activities.SetStateActivity();
     this.closeCurrentViewActivity2                      = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.codeActivity1                                  = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity4                              = new System.Workflow.Activities.SetStateActivity();
     this.noTypesToAddCodeActivity_ShowMessage           = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity2                              = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2             = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.setStateActivity6                              = new System.Workflow.Activities.SetStateActivity();
     this.nextHandleExternalEventActivity1               = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.wizardFormActivity2                            = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.selectTypeCodeActivity_Initialize              = new System.Workflow.Activities.CodeActivity();
     this.ifElseActivity1                                = new System.Workflow.Activities.IfElseActivity();
     this.noTargetDataEventDrivenActivity_Previous       = new System.Workflow.Activities.EventDrivenActivity();
     this.noTargetDataEventDrivenActivity_Cancel         = new System.Workflow.Activities.EventDrivenActivity();
     this.noTargetDataEventDrivenActivity_Finish         = new System.Workflow.Activities.EventDrivenActivity();
     this.noTargetDataStateInitializationActivity        = new System.Workflow.Activities.StateInitializationActivity();
     this.enterDefaultValuesEventDrivenActivity_Previous = new System.Workflow.Activities.EventDrivenActivity();
     this.enterDefaultValuesEventDrivenActivity_Cancel   = new System.Workflow.Activities.EventDrivenActivity();
     this.enterDefaultValuesEventDrivenActivity_Finish   = new System.Workflow.Activities.EventDrivenActivity();
     this.enterDefaultValuesSateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.createFieldGroupEventDrivenActivity_Previous   = new System.Workflow.Activities.EventDrivenActivity();
     this.createFieldGroupEventDrivenActivity_Cancel     = new System.Workflow.Activities.EventDrivenActivity();
     this.createFieldGroupEventDrivenActivity_Next       = new System.Workflow.Activities.EventDrivenActivity();
     this.createFieldGroupStateInitializationActivity    = new System.Workflow.Activities.StateInitializationActivity();
     this.finalizeStateInitializationActivity            = new System.Workflow.Activities.StateInitializationActivity();
     this.noTypesToAddStateInitializationActivity        = new System.Workflow.Activities.StateInitializationActivity();
     this.selectTypeEventDrivenActivity_Cancel           = new System.Workflow.Activities.EventDrivenActivity();
     this.selectTypeEventDrivenActivity_Next             = new System.Workflow.Activities.EventDrivenActivity();
     this.selectTypeStateInitializationActivity          = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity          = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                              = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1             = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.noTargetDataWarningStateActivity               = new System.Workflow.Activities.StateActivity();
     this.enterDefaultValuesStateActivity                = new System.Workflow.Activities.StateActivity();
     this.createFieldGroupStateActivity                  = new System.Workflow.Activities.StateActivity();
     this.finalizeStateActivity                          = new System.Workflow.Activities.StateActivity();
     this.noTypesToAddStateActivity                      = new System.Workflow.Activities.StateActivity();
     this.selectTypeToAddStateActivity                   = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity                             = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity                        = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel               = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity10
     //
     this.setStateActivity10.Name            = "setStateActivity10";
     this.setStateActivity10.TargetStateName = "noTargetDataWarningStateActivity";
     //
     // setStateActivity9
     //
     this.setStateActivity9.Name            = "setStateActivity9";
     this.setStateActivity9.TargetStateName = "enterDefaultValuesStateActivity";
     //
     // ifElseBranchActivity4
     //
     this.ifElseBranchActivity4.Activities.Add(this.setStateActivity10);
     this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
     //
     // ifElseBranchActivity3
     //
     this.ifElseBranchActivity3.Activities.Add(this.setStateActivity9);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DoesTargetDataExists);
     this.ifElseBranchActivity3.Condition = codecondition1;
     this.ifElseBranchActivity3.Name      = "ifElseBranchActivity3";
     //
     // setStateActivity21
     //
     this.setStateActivity21.Name            = "setStateActivity21";
     this.setStateActivity21.TargetStateName = "enterDefaultValuesStateActivity";
     //
     // setStateActivity14
     //
     this.setStateActivity14.Name            = "setStateActivity14";
     this.setStateActivity14.TargetStateName = "finalizeStateActivity";
     //
     // setStateActivity15
     //
     this.setStateActivity15.Name            = "setStateActivity15";
     this.setStateActivity15.TargetStateName = "createFieldGroupStateActivity";
     //
     // if_DoesPagesExists
     //
     this.if_DoesPagesExists.Activities.Add(this.ifElseBranchActivity3);
     this.if_DoesPagesExists.Activities.Add(this.ifElseBranchActivity4);
     this.if_DoesPagesExists.Name = "if_DoesPagesExists";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "noTypesToAddStateActivity";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "selectTypeToAddStateActivity";
     //
     // ifElseBranchActivity10
     //
     this.ifElseBranchActivity10.Activities.Add(this.setStateActivity21);
     this.ifElseBranchActivity10.Name = "ifElseBranchActivity10";
     //
     // ifElseBranchActivity9
     //
     this.ifElseBranchActivity9.Activities.Add(this.setStateActivity14);
     codecondition2.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.MetaDataValid);
     this.ifElseBranchActivity9.Condition = codecondition2;
     this.ifElseBranchActivity9.Name      = "ifElseBranchActivity9";
     //
     // ifElseBranchActivity6
     //
     this.ifElseBranchActivity6.Activities.Add(this.setStateActivity15);
     this.ifElseBranchActivity6.Name = "ifElseBranchActivity6";
     //
     // ifElseBranchActivity5
     //
     this.ifElseBranchActivity5.Activities.Add(this.if_DoesPagesExists);
     codecondition3.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DidFieldNameValidate);
     this.ifElseBranchActivity5.Condition = codecondition3;
     this.ifElseBranchActivity5.Name      = "ifElseBranchActivity5";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity5);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity3);
     codecondition4.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DoesTypesToAddExists);
     this.ifElseBranchActivity1.Condition = codecondition4;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity18
     //
     this.setStateActivity18.Name            = "setStateActivity18";
     this.setStateActivity18.TargetStateName = "createFieldGroupStateActivity";
     //
     // previousHandleExternalEventActivity3
     //
     this.previousHandleExternalEventActivity3.EventName     = "Previous";
     this.previousHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.previousHandleExternalEventActivity3.Name          = "previousHandleExternalEventActivity3";
     //
     // setStateActivity12
     //
     this.setStateActivity12.Name            = "setStateActivity12";
     this.setStateActivity12.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity4
     //
     this.cancelHandleExternalEventActivity4.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity4.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity4.Name          = "cancelHandleExternalEventActivity4";
     //
     // setStateActivity13
     //
     this.setStateActivity13.Name            = "setStateActivity13";
     this.setStateActivity13.TargetStateName = "finalizeStateActivity";
     //
     // finishHandleExternalEventActivity2
     //
     this.finishHandleExternalEventActivity2.EventName     = "Finish";
     this.finishHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity2.Name          = "finishHandleExternalEventActivity2";
     //
     // wizardFormActivity4
     //
     this.wizardFormActivity4.ContainerLabel         = null;
     this.wizardFormActivity4.FormDefinitionFileName = "\\Administrative\\AddMetaDataNoTargetDataWarning.xml";
     this.wizardFormActivity4.Name = "wizardFormActivity4";
     //
     // setStateActivity17
     //
     this.setStateActivity17.Name            = "setStateActivity17";
     this.setStateActivity17.TargetStateName = "createFieldGroupStateActivity";
     //
     // previousHandleExternalEventActivity2
     //
     this.previousHandleExternalEventActivity2.EventName     = "Previous";
     this.previousHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.previousHandleExternalEventActivity2.Name          = "previousHandleExternalEventActivity2";
     //
     // setStateActivity11
     //
     this.setStateActivity11.Name            = "setStateActivity11";
     this.setStateActivity11.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity3
     //
     this.cancelHandleExternalEventActivity3.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity3.Name          = "cancelHandleExternalEventActivity3";
     //
     // ifElseActivity3
     //
     this.ifElseActivity3.Activities.Add(this.ifElseBranchActivity9);
     this.ifElseActivity3.Activities.Add(this.ifElseBranchActivity10);
     this.ifElseActivity3.Name = "ifElseActivity3";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // enterDefaultValuesCodeActivity_Initialize
     //
     this.enterDefaultValuesCodeActivity_Initialize.Name         = "enterDefaultValuesCodeActivity_Initialize";
     this.enterDefaultValuesCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.enterDefaultValuesCodeActivity_Initialize_ExecuteCode);
     //
     // setStateActivity16
     //
     this.setStateActivity16.Name            = "setStateActivity16";
     this.setStateActivity16.TargetStateName = "selectTypeToAddStateActivity";
     //
     // previousHandleExternalEventActivity1
     //
     this.previousHandleExternalEventActivity1.EventName     = "Previous";
     this.previousHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.previousHandleExternalEventActivity1.Name          = "previousHandleExternalEventActivity1";
     //
     // setStateActivity8
     //
     this.setStateActivity8.Name            = "setStateActivity8";
     this.setStateActivity8.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity5
     //
     this.cancelHandleExternalEventActivity5.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity5.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity5.Name          = "cancelHandleExternalEventActivity5";
     //
     // if_DidFieldNameValidate
     //
     this.if_DidFieldNameValidate.Activities.Add(this.ifElseBranchActivity5);
     this.if_DidFieldNameValidate.Activities.Add(this.ifElseBranchActivity6);
     this.if_DidFieldNameValidate.Name = "if_DidFieldNameValidate";
     //
     // createFieldGroupCodeActivity_CreateVisabilatiyRule
     //
     this.createFieldGroupCodeActivity_CreateVisabilatiyRule.Name         = "createFieldGroupCodeActivity_CreateVisabilatiyRule";
     this.createFieldGroupCodeActivity_CreateVisabilatiyRule.ExecuteCode += new System.EventHandler(this.createFieldGroupCodeActivity_CreateVisabilatiyRule_ExecuteCode);
     //
     // nextHandleExternalEventActivity2
     //
     this.nextHandleExternalEventActivity2.EventName     = "Next";
     this.nextHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity2.Name          = "nextHandleExternalEventActivity2";
     //
     // wizardFormActivity1
     //
     this.wizardFormActivity1.ContainerLabel         = null;
     this.wizardFormActivity1.FormDefinitionFileName = "\\Administrative\\AddMetaDataCreateFieldGroup.xml";
     this.wizardFormActivity1.Name = "wizardFormActivity1";
     //
     // createFieldGroupCodeActivity_Initialize
     //
     this.createFieldGroupCodeActivity_Initialize.Name         = "createFieldGroupCodeActivity_Initialize";
     this.createFieldGroupCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.createFieldGroupCodeActivity_Initialize_ExecuteCode);
     //
     // setStateActivity20
     //
     this.setStateActivity20.Name            = "setStateActivity20";
     this.setStateActivity20.TargetStateName = "finalStateActivity";
     //
     // closeCurrentViewActivity2
     //
     this.closeCurrentViewActivity2.Name = "closeCurrentViewActivity2";
     //
     // codeActivity1
     //
     this.codeActivity1.Name         = "codeActivity1";
     this.codeActivity1.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_Finalize_ExecuteCode);
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalStateActivity";
     //
     // noTypesToAddCodeActivity_ShowMessage
     //
     this.noTypesToAddCodeActivity_ShowMessage.Name         = "noTypesToAddCodeActivity_ShowMessage";
     this.noTypesToAddCodeActivity_ShowMessage.ExecuteCode += new System.EventHandler(this.noTypesToAddCodeActivity_ShowMessage_ExecuteCode);
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "createFieldGroupStateActivity";
     //
     // nextHandleExternalEventActivity1
     //
     this.nextHandleExternalEventActivity1.EventName     = "Next";
     this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity1.Name          = "nextHandleExternalEventActivity1";
     //
     // wizardFormActivity2
     //
     this.wizardFormActivity2.ContainerLabel         = null;
     this.wizardFormActivity2.FormDefinitionFileName = "\\Administrative\\AddMetaDataSelectType.xml";
     this.wizardFormActivity2.Name = "wizardFormActivity2";
     //
     // selectTypeCodeActivity_Initialize
     //
     this.selectTypeCodeActivity_Initialize.Name         = "selectTypeCodeActivity_Initialize";
     this.selectTypeCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.selectTypeCodeActivity_Initialize_ExecuteCode);
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // noTargetDataEventDrivenActivity_Previous
     //
     this.noTargetDataEventDrivenActivity_Previous.Activities.Add(this.previousHandleExternalEventActivity3);
     this.noTargetDataEventDrivenActivity_Previous.Activities.Add(this.setStateActivity18);
     this.noTargetDataEventDrivenActivity_Previous.Name = "noTargetDataEventDrivenActivity_Previous";
     //
     // noTargetDataEventDrivenActivity_Cancel
     //
     this.noTargetDataEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity4);
     this.noTargetDataEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity12);
     this.noTargetDataEventDrivenActivity_Cancel.Name = "noTargetDataEventDrivenActivity_Cancel";
     //
     // noTargetDataEventDrivenActivity_Finish
     //
     this.noTargetDataEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity2);
     this.noTargetDataEventDrivenActivity_Finish.Activities.Add(this.setStateActivity13);
     this.noTargetDataEventDrivenActivity_Finish.Name = "noTargetDataEventDrivenActivity_Finish";
     //
     // noTargetDataStateInitializationActivity
     //
     this.noTargetDataStateInitializationActivity.Activities.Add(this.wizardFormActivity4);
     this.noTargetDataStateInitializationActivity.Name = "noTargetDataStateInitializationActivity";
     //
     // enterDefaultValuesEventDrivenActivity_Previous
     //
     this.enterDefaultValuesEventDrivenActivity_Previous.Activities.Add(this.previousHandleExternalEventActivity2);
     this.enterDefaultValuesEventDrivenActivity_Previous.Activities.Add(this.setStateActivity17);
     this.enterDefaultValuesEventDrivenActivity_Previous.Name = "enterDefaultValuesEventDrivenActivity_Previous";
     //
     // enterDefaultValuesEventDrivenActivity_Cancel
     //
     this.enterDefaultValuesEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
     this.enterDefaultValuesEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity11);
     this.enterDefaultValuesEventDrivenActivity_Cancel.Name = "enterDefaultValuesEventDrivenActivity_Cancel";
     //
     // enterDefaultValuesEventDrivenActivity_Finish
     //
     this.enterDefaultValuesEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.enterDefaultValuesEventDrivenActivity_Finish.Activities.Add(this.ifElseActivity3);
     this.enterDefaultValuesEventDrivenActivity_Finish.Name = "enterDefaultValuesEventDrivenActivity_Finish";
     //
     // enterDefaultValuesSateInitializationActivity
     //
     this.enterDefaultValuesSateInitializationActivity.Activities.Add(this.enterDefaultValuesCodeActivity_Initialize);
     this.enterDefaultValuesSateInitializationActivity.Name = "enterDefaultValuesSateInitializationActivity";
     //
     // createFieldGroupEventDrivenActivity_Previous
     //
     this.createFieldGroupEventDrivenActivity_Previous.Activities.Add(this.previousHandleExternalEventActivity1);
     this.createFieldGroupEventDrivenActivity_Previous.Activities.Add(this.setStateActivity16);
     this.createFieldGroupEventDrivenActivity_Previous.Name = "createFieldGroupEventDrivenActivity_Previous";
     //
     // createFieldGroupEventDrivenActivity_Cancel
     //
     this.createFieldGroupEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity5);
     this.createFieldGroupEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity8);
     this.createFieldGroupEventDrivenActivity_Cancel.Name = "createFieldGroupEventDrivenActivity_Cancel";
     //
     // createFieldGroupEventDrivenActivity_Next
     //
     this.createFieldGroupEventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity2);
     this.createFieldGroupEventDrivenActivity_Next.Activities.Add(this.createFieldGroupCodeActivity_CreateVisabilatiyRule);
     this.createFieldGroupEventDrivenActivity_Next.Activities.Add(this.if_DidFieldNameValidate);
     this.createFieldGroupEventDrivenActivity_Next.Name = "createFieldGroupEventDrivenActivity_Next";
     //
     // createFieldGroupStateInitializationActivity
     //
     this.createFieldGroupStateInitializationActivity.Activities.Add(this.createFieldGroupCodeActivity_Initialize);
     this.createFieldGroupStateInitializationActivity.Activities.Add(this.wizardFormActivity1);
     this.createFieldGroupStateInitializationActivity.Name = "createFieldGroupStateInitializationActivity";
     //
     // finalizeStateInitializationActivity
     //
     this.finalizeStateInitializationActivity.Activities.Add(this.codeActivity1);
     this.finalizeStateInitializationActivity.Activities.Add(this.closeCurrentViewActivity2);
     this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity20);
     this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
     //
     // noTypesToAddStateInitializationActivity
     //
     this.noTypesToAddStateInitializationActivity.Activities.Add(this.noTypesToAddCodeActivity_ShowMessage);
     this.noTypesToAddStateInitializationActivity.Activities.Add(this.setStateActivity4);
     this.noTypesToAddStateInitializationActivity.Name = "noTypesToAddStateInitializationActivity";
     //
     // selectTypeEventDrivenActivity_Cancel
     //
     this.selectTypeEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.selectTypeEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
     this.selectTypeEventDrivenActivity_Cancel.Name = "selectTypeEventDrivenActivity_Cancel";
     //
     // selectTypeEventDrivenActivity_Next
     //
     this.selectTypeEventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity1);
     this.selectTypeEventDrivenActivity_Next.Activities.Add(this.setStateActivity6);
     this.selectTypeEventDrivenActivity_Next.Name = "selectTypeEventDrivenActivity_Next";
     //
     // selectTypeStateInitializationActivity
     //
     this.selectTypeStateInitializationActivity.Activities.Add(this.selectTypeCodeActivity_Initialize);
     this.selectTypeStateInitializationActivity.Activities.Add(this.wizardFormActivity2);
     this.selectTypeStateInitializationActivity.Name = "selectTypeStateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.ifElseActivity1);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // noTargetDataWarningStateActivity
     //
     this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataStateInitializationActivity);
     this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataEventDrivenActivity_Finish);
     this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataEventDrivenActivity_Cancel);
     this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataEventDrivenActivity_Previous);
     this.noTargetDataWarningStateActivity.Name = "noTargetDataWarningStateActivity";
     //
     // enterDefaultValuesStateActivity
     //
     this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesSateInitializationActivity);
     this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesEventDrivenActivity_Finish);
     this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesEventDrivenActivity_Cancel);
     this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesEventDrivenActivity_Previous);
     this.enterDefaultValuesStateActivity.Name = "enterDefaultValuesStateActivity";
     //
     // createFieldGroupStateActivity
     //
     this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupStateInitializationActivity);
     this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupEventDrivenActivity_Next);
     this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupEventDrivenActivity_Cancel);
     this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupEventDrivenActivity_Previous);
     this.createFieldGroupStateActivity.Name = "createFieldGroupStateActivity";
     //
     // finalizeStateActivity
     //
     this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
     this.finalizeStateActivity.Name = "finalizeStateActivity";
     //
     // noTypesToAddStateActivity
     //
     this.noTypesToAddStateActivity.Activities.Add(this.noTypesToAddStateInitializationActivity);
     this.noTypesToAddStateActivity.Name = "noTypesToAddStateActivity";
     //
     // selectTypeToAddStateActivity
     //
     this.selectTypeToAddStateActivity.Activities.Add(this.selectTypeStateInitializationActivity);
     this.selectTypeToAddStateActivity.Activities.Add(this.selectTypeEventDrivenActivity_Next);
     this.selectTypeToAddStateActivity.Activities.Add(this.selectTypeEventDrivenActivity_Cancel);
     this.selectTypeToAddStateActivity.Name = "selectTypeToAddStateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // AddMetaDataWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.selectTypeToAddStateActivity);
     this.Activities.Add(this.noTypesToAddStateActivity);
     this.Activities.Add(this.finalizeStateActivity);
     this.Activities.Add(this.createFieldGroupStateActivity);
     this.Activities.Add(this.enterDefaultValuesStateActivity);
     this.Activities.Add(this.noTargetDataWarningStateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "AddMetaDataWorkflow";
     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 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.logErrorMessage = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.cmdErrorHandler = new System.Workflow.Activities.CodeActivity();
            this.logWorkflowStarted = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.cmdRun_ObslugaKartyKontrolnejWF = new System.Workflow.Activities.CodeActivity();
            this.faultHandlerActivity1 = new System.Workflow.ComponentModel.FaultHandlerActivity();
            this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
            this.faultHandlersActivity1 = new System.Workflow.ComponentModel.FaultHandlersActivity();
            this.logEnd = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.whileKartaKontrolna = new System.Workflow.Activities.WhileActivity();
            this.logSelected = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
            this.cmdGet_KartyKontrolne = new System.Workflow.Activities.CodeActivity();
            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 = "swfObslugaKartKontrolnych";
            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)));
            // 
            // cmdErrorHandler
            // 
            this.cmdErrorHandler.Name = "cmdErrorHandler";
            this.cmdErrorHandler.ExecuteCode += new System.EventHandler(this.cmdErrorHandler_ExecuteCode);
            // 
            // logWorkflowStarted
            // 
            this.logWorkflowStarted.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logWorkflowStarted.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logWorkflowStarted.HistoryDescription = "WF uruchomiony";
            activitybind2.Name = "swfObslugaKartKontrolnych";
            activitybind2.Path = "logWorkflowStarted_HistoryOutcome";
            this.logWorkflowStarted.Name = "logWorkflowStarted";
            this.logWorkflowStarted.OtherData = "";
            this.logWorkflowStarted.UserId = -1;
            this.logWorkflowStarted.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // cmdRun_ObslugaKartyKontrolnejWF
            // 
            this.cmdRun_ObslugaKartyKontrolnejWF.Name = "cmdRun_ObslugaKartyKontrolnejWF";
            this.cmdRun_ObslugaKartyKontrolnejWF.ExecuteCode += new System.EventHandler(this.cmdRun_ObslugaKartyKontrolnejWF_ExecuteCode);
            // 
            // faultHandlerActivity1
            // 
            this.faultHandlerActivity1.Activities.Add(this.cmdErrorHandler);
            this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
            this.faultHandlerActivity1.FaultType = typeof(System.SystemException);
            this.faultHandlerActivity1.Name = "faultHandlerActivity1";
            // 
            // sequenceActivity1
            // 
            this.sequenceActivity1.Activities.Add(this.cmdRun_ObslugaKartyKontrolnejWF);
            this.sequenceActivity1.Activities.Add(this.logWorkflowStarted);
            this.sequenceActivity1.Name = "sequenceActivity1";
            // 
            // faultHandlersActivity1
            // 
            this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
            this.faultHandlersActivity1.Name = "faultHandlersActivity1";
            // 
            // logEnd
            // 
            this.logEnd.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logEnd.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            this.logEnd.HistoryDescription = "Zakończony";
            this.logEnd.HistoryOutcome = "";
            this.logEnd.Name = "logEnd";
            this.logEnd.OtherData = "";
            this.logEnd.UserId = -1;
            // 
            // whileKartaKontrolna
            // 
            this.whileKartaKontrolna.Activities.Add(this.sequenceActivity1);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.whileKKExist);
            this.whileKartaKontrolna.Condition = codecondition1;
            this.whileKartaKontrolna.Name = "whileKartaKontrolna";
            // 
            // logSelected
            // 
            this.logSelected.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
            this.logSelected.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
            activitybind3.Name = "swfObslugaKartKontrolnych";
            activitybind3.Path = "logSelected_HistoryDescription";
            activitybind4.Name = "swfObslugaKartKontrolnych";
            activitybind4.Path = "logSelected_HistoryOutcome";
            this.logSelected.Name = "logSelected";
            this.logSelected.OtherData = "";
            this.logSelected.UserId = -1;
            this.logSelected.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryDescriptionProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            this.logSelected.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // cmdGet_KartyKontrolne
            // 
            this.cmdGet_KartyKontrolne.Name = "cmdGet_KartyKontrolne";
            this.cmdGet_KartyKontrolne.ExecuteCode += new System.EventHandler(this.cmdGet_KartyKontrolne_ExecuteCode);
            activitybind6.Name = "swfObslugaKartKontrolnych";
            activitybind6.Path = "workflowId";
            // 
            // onWorkflowActivated1
            // 
            correlationtoken1.Name = "workflowToken";
            correlationtoken1.OwnerActivityName = "swfObslugaKartKontrolnych";
            this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind5.Name = "swfObslugaKartKontrolnych";
            activitybind5.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)(activitybind6)));
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // swfObslugaKartKontrolnych
            // 
            this.Activities.Add(this.onWorkflowActivated1);
            this.Activities.Add(this.cmdGet_KartyKontrolne);
            this.Activities.Add(this.logSelected);
            this.Activities.Add(this.whileKartaKontrolna);
            this.Activities.Add(this.logEnd);
            this.Activities.Add(this.faultHandlersActivity1);
            this.Name = "swfObslugaKartKontrolnych";
            this.CanModifyActivities = false;

        }
 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();
     this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
     this.initializeStateCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity7     = new System.Workflow.Activities.SetStateActivity();
     this.ifElseBranchActivity4 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity1       = new System.Workflow.Activities.IfElseActivity();
     this.setStateActivity6     = new System.Workflow.Activities.SetStateActivity();
     this.caShowWarning         = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity5     = new System.Workflow.Activities.SetStateActivity();
     this.finalizeStateCodeActivity_Finalize = new System.Workflow.Activities.CodeActivity();
     this.closeCurrentViewActivity1          = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
     this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.confirmDialogFormActivity1         = new Composite.C1Console.Workflow.Activities.ConfirmDialogFormActivity();
     this.ifTypeIsReferenced = new System.Workflow.Activities.IfElseActivity();
     this.finalizeStateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.step1EventDrivenActivity_Cancel       = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Finish       = new System.Workflow.Activities.EventDrivenActivity();
     this.step1StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.finalizeStateActivity            = new System.Workflow.Activities.StateActivity();
     this.step1StateActivity               = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity               = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity          = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "step1StateActivity";
     //
     // initializeStateCodeActivity_Initialize
     //
     this.initializeStateCodeActivity_Initialize.Name         = "initializeStateCodeActivity_Initialize";
     this.initializeStateCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.initializeStateCodeActivity_Initialize_ExecuteCode);
     //
     // setStateActivity7
     //
     this.setStateActivity7.Name            = "setStateActivity7";
     this.setStateActivity7.TargetStateName = "finalStateActivity";
     //
     // ifElseBranchActivity4
     //
     this.ifElseBranchActivity4.Activities.Add(this.initializeStateCodeActivity_Initialize);
     this.ifElseBranchActivity4.Activities.Add(this.setStateActivity4);
     this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
     //
     // ifElseBranchActivity3
     //
     this.ifElseBranchActivity3.Activities.Add(this.setStateActivity7);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.IsUsedByPageType);
     this.ifElseBranchActivity3.Condition = codecondition1;
     this.ifElseBranchActivity3.Name      = "ifElseBranchActivity3";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity3);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity4);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "finalStateActivity";
     //
     // caShowWarning
     //
     this.caShowWarning.Name         = "caShowWarning";
     this.caShowWarning.ExecuteCode += new System.EventHandler(this.codeActivity_ShowTypeIsReferencedWarning);
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.ifElseActivity1);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.caShowWarning);
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity6);
     codecondition2.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.TypeIsReferenced);
     this.ifElseBranchActivity1.Condition = codecondition2;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finalStateActivity";
     //
     // finalizeStateCodeActivity_Finalize
     //
     this.finalizeStateCodeActivity_Finalize.Name         = "finalizeStateCodeActivity_Finalize";
     this.finalizeStateCodeActivity_Finalize.ExecuteCode += new System.EventHandler(this.finalizeStateCodeActivity_Finalize_ExecuteCode);
     //
     // closeCurrentViewActivity1
     //
     this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "finalizeStateActivity";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // confirmDialogFormActivity1
     //
     this.confirmDialogFormActivity1.ContainerLabel         = null;
     this.confirmDialogFormActivity1.FormDefinitionFileName = "\\Administrative\\DeleteCompositionTypeStep1.xml";
     this.confirmDialogFormActivity1.Name = "confirmDialogFormActivity1";
     //
     // ifTypeIsReferenced
     //
     this.ifTypeIsReferenced.Activities.Add(this.ifElseBranchActivity1);
     this.ifTypeIsReferenced.Activities.Add(this.ifElseBranchActivity2);
     this.ifTypeIsReferenced.Name = "ifTypeIsReferenced";
     //
     // finalizeStateInitializationActivity
     //
     this.finalizeStateInitializationActivity.Activities.Add(this.closeCurrentViewActivity1);
     this.finalizeStateInitializationActivity.Activities.Add(this.finalizeStateCodeActivity_Finalize);
     this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity5);
     this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
     //
     // step1EventDrivenActivity_Cancel
     //
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
     this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
     //
     // step1EventDrivenActivity_Finish
     //
     this.step1EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Finish.Activities.Add(this.setStateActivity3);
     this.step1EventDrivenActivity_Finish.Name = "step1EventDrivenActivity_Finish";
     //
     // step1StateInitializationActivity
     //
     this.step1StateInitializationActivity.Activities.Add(this.confirmDialogFormActivity1);
     this.step1StateInitializationActivity.Name = "step1StateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.ifTypeIsReferenced);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // finalizeStateActivity
     //
     this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
     this.finalizeStateActivity.Name = "finalizeStateActivity";
     //
     // step1StateActivity
     //
     this.step1StateActivity.Activities.Add(this.step1StateInitializationActivity);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Finish);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
     this.step1StateActivity.Name = "step1StateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // DeleteCompositionTypeWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.step1StateActivity);
     this.Activities.Add(this.finalizeStateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "DeleteCompositionTypeWorkflow";
     this.CanModifyActivities = false;
 }
 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();
     this.logToHistoryListActivity2 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logToHistoryListActivity1 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfContractNumberGenerated = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
     this.CNGeneration = new System.Workflow.Activities.CodeActivity();
     //
     // logToHistoryListActivity2
     //
     this.logToHistoryListActivity2.Duration = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity2.EventId = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity2.HistoryDescription = "Unable to generate contract number";
     this.logToHistoryListActivity2.HistoryOutcome = "";
     this.logToHistoryListActivity2.Name = "logToHistoryListActivity2";
     this.logToHistoryListActivity2.OtherData = "";
     this.logToHistoryListActivity2.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 = "New contract number was generated";
     activitybind1.Name = "GenerateContractNumber";
     activitybind1.Path = "ContactNumberGenerated";
     this.logToHistoryListActivity1.Name = "logToHistoryListActivity1";
     this.logToHistoryListActivity1.OtherData = "";
     this.logToHistoryListActivity1.UserId = -1;
     this.logToHistoryListActivity1.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.logToHistoryListActivity2);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // IfContractNumberGenerated
     //
     this.IfContractNumberGenerated.Activities.Add(this.logToHistoryListActivity1);
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsCNGenerated);
     this.IfContractNumberGenerated.Condition = codecondition1;
     this.IfContractNumberGenerated.Name = "IfContractNumberGenerated";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.IfContractNumberGenerated);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // CNGeneration
     //
     this.CNGeneration.Name = "CNGeneration";
     this.CNGeneration.ExecuteCode += new System.EventHandler(this.CNGeneration_ExecuteCode);
     //
     // GenerateContractNumber
     //
     this.Activities.Add(this.CNGeneration);
     this.Activities.Add(this.ifElseActivity1);
     this.Name = "GenerateContractNumber";
     this.CanModifyActivities = false;
 }
 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();
     this.DoKill           = new System.Workflow.Activities.CodeActivity();
     this.DoNothing1       = new System.Workflow.Activities.CodeActivity();
     this.NotFindPath      = new System.Workflow.Activities.IfElseBranchActivity();
     this.PathFound        = new System.Workflow.Activities.IfElseBranchActivity();
     this.IfFindPath       = new System.Workflow.Activities.IfElseActivity();
     this.DoNothing        = new System.Workflow.Activities.CodeActivity();
     this.NotDefending     = new System.Workflow.Activities.IfElseBranchActivity();
     this.Defending        = new System.Workflow.Activities.IfElseBranchActivity();
     this.DoDefending      = new System.Workflow.Activities.CodeActivity();
     this.IfDefending      = new System.Workflow.Activities.IfElseActivity();
     this.FindBestPath     = new System.Workflow.Activities.CodeActivity();
     this.WhileDefending   = new System.Workflow.Activities.WhileActivity();
     this.FightSequence    = new System.Workflow.Activities.SequenceActivity();
     this.WhileMyTurn      = new System.Workflow.Activities.WhileActivity();
     this.EvaluateCells    = new System.Workflow.Activities.CodeActivity();
     this.BuildBattleArray = new System.Workflow.Activities.CodeActivity();
     this.Init             = new System.Workflow.Activities.CodeActivity();
     //
     // DoKill
     //
     this.DoKill.Name         = "DoKill";
     this.DoKill.ExecuteCode += new System.EventHandler(this.DoKillEnemy);
     //
     // DoNothing1
     //
     this.DoNothing1.Name         = "DoNothing1";
     this.DoNothing1.ExecuteCode += new System.EventHandler(this.DoNothing_ExecuteCode);
     //
     // NotFindPath
     //
     this.NotFindPath.Activities.Add(this.DoKill);
     this.NotFindPath.Name = "NotFindPath";
     //
     // PathFound
     //
     this.PathFound.Activities.Add(this.DoNothing1);
     codecondition1.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.IsFindPath);
     this.PathFound.Condition  = codecondition1;
     this.PathFound.Name       = "PathFound";
     //
     // IfFindPath
     //
     this.IfFindPath.Activities.Add(this.PathFound);
     this.IfFindPath.Activities.Add(this.NotFindPath);
     this.IfFindPath.Name = "IfFindPath";
     //
     // DoNothing
     //
     this.DoNothing.Name         = "DoNothing";
     this.DoNothing.ExecuteCode += new System.EventHandler(this.DoNothing_ExecuteCode);
     //
     // NotDefending
     //
     this.NotDefending.Activities.Add(this.IfFindPath);
     this.NotDefending.Name = "NotDefending";
     //
     // Defending
     //
     this.Defending.Activities.Add(this.DoNothing);
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DoDefend);
     this.Defending.Condition  = codecondition2;
     this.Defending.Name       = "Defending";
     //
     // DoDefending
     //
     this.DoDefending.Name         = "DoDefending";
     this.DoDefending.ExecuteCode += new System.EventHandler(this.DoDefending_ExecuteCode);
     //
     // IfDefending
     //
     this.IfDefending.Activities.Add(this.Defending);
     this.IfDefending.Activities.Add(this.NotDefending);
     this.IfDefending.Name = "IfDefending";
     //
     // FindBestPath
     //
     this.FindBestPath.Name         = "FindBestPath";
     this.FindBestPath.ExecuteCode += new System.EventHandler(this.FindBestPath_ExecuteCode);
     //
     // WhileDefending
     //
     this.WhileDefending.Activities.Add(this.DoDefending);
     codecondition3.Condition     += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DoDefend);
     this.WhileDefending.Condition = codecondition3;
     this.WhileDefending.Name      = "WhileDefending";
     //
     // FightSequence
     //
     this.FightSequence.Activities.Add(this.WhileDefending);
     this.FightSequence.Activities.Add(this.FindBestPath);
     this.FightSequence.Activities.Add(this.IfDefending);
     this.FightSequence.Name = "FightSequence";
     //
     // WhileMyTurn
     //
     this.WhileMyTurn.Activities.Add(this.FightSequence);
     codecondition4.Condition  += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.IsMyTurn);
     this.WhileMyTurn.Condition = codecondition4;
     this.WhileMyTurn.Name      = "WhileMyTurn";
     //
     // EvaluateCells
     //
     this.EvaluateCells.Name         = "EvaluateCells";
     this.EvaluateCells.ExecuteCode += new System.EventHandler(this.EvaluateCells_ExecuteCode);
     //
     // BuildBattleArray
     //
     this.BuildBattleArray.Name         = "BuildBattleArray";
     this.BuildBattleArray.ExecuteCode += new System.EventHandler(this.BuildBattleArray_ExecuteCode);
     //
     // Init
     //
     this.Init.Name         = "Init";
     this.Init.ExecuteCode += new System.EventHandler(this.Init_ExecuteCode);
     //
     // ClopAiTurnWorkflow
     //
     this.Activities.Add(this.Init);
     this.Activities.Add(this.BuildBattleArray);
     this.Activities.Add(this.EvaluateCells);
     this.Activities.Add(this.WhileMyTurn);
     this.Name = "ClopAiTurnWorkflow";
     this.CanModifyActivities = false;
 }
        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();
            this.setStateActivity13 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity8 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity11 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity12 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity9 = new System.Workflow.Activities.SetStateActivity();
            this.if_notValid1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.if_valid1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.if_notValid = new System.Workflow.Activities.IfElseBranchActivity();
            this.if_valid = new System.Workflow.Activities.IfElseBranchActivity();
            this.if_isNotValid = new System.Workflow.Activities.IfElseBranchActivity();
            this.if_isValid = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifNotExist = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifExist = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity7 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity4 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.if_defaultValuesAreValid = new System.Workflow.Activities.IfElseActivity();
            this.finishHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.step2CodeActivity_ShowWizzard = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.finalizeCodeActivity_Finalize = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.step1ifElseActivity_Finish_ValidateMetaDataName = new System.Workflow.Activities.IfElseActivity();
            this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.step1WizardFormActivity_Finish = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
            this.wizardFormActivity1 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.step1IfElseActivity_ValidateMetaDataName = new System.Workflow.Activities.IfElseActivity();
            this.nextHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
            this.ifPagesUsingPageTypeExist = new System.Workflow.Activities.IfElseActivity();
            this.initializeCodeActivity_UpdateBindings = new System.Workflow.Activities.CodeActivity();
            this.step2EventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.step2EventDrivenActivity_Finsih = new System.Workflow.Activities.EventDrivenActivity();
            this.step2StateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.finalizeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.step1EventDrivenActivity_Finish_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.step1EventDrivenActivity_Finish_Finsih = new System.Workflow.Activities.EventDrivenActivity();
            this.step1StateInitializationActivity_Finish = new System.Workflow.Activities.StateInitializationActivity();
            this.step1StateInitializationActivity_Next = new System.Workflow.Activities.StateInitializationActivity();
            this.step1EventDrivenActivity_Next_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.step1EventDrivenActivity_Next_Next = new System.Workflow.Activities.EventDrivenActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.step2_EnterDefaultValues = new System.Workflow.Activities.StateActivity();
            this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
            this.step1_EnterMetaDataFieldName_NoDefaultValues = new System.Workflow.Activities.StateActivity();
            this.step1_EnterMetaDataFieldName = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            // 
            // setStateActivity13
            // 
            this.setStateActivity13.Name = "setStateActivity13";
            this.setStateActivity13.TargetStateName = "step2_EnterDefaultValues";
            // 
            // setStateActivity8
            // 
            this.setStateActivity8.Name = "setStateActivity8";
            this.setStateActivity8.TargetStateName = "finalizeStateActivity";
            // 
            // setStateActivity11
            // 
            this.setStateActivity11.Name = "setStateActivity11";
            this.setStateActivity11.TargetStateName = "step1_EnterMetaDataFieldName_NoDefaultValues";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "finalizeStateActivity";
            // 
            // setStateActivity12
            // 
            this.setStateActivity12.Name = "setStateActivity12";
            this.setStateActivity12.TargetStateName = "step1_EnterMetaDataFieldName";
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "step2_EnterDefaultValues";
            // 
            // setStateActivity10
            // 
            this.setStateActivity10.Name = "setStateActivity10";
            this.setStateActivity10.TargetStateName = "step1_EnterMetaDataFieldName_NoDefaultValues";
            // 
            // setStateActivity9
            // 
            this.setStateActivity9.Name = "setStateActivity9";
            this.setStateActivity9.TargetStateName = "step1_EnterMetaDataFieldName";
            // 
            // if_notValid1
            // 
            this.if_notValid1.Activities.Add(this.setStateActivity13);
            this.if_notValid1.Name = "if_notValid1";
            // 
            // if_valid1
            // 
            this.if_valid1.Activities.Add(this.setStateActivity8);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DefaultValuesAreValid);
            this.if_valid1.Condition = codecondition1;
            this.if_valid1.Name = "if_valid1";
            // 
            // if_notValid
            // 
            this.if_notValid.Activities.Add(this.setStateActivity11);
            this.if_notValid.Name = "if_notValid";
            // 
            // if_valid
            // 
            this.if_valid.Activities.Add(this.setStateActivity4);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ValidateMetaDataName);
            this.if_valid.Condition = codecondition2;
            this.if_valid.Name = "if_valid";
            // 
            // if_isNotValid
            // 
            this.if_isNotValid.Activities.Add(this.setStateActivity12);
            this.if_isNotValid.Name = "if_isNotValid";
            // 
            // if_isValid
            // 
            this.if_isValid.Activities.Add(this.setStateActivity6);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ValidateMetaDataName);
            this.if_isValid.Condition = codecondition3;
            this.if_isValid.Name = "if_isValid";
            // 
            // ifNotExist
            // 
            this.ifNotExist.Activities.Add(this.setStateActivity10);
            this.ifNotExist.Name = "ifNotExist";
            // 
            // ifExist
            // 
            this.ifExist.Activities.Add(this.setStateActivity9);
            codecondition4.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.PagesUsingPageTypeExists);
            this.ifExist.Condition = codecondition4;
            this.ifExist.Name = "ifExist";
            // 
            // setStateActivity7
            // 
            this.setStateActivity7.Name = "setStateActivity7";
            this.setStateActivity7.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity4
            // 
            this.cancelHandleExternalEventActivity4.EventName = "Cancel";
            this.cancelHandleExternalEventActivity4.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity4.Name = "cancelHandleExternalEventActivity4";
            // 
            // if_defaultValuesAreValid
            // 
            this.if_defaultValuesAreValid.Activities.Add(this.if_valid1);
            this.if_defaultValuesAreValid.Activities.Add(this.if_notValid1);
            this.if_defaultValuesAreValid.Name = "if_defaultValuesAreValid";
            // 
            // finishHandleExternalEventActivity2
            // 
            this.finishHandleExternalEventActivity2.EventName = "Finish";
            this.finishHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity2.Name = "finishHandleExternalEventActivity2";
            // 
            // step2CodeActivity_ShowWizzard
            // 
            this.step2CodeActivity_ShowWizzard.Name = "step2CodeActivity_ShowWizzard";
            this.step2CodeActivity_ShowWizzard.ExecuteCode += new System.EventHandler(this.step2CodeActivity_ShowWizzard_ExecuteCode);
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // finalizeCodeActivity_Finalize
            // 
            this.finalizeCodeActivity_Finalize.Name = "finalizeCodeActivity_Finalize";
            this.finalizeCodeActivity_Finalize.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_Finalize_ExecuteCode);
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity3
            // 
            this.cancelHandleExternalEventActivity3.EventName = "Cancel";
            this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity3.Name = "cancelHandleExternalEventActivity3";
            // 
            // step1ifElseActivity_Finish_ValidateMetaDataName
            // 
            this.step1ifElseActivity_Finish_ValidateMetaDataName.Activities.Add(this.if_valid);
            this.step1ifElseActivity_Finish_ValidateMetaDataName.Activities.Add(this.if_notValid);
            this.step1ifElseActivity_Finish_ValidateMetaDataName.Name = "step1ifElseActivity_Finish_ValidateMetaDataName";
            // 
            // finishHandleExternalEventActivity1
            // 
            this.finishHandleExternalEventActivity1.EventName = "Finish";
            this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity1.Name = "finishHandleExternalEventActivity1";
            // 
            // step1WizardFormActivity_Finish
            // 
            this.step1WizardFormActivity_Finish.ContainerLabel = null;
            this.step1WizardFormActivity_Finish.FormDefinitionFileName = "/Administrative/PageTypeAddPageTypeMetaDataFieldStep1.xml";
            this.step1WizardFormActivity_Finish.Name = "step1WizardFormActivity_Finish";
            // 
            // wizardFormActivity1
            // 
            this.wizardFormActivity1.ContainerLabel = null;
            this.wizardFormActivity1.FormDefinitionFileName = "/Administrative/PageTypeAddPageTypeMetaDataFieldStep1.xml";
            this.wizardFormActivity1.Name = "wizardFormActivity1";
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity2
            // 
            this.cancelHandleExternalEventActivity2.EventName = "Cancel";
            this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity2.Name = "cancelHandleExternalEventActivity2";
            // 
            // step1IfElseActivity_ValidateMetaDataName
            // 
            this.step1IfElseActivity_ValidateMetaDataName.Activities.Add(this.if_isValid);
            this.step1IfElseActivity_ValidateMetaDataName.Activities.Add(this.if_isNotValid);
            this.step1IfElseActivity_ValidateMetaDataName.Name = "step1IfElseActivity_ValidateMetaDataName";
            // 
            // nextHandleExternalEventActivity1
            // 
            this.nextHandleExternalEventActivity1.EventName = "Next";
            this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.nextHandleExternalEventActivity1.Name = "nextHandleExternalEventActivity1";
            // 
            // ifPagesUsingPageTypeExist
            // 
            this.ifPagesUsingPageTypeExist.Activities.Add(this.ifExist);
            this.ifPagesUsingPageTypeExist.Activities.Add(this.ifNotExist);
            this.ifPagesUsingPageTypeExist.Name = "ifPagesUsingPageTypeExist";
            // 
            // initializeCodeActivity_UpdateBindings
            // 
            this.initializeCodeActivity_UpdateBindings.Name = "initializeCodeActivity_UpdateBindings";
            this.initializeCodeActivity_UpdateBindings.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_UpdateBindings_ExecuteCode);
            // 
            // step2EventDrivenActivity_Cancel
            // 
            this.step2EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity4);
            this.step2EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity7);
            this.step2EventDrivenActivity_Cancel.Name = "step2EventDrivenActivity_Cancel";
            // 
            // step2EventDrivenActivity_Finsih
            // 
            this.step2EventDrivenActivity_Finsih.Activities.Add(this.finishHandleExternalEventActivity2);
            this.step2EventDrivenActivity_Finsih.Activities.Add(this.if_defaultValuesAreValid);
            this.step2EventDrivenActivity_Finsih.Name = "step2EventDrivenActivity_Finsih";
            // 
            // step2StateInitializationActivity
            // 
            this.step2StateInitializationActivity.Activities.Add(this.step2CodeActivity_ShowWizzard);
            this.step2StateInitializationActivity.Name = "step2StateInitializationActivity";
            // 
            // finalizeStateInitializationActivity
            // 
            this.finalizeStateInitializationActivity.Activities.Add(this.finalizeCodeActivity_Finalize);
            this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity5);
            this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
            // 
            // step1EventDrivenActivity_Finish_Cancel
            // 
            this.step1EventDrivenActivity_Finish_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
            this.step1EventDrivenActivity_Finish_Cancel.Activities.Add(this.setStateActivity2);
            this.step1EventDrivenActivity_Finish_Cancel.Name = "step1EventDrivenActivity_Finish_Cancel";
            // 
            // step1EventDrivenActivity_Finish_Finsih
            // 
            this.step1EventDrivenActivity_Finish_Finsih.Activities.Add(this.finishHandleExternalEventActivity1);
            this.step1EventDrivenActivity_Finish_Finsih.Activities.Add(this.step1ifElseActivity_Finish_ValidateMetaDataName);
            this.step1EventDrivenActivity_Finish_Finsih.Name = "step1EventDrivenActivity_Finish_Finsih";
            // 
            // step1StateInitializationActivity_Finish
            // 
            this.step1StateInitializationActivity_Finish.Activities.Add(this.step1WizardFormActivity_Finish);
            this.step1StateInitializationActivity_Finish.Name = "step1StateInitializationActivity_Finish";
            // 
            // step1StateInitializationActivity_Next
            // 
            this.step1StateInitializationActivity_Next.Activities.Add(this.wizardFormActivity1);
            this.step1StateInitializationActivity_Next.Name = "step1StateInitializationActivity_Next";
            // 
            // step1EventDrivenActivity_Next_Cancel
            // 
            this.step1EventDrivenActivity_Next_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
            this.step1EventDrivenActivity_Next_Cancel.Activities.Add(this.setStateActivity3);
            this.step1EventDrivenActivity_Next_Cancel.Name = "step1EventDrivenActivity_Next_Cancel";
            // 
            // step1EventDrivenActivity_Next_Next
            // 
            this.step1EventDrivenActivity_Next_Next.Activities.Add(this.nextHandleExternalEventActivity1);
            this.step1EventDrivenActivity_Next_Next.Activities.Add(this.step1IfElseActivity_ValidateMetaDataName);
            this.step1EventDrivenActivity_Next_Next.Name = "step1EventDrivenActivity_Next_Next";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.initializeCodeActivity_UpdateBindings);
            this.initializeStateInitializationActivity.Activities.Add(this.ifPagesUsingPageTypeExist);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // step2_EnterDefaultValues
            // 
            this.step2_EnterDefaultValues.Activities.Add(this.step2StateInitializationActivity);
            this.step2_EnterDefaultValues.Activities.Add(this.step2EventDrivenActivity_Finsih);
            this.step2_EnterDefaultValues.Activities.Add(this.step2EventDrivenActivity_Cancel);
            this.step2_EnterDefaultValues.Name = "step2_EnterDefaultValues";
            // 
            // finalizeStateActivity
            // 
            this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
            this.finalizeStateActivity.Name = "finalizeStateActivity";
            // 
            // step1_EnterMetaDataFieldName_NoDefaultValues
            // 
            this.step1_EnterMetaDataFieldName_NoDefaultValues.Activities.Add(this.step1StateInitializationActivity_Finish);
            this.step1_EnterMetaDataFieldName_NoDefaultValues.Activities.Add(this.step1EventDrivenActivity_Finish_Finsih);
            this.step1_EnterMetaDataFieldName_NoDefaultValues.Activities.Add(this.step1EventDrivenActivity_Finish_Cancel);
            this.step1_EnterMetaDataFieldName_NoDefaultValues.Name = "step1_EnterMetaDataFieldName_NoDefaultValues";
            // 
            // step1_EnterMetaDataFieldName
            // 
            this.step1_EnterMetaDataFieldName.Activities.Add(this.step1EventDrivenActivity_Next_Next);
            this.step1_EnterMetaDataFieldName.Activities.Add(this.step1EventDrivenActivity_Next_Cancel);
            this.step1_EnterMetaDataFieldName.Activities.Add(this.step1StateInitializationActivity_Next);
            this.step1_EnterMetaDataFieldName.Name = "step1_EnterMetaDataFieldName";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // AddPageTypeMetaDataFieldWorkflow
            // 
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.step1_EnterMetaDataFieldName);
            this.Activities.Add(this.step1_EnterMetaDataFieldName_NoDefaultValues);
            this.Activities.Add(this.finalizeStateActivity);
            this.Activities.Add(this.step2_EnterDefaultValues);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "AddPageTypeMetaDataFieldWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 46
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     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.Increment_KlientIndex = new System.Workflow.Activities.CodeActivity();
     this.Create_RekordyStrat   = new System.Workflow.Activities.CodeActivity();
     this.sequenceActivity1     = new System.Workflow.Activities.SequenceActivity();
     this.whileKlientExist      = new System.Workflow.Activities.WhileActivity();
     this.Set_KlientIndex       = new System.Workflow.Activities.CodeActivity();
     this.Select_ListaKlientow  = new System.Workflow.Activities.CodeActivity();
     this.onWorkflowActivated1  = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
     //
     // Increment_KlientIndex
     //
     this.Increment_KlientIndex.Name         = "Increment_KlientIndex";
     this.Increment_KlientIndex.ExecuteCode += new System.EventHandler(this.Increment_KlientIndex_ExecuteCode);
     //
     // Create_RekordyStrat
     //
     this.Create_RekordyStrat.Name         = "Create_RekordyStrat";
     this.Create_RekordyStrat.ExecuteCode += new System.EventHandler(this.Create_RekordyStrat_ExecuteCode);
     //
     // sequenceActivity1
     //
     this.sequenceActivity1.Activities.Add(this.Create_RekordyStrat);
     this.sequenceActivity1.Activities.Add(this.Increment_KlientIndex);
     this.sequenceActivity1.Name = "sequenceActivity1";
     //
     // whileKlientExist
     //
     this.whileKlientExist.Activities.Add(this.sequenceActivity1);
     codecondition1.Condition       += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isKlientExist);
     this.whileKlientExist.Condition = codecondition1;
     this.whileKlientExist.Name      = "whileKlientExist";
     //
     // Set_KlientIndex
     //
     this.Set_KlientIndex.Name         = "Set_KlientIndex";
     this.Set_KlientIndex.ExecuteCode += new System.EventHandler(this.Set_KlientIndex_ExecuteCode);
     //
     // Select_ListaKlientow
     //
     this.Select_ListaKlientow.Name         = "Select_ListaKlientow";
     this.Select_ListaKlientow.ExecuteCode += new System.EventHandler(this.Select_ListaKlientow_ExecuteCode);
     activitybind2.Name = "GenerujRejestry_StratyZLatUbieglych";
     activitybind2.Path = "workflowId";
     //
     // onWorkflowActivated1
     //
     correlationtoken1.Name = "workflowToken";
     correlationtoken1.OwnerActivityName        = "GenerujRejestry_StratyZLatUbieglych";
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind1.Name = "GenerujRejestry_StratyZLatUbieglych";
     activitybind1.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)(activitybind2)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     //
     // GenerujRejestry_StratyZLatUbieglych
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.Select_ListaKlientow);
     this.Activities.Add(this.Set_KlientIndex);
     this.Activities.Add(this.whileKlientExist);
     this.Name = "GenerujRejestry_StratyZLatUbieglych";
     this.CanModifyActivities = false;
 }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.initializeCodeActivity_ShowMessage = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.deleteCodeActivity_Delete = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.dataDialogFormActivity1 = new Composite.C1Console.Workflow.Activities.DataDialogFormActivity();
            this.confirmCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.deleteStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.confirmEventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.confirmEventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.confirmStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.deleteStateActivity = new System.Workflow.Activities.StateActivity();
            this.confirmStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "finalStateActivity";
            // 
            // initializeCodeActivity_ShowMessage
            // 
            this.initializeCodeActivity_ShowMessage.Name = "initializeCodeActivity_ShowMessage";
            this.initializeCodeActivity_ShowMessage.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_ShowMessage_ExecuteCode);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "confirmStateActivity";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.initializeCodeActivity_ShowMessage);
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity6);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.setStateActivity3);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DoesDefinedMetaDataTypesExists);
            this.ifElseBranchActivity1.Condition = codecondition1;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // deleteCodeActivity_Delete
            // 
            this.deleteCodeActivity_Delete.Name = "deleteCodeActivity_Delete";
            this.deleteCodeActivity_Delete.ExecuteCode += new System.EventHandler(this.deleteCodeActivity_Delete_ExecuteCode);
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity2
            // 
            this.cancelHandleExternalEventActivity2.EventName = "Cancel";
            this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity2.Name = "cancelHandleExternalEventActivity2";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "deleteStateActivity";
            // 
            // finishHandleExternalEventActivity1
            // 
            this.finishHandleExternalEventActivity1.EventName = "Finish";
            this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity1.Name = "finishHandleExternalEventActivity1";
            // 
            // dataDialogFormActivity1
            // 
            this.dataDialogFormActivity1.ContainerLabel = null;
            this.dataDialogFormActivity1.FormDefinitionFileName = "\\Administrative\\DeleteMetaDataConfirm.xml";
            this.dataDialogFormActivity1.Name = "dataDialogFormActivity1";
            // 
            // confirmCodeActivity_Initialize
            // 
            this.confirmCodeActivity_Initialize.Name = "confirmCodeActivity_Initialize";
            this.confirmCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.confirmCodeActivity_Initialize_ExecuteCode);
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // deleteStateInitializationActivity
            // 
            this.deleteStateInitializationActivity.Activities.Add(this.deleteCodeActivity_Delete);
            this.deleteStateInitializationActivity.Activities.Add(this.setStateActivity5);
            this.deleteStateInitializationActivity.Name = "deleteStateInitializationActivity";
            // 
            // confirmEventDrivenActivity_Cancel
            // 
            this.confirmEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
            this.confirmEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
            this.confirmEventDrivenActivity_Cancel.Name = "confirmEventDrivenActivity_Cancel";
            // 
            // confirmEventDrivenActivity_Finish
            // 
            this.confirmEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
            this.confirmEventDrivenActivity_Finish.Activities.Add(this.setStateActivity4);
            this.confirmEventDrivenActivity_Finish.Name = "confirmEventDrivenActivity_Finish";
            // 
            // confirmStateInitializationActivity
            // 
            this.confirmStateInitializationActivity.Activities.Add(this.confirmCodeActivity_Initialize);
            this.confirmStateInitializationActivity.Activities.Add(this.dataDialogFormActivity1);
            this.confirmStateInitializationActivity.Name = "confirmStateInitializationActivity";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.ifElseActivity1);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // deleteStateActivity
            // 
            this.deleteStateActivity.Activities.Add(this.deleteStateInitializationActivity);
            this.deleteStateActivity.Name = "deleteStateActivity";
            // 
            // confirmStateActivity
            // 
            this.confirmStateActivity.Activities.Add(this.confirmStateInitializationActivity);
            this.confirmStateActivity.Activities.Add(this.confirmEventDrivenActivity_Finish);
            this.confirmStateActivity.Activities.Add(this.confirmEventDrivenActivity_Cancel);
            this.confirmStateActivity.Name = "confirmStateActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // DeleteMetaDataWorkflow
            // 
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.confirmStateActivity);
            this.Activities.Add(this.deleteStateActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "DeleteMetaDataWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 48
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();
     this.setStateActivity13 = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity8  = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity11 = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity4  = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity12 = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity6  = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity9  = new System.Workflow.Activities.SetStateActivity();
     this.if_notValid1       = new System.Workflow.Activities.IfElseBranchActivity();
     this.if_valid1          = new System.Workflow.Activities.IfElseBranchActivity();
     this.if_notValid        = new System.Workflow.Activities.IfElseBranchActivity();
     this.if_valid           = new System.Workflow.Activities.IfElseBranchActivity();
     this.if_isNotValid      = new System.Workflow.Activities.IfElseBranchActivity();
     this.if_isValid         = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifNotExist         = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifExist            = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity7  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity4 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.if_defaultValuesAreValid           = new System.Workflow.Activities.IfElseActivity();
     this.finishHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.step2CodeActivity_ShowWizzard      = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity5                  = new System.Workflow.Activities.SetStateActivity();
     this.finalizeCodeActivity_Finalize      = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity2                  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step1ifElseActivity_Finish_ValidateMetaDataName = new System.Workflow.Activities.IfElseActivity();
     this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.step1WizardFormActivity_Finish     = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.wizardFormActivity1 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity3   = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2       = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step1IfElseActivity_ValidateMetaDataName = new System.Workflow.Activities.IfElseActivity();
     this.nextHandleExternalEventActivity1         = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.ifPagesUsingPageTypeExist               = new System.Workflow.Activities.IfElseActivity();
     this.initializeCodeActivity_UpdateBindings   = new System.Workflow.Activities.CodeActivity();
     this.step2EventDrivenActivity_Cancel         = new System.Workflow.Activities.EventDrivenActivity();
     this.step2EventDrivenActivity_Finsih         = new System.Workflow.Activities.EventDrivenActivity();
     this.step2StateInitializationActivity        = new System.Workflow.Activities.StateInitializationActivity();
     this.finalizeStateInitializationActivity     = new System.Workflow.Activities.StateInitializationActivity();
     this.step1EventDrivenActivity_Finish_Cancel  = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Finish_Finsih  = new System.Workflow.Activities.EventDrivenActivity();
     this.step1StateInitializationActivity_Finish = new System.Workflow.Activities.StateInitializationActivity();
     this.step1StateInitializationActivity_Next   = new System.Workflow.Activities.StateInitializationActivity();
     this.step1EventDrivenActivity_Next_Cancel    = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Next_Next      = new System.Workflow.Activities.EventDrivenActivity();
     this.initializeStateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step2_EnterDefaultValues           = new System.Workflow.Activities.StateActivity();
     this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
     this.step1_EnterMetaDataFieldName_NoDefaultValues = new System.Workflow.Activities.StateActivity();
     this.step1_EnterMetaDataFieldName     = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity               = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity          = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity13
     //
     this.setStateActivity13.Name            = "setStateActivity13";
     this.setStateActivity13.TargetStateName = "step2_EnterDefaultValues";
     //
     // setStateActivity8
     //
     this.setStateActivity8.Name            = "setStateActivity8";
     this.setStateActivity8.TargetStateName = "finalizeStateActivity";
     //
     // setStateActivity11
     //
     this.setStateActivity11.Name            = "setStateActivity11";
     this.setStateActivity11.TargetStateName = "step1_EnterMetaDataFieldName_NoDefaultValues";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalizeStateActivity";
     //
     // setStateActivity12
     //
     this.setStateActivity12.Name            = "setStateActivity12";
     this.setStateActivity12.TargetStateName = "step1_EnterMetaDataFieldName";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "step2_EnterDefaultValues";
     //
     // setStateActivity10
     //
     this.setStateActivity10.Name            = "setStateActivity10";
     this.setStateActivity10.TargetStateName = "step1_EnterMetaDataFieldName_NoDefaultValues";
     //
     // setStateActivity9
     //
     this.setStateActivity9.Name            = "setStateActivity9";
     this.setStateActivity9.TargetStateName = "step1_EnterMetaDataFieldName";
     //
     // if_notValid1
     //
     this.if_notValid1.Activities.Add(this.setStateActivity13);
     this.if_notValid1.Name = "if_notValid1";
     //
     // if_valid1
     //
     this.if_valid1.Activities.Add(this.setStateActivity8);
     codecondition1.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DefaultValuesAreValid);
     this.if_valid1.Condition  = codecondition1;
     this.if_valid1.Name       = "if_valid1";
     //
     // if_notValid
     //
     this.if_notValid.Activities.Add(this.setStateActivity11);
     this.if_notValid.Name = "if_notValid";
     //
     // if_valid
     //
     this.if_valid.Activities.Add(this.setStateActivity4);
     codecondition2.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateMetaDataName);
     this.if_valid.Condition   = codecondition2;
     this.if_valid.Name        = "if_valid";
     //
     // if_isNotValid
     //
     this.if_isNotValid.Activities.Add(this.setStateActivity12);
     this.if_isNotValid.Name = "if_isNotValid";
     //
     // if_isValid
     //
     this.if_isValid.Activities.Add(this.setStateActivity6);
     codecondition3.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateMetaDataName);
     this.if_isValid.Condition = codecondition3;
     this.if_isValid.Name      = "if_isValid";
     //
     // ifNotExist
     //
     this.ifNotExist.Activities.Add(this.setStateActivity10);
     this.ifNotExist.Name = "ifNotExist";
     //
     // ifExist
     //
     this.ifExist.Activities.Add(this.setStateActivity9);
     codecondition4.Condition += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.PagesUsingPageTypeExists);
     this.ifExist.Condition    = codecondition4;
     this.ifExist.Name         = "ifExist";
     //
     // setStateActivity7
     //
     this.setStateActivity7.Name            = "setStateActivity7";
     this.setStateActivity7.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity4
     //
     this.cancelHandleExternalEventActivity4.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity4.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity4.Name          = "cancelHandleExternalEventActivity4";
     //
     // if_defaultValuesAreValid
     //
     this.if_defaultValuesAreValid.Activities.Add(this.if_valid1);
     this.if_defaultValuesAreValid.Activities.Add(this.if_notValid1);
     this.if_defaultValuesAreValid.Name = "if_defaultValuesAreValid";
     //
     // finishHandleExternalEventActivity2
     //
     this.finishHandleExternalEventActivity2.EventName     = "Finish";
     this.finishHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity2.Name          = "finishHandleExternalEventActivity2";
     //
     // step2CodeActivity_ShowWizzard
     //
     this.step2CodeActivity_ShowWizzard.Name         = "step2CodeActivity_ShowWizzard";
     this.step2CodeActivity_ShowWizzard.ExecuteCode += new System.EventHandler(this.step2CodeActivity_ShowWizzard_ExecuteCode);
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "finalStateActivity";
     //
     // finalizeCodeActivity_Finalize
     //
     this.finalizeCodeActivity_Finalize.Name         = "finalizeCodeActivity_Finalize";
     this.finalizeCodeActivity_Finalize.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_Finalize_ExecuteCode);
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity3
     //
     this.cancelHandleExternalEventActivity3.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity3.Name          = "cancelHandleExternalEventActivity3";
     //
     // step1ifElseActivity_Finish_ValidateMetaDataName
     //
     this.step1ifElseActivity_Finish_ValidateMetaDataName.Activities.Add(this.if_valid);
     this.step1ifElseActivity_Finish_ValidateMetaDataName.Activities.Add(this.if_notValid);
     this.step1ifElseActivity_Finish_ValidateMetaDataName.Name = "step1ifElseActivity_Finish_ValidateMetaDataName";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // step1WizardFormActivity_Finish
     //
     this.step1WizardFormActivity_Finish.ContainerLabel         = null;
     this.step1WizardFormActivity_Finish.FormDefinitionFileName = "/Administrative/PageTypeAddPageTypeMetaDataFieldStep1.xml";
     this.step1WizardFormActivity_Finish.Name = "step1WizardFormActivity_Finish";
     //
     // wizardFormActivity1
     //
     this.wizardFormActivity1.ContainerLabel         = null;
     this.wizardFormActivity1.FormDefinitionFileName = "/Administrative/PageTypeAddPageTypeMetaDataFieldStep1.xml";
     this.wizardFormActivity1.Name = "wizardFormActivity1";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // step1IfElseActivity_ValidateMetaDataName
     //
     this.step1IfElseActivity_ValidateMetaDataName.Activities.Add(this.if_isValid);
     this.step1IfElseActivity_ValidateMetaDataName.Activities.Add(this.if_isNotValid);
     this.step1IfElseActivity_ValidateMetaDataName.Name = "step1IfElseActivity_ValidateMetaDataName";
     //
     // nextHandleExternalEventActivity1
     //
     this.nextHandleExternalEventActivity1.EventName     = "Next";
     this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity1.Name          = "nextHandleExternalEventActivity1";
     //
     // ifPagesUsingPageTypeExist
     //
     this.ifPagesUsingPageTypeExist.Activities.Add(this.ifExist);
     this.ifPagesUsingPageTypeExist.Activities.Add(this.ifNotExist);
     this.ifPagesUsingPageTypeExist.Name = "ifPagesUsingPageTypeExist";
     //
     // initializeCodeActivity_UpdateBindings
     //
     this.initializeCodeActivity_UpdateBindings.Name         = "initializeCodeActivity_UpdateBindings";
     this.initializeCodeActivity_UpdateBindings.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_UpdateBindings_ExecuteCode);
     //
     // step2EventDrivenActivity_Cancel
     //
     this.step2EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity4);
     this.step2EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity7);
     this.step2EventDrivenActivity_Cancel.Name = "step2EventDrivenActivity_Cancel";
     //
     // step2EventDrivenActivity_Finsih
     //
     this.step2EventDrivenActivity_Finsih.Activities.Add(this.finishHandleExternalEventActivity2);
     this.step2EventDrivenActivity_Finsih.Activities.Add(this.if_defaultValuesAreValid);
     this.step2EventDrivenActivity_Finsih.Name = "step2EventDrivenActivity_Finsih";
     //
     // step2StateInitializationActivity
     //
     this.step2StateInitializationActivity.Activities.Add(this.step2CodeActivity_ShowWizzard);
     this.step2StateInitializationActivity.Name = "step2StateInitializationActivity";
     //
     // finalizeStateInitializationActivity
     //
     this.finalizeStateInitializationActivity.Activities.Add(this.finalizeCodeActivity_Finalize);
     this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity5);
     this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
     //
     // step1EventDrivenActivity_Finish_Cancel
     //
     this.step1EventDrivenActivity_Finish_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
     this.step1EventDrivenActivity_Finish_Cancel.Activities.Add(this.setStateActivity2);
     this.step1EventDrivenActivity_Finish_Cancel.Name = "step1EventDrivenActivity_Finish_Cancel";
     //
     // step1EventDrivenActivity_Finish_Finsih
     //
     this.step1EventDrivenActivity_Finish_Finsih.Activities.Add(this.finishHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Finish_Finsih.Activities.Add(this.step1ifElseActivity_Finish_ValidateMetaDataName);
     this.step1EventDrivenActivity_Finish_Finsih.Name = "step1EventDrivenActivity_Finish_Finsih";
     //
     // step1StateInitializationActivity_Finish
     //
     this.step1StateInitializationActivity_Finish.Activities.Add(this.step1WizardFormActivity_Finish);
     this.step1StateInitializationActivity_Finish.Name = "step1StateInitializationActivity_Finish";
     //
     // step1StateInitializationActivity_Next
     //
     this.step1StateInitializationActivity_Next.Activities.Add(this.wizardFormActivity1);
     this.step1StateInitializationActivity_Next.Name = "step1StateInitializationActivity_Next";
     //
     // step1EventDrivenActivity_Next_Cancel
     //
     this.step1EventDrivenActivity_Next_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step1EventDrivenActivity_Next_Cancel.Activities.Add(this.setStateActivity3);
     this.step1EventDrivenActivity_Next_Cancel.Name = "step1EventDrivenActivity_Next_Cancel";
     //
     // step1EventDrivenActivity_Next_Next
     //
     this.step1EventDrivenActivity_Next_Next.Activities.Add(this.nextHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Next_Next.Activities.Add(this.step1IfElseActivity_ValidateMetaDataName);
     this.step1EventDrivenActivity_Next_Next.Name = "step1EventDrivenActivity_Next_Next";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.initializeCodeActivity_UpdateBindings);
     this.initializeStateInitializationActivity.Activities.Add(this.ifPagesUsingPageTypeExist);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // step2_EnterDefaultValues
     //
     this.step2_EnterDefaultValues.Activities.Add(this.step2StateInitializationActivity);
     this.step2_EnterDefaultValues.Activities.Add(this.step2EventDrivenActivity_Finsih);
     this.step2_EnterDefaultValues.Activities.Add(this.step2EventDrivenActivity_Cancel);
     this.step2_EnterDefaultValues.Name = "step2_EnterDefaultValues";
     //
     // finalizeStateActivity
     //
     this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
     this.finalizeStateActivity.Name = "finalizeStateActivity";
     //
     // step1_EnterMetaDataFieldName_NoDefaultValues
     //
     this.step1_EnterMetaDataFieldName_NoDefaultValues.Activities.Add(this.step1StateInitializationActivity_Finish);
     this.step1_EnterMetaDataFieldName_NoDefaultValues.Activities.Add(this.step1EventDrivenActivity_Finish_Finsih);
     this.step1_EnterMetaDataFieldName_NoDefaultValues.Activities.Add(this.step1EventDrivenActivity_Finish_Cancel);
     this.step1_EnterMetaDataFieldName_NoDefaultValues.Name = "step1_EnterMetaDataFieldName_NoDefaultValues";
     //
     // step1_EnterMetaDataFieldName
     //
     this.step1_EnterMetaDataFieldName.Activities.Add(this.step1EventDrivenActivity_Next_Next);
     this.step1_EnterMetaDataFieldName.Activities.Add(this.step1EventDrivenActivity_Next_Cancel);
     this.step1_EnterMetaDataFieldName.Activities.Add(this.step1StateInitializationActivity_Next);
     this.step1_EnterMetaDataFieldName.Name = "step1_EnterMetaDataFieldName";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // AddPageTypeMetaDataFieldWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.step1_EnterMetaDataFieldName);
     this.Activities.Add(this.step1_EnterMetaDataFieldName_NoDefaultValues);
     this.Activities.Add(this.finalizeStateActivity);
     this.Activities.Add(this.step2_EnterDefaultValues);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "AddPageTypeMetaDataFieldWorkflow";
     this.CanModifyActivities = false;
 }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.viewCodeActivity_ShowMessage = new System.Workflow.Activities.CodeActivity();
            this.viewDocumentFormActivity = new Composite.C1Console.Workflow.Activities.DocumentFormActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.installAddOnCodeActivity_Execute = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.customEvent01HandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CustomEvent01HandleExternalEventActivity();
            this.ifElseActivity_AddOnDescriptionExists = new System.Workflow.Activities.IfElseActivity();
            this.viewStateCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.installAddOnStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.viewSateEventDrivenActivity_Install = new System.Workflow.Activities.EventDrivenActivity();
            this.viewStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.installAddOnStateActivity = new System.Workflow.Activities.StateActivity();
            this.viewStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // viewCodeActivity_ShowMessage
            // 
            this.viewCodeActivity_ShowMessage.Name = "viewCodeActivity_ShowMessage";
            this.viewCodeActivity_ShowMessage.ExecuteCode += new System.EventHandler(this.viewCodeActivity_ShowMessage_ExecuteCode);
            // 
            // viewDocumentFormActivity
            // 
            this.viewDocumentFormActivity.ContainerLabel = null;
            this.viewDocumentFormActivity.CustomToolbarDefinitionFileName = null;
            this.viewDocumentFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderViewAvailablePackageInformation.xml";
            this.viewDocumentFormActivity.Name = "viewDocumentFormActivity";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.viewCodeActivity_ShowMessage);
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity5);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.viewDocumentFormActivity);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AddOnDescriptionExists);
            this.ifElseBranchActivity1.Condition = codecondition1;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "viewStateActivity";
            // 
            // installAddOnCodeActivity_Execute
            // 
            this.installAddOnCodeActivity_Execute.Name = "installAddOnCodeActivity_Execute";
            this.installAddOnCodeActivity_Execute.ExecuteCode += new System.EventHandler(this.installAddOnCodeActivity_Execute_ExecuteCode);
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "installAddOnStateActivity";
            // 
            // customEvent01HandleExternalEventActivity1
            // 
            this.customEvent01HandleExternalEventActivity1.EventName = "CustomEvent01";
            this.customEvent01HandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.customEvent01HandleExternalEventActivity1.Name = "customEvent01HandleExternalEventActivity1";
            // 
            // ifElseActivity_AddOnDescriptionExists
            // 
            this.ifElseActivity_AddOnDescriptionExists.Activities.Add(this.ifElseBranchActivity1);
            this.ifElseActivity_AddOnDescriptionExists.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity_AddOnDescriptionExists.Name = "ifElseActivity_AddOnDescriptionExists";
            // 
            // viewStateCodeActivity_Initialize
            // 
            this.viewStateCodeActivity_Initialize.Name = "viewStateCodeActivity_Initialize";
            this.viewStateCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.viewStateCodeActivity_Initialize_ExecuteCode);
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "viewStateActivity";
            // 
            // installAddOnStateInitializationActivity
            // 
            this.installAddOnStateInitializationActivity.Activities.Add(this.installAddOnCodeActivity_Execute);
            this.installAddOnStateInitializationActivity.Activities.Add(this.setStateActivity4);
            this.installAddOnStateInitializationActivity.Name = "installAddOnStateInitializationActivity";
            // 
            // viewSateEventDrivenActivity_Install
            // 
            this.viewSateEventDrivenActivity_Install.Activities.Add(this.customEvent01HandleExternalEventActivity1);
            this.viewSateEventDrivenActivity_Install.Activities.Add(this.setStateActivity3);
            this.viewSateEventDrivenActivity_Install.Name = "viewSateEventDrivenActivity_Install";
            // 
            // viewStateInitializationActivity
            // 
            this.viewStateInitializationActivity.Activities.Add(this.viewStateCodeActivity_Initialize);
            this.viewStateInitializationActivity.Activities.Add(this.ifElseActivity_AddOnDescriptionExists);
            this.viewStateInitializationActivity.Name = "viewStateInitializationActivity";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity2);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // installAddOnStateActivity
            // 
            this.installAddOnStateActivity.Activities.Add(this.installAddOnStateInitializationActivity);
            this.installAddOnStateActivity.Name = "installAddOnStateActivity";
            // 
            // viewStateActivity
            // 
            this.viewStateActivity.Activities.Add(this.viewStateInitializationActivity);
            this.viewStateActivity.Activities.Add(this.viewSateEventDrivenActivity_Install);
            this.viewStateActivity.Name = "viewStateActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // ViewAvailablePackageInfoWorkflowWorkflow
            // 
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.viewStateActivity);
            this.Activities.Add(this.installAddOnStateActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "ViewAvailablePackageInfoWorkflowWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 50
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.Activities.CodeCondition    codecondition1    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind3     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.CodeCondition    codecondition2    = new System.Workflow.Activities.CodeCondition();
     System.Workflow.ComponentModel.ActivityBind activitybind4     = 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();
     System.Workflow.ComponentModel.ActivityBind activitybind6     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind8     = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind7     = new System.Workflow.ComponentModel.ActivityBind();
     this.logErrorMessage           = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.cmdErrorHandler           = new System.Workflow.Activities.CodeActivity();
     this.Manage_Wiadomość          = new System.Workflow.Activities.CodeActivity();
     this.Manage_Zadanie            = new System.Workflow.Activities.CodeActivity();
     this.faultHandlerActivity1     = new System.Workflow.ComponentModel.FaultHandlerActivity();
     this.logWiadomosciCompleted    = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.whileWiadomoscExist       = new System.Workflow.Activities.WhileActivity();
     this.Select_ListaWiadomosci    = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity4 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.logZadaniaCompleted       = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.whileZadanieExist         = new System.Workflow.Activities.WhileActivity();
     this.Select_ListaZadan         = new System.Workflow.Activities.CodeActivity();
     this.logToHistoryListActivity3 = new Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity();
     this.faultHandlersActivity1    = new System.Workflow.ComponentModel.FaultHandlersActivity();
     this.sendAdminConfirmation     = new Microsoft.SharePoint.WorkflowActions.SendEmail();
     this.cmdEmptyRecycleBin        = new System.Workflow.Activities.CodeActivity();
     this.ObsługaListyWiadomości    = new System.Workflow.Activities.SequenceActivity();
     this.ObsługaListyZadań         = new System.Workflow.Activities.SequenceActivity();
     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                  = "swfCleanup";
     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)));
     //
     // cmdErrorHandler
     //
     this.cmdErrorHandler.Name         = "cmdErrorHandler";
     this.cmdErrorHandler.ExecuteCode += new System.EventHandler(this.cmdErrorHandler_ExecuteCode);
     //
     // Manage_Wiadomość
     //
     this.Manage_Wiadomość.Name         = "Manage_Wiadomość";
     this.Manage_Wiadomość.ExecuteCode += new System.EventHandler(this.Manage_Wiadomosc_ExecuteCode);
     //
     // Manage_Zadanie
     //
     this.Manage_Zadanie.Name         = "Manage_Zadanie";
     this.Manage_Zadanie.ExecuteCode += new System.EventHandler(this.Manage_Zadanie_ExecuteCode);
     //
     // faultHandlerActivity1
     //
     this.faultHandlerActivity1.Activities.Add(this.cmdErrorHandler);
     this.faultHandlerActivity1.Activities.Add(this.logErrorMessage);
     this.faultHandlerActivity1.FaultType = typeof(System.SystemException);
     this.faultHandlerActivity1.Name      = "faultHandlerActivity1";
     //
     // logWiadomosciCompleted
     //
     this.logWiadomosciCompleted.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logWiadomosciCompleted.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logWiadomosciCompleted.HistoryDescription = "Obsługa listy wiadomości zakończona";
     activitybind2.Name = "swfCleanup";
     activitybind2.Path = "logWiadomosciCompleted_HistoryOutcome";
     this.logWiadomosciCompleted.Name            = "logWiadomosciCompleted";
     this.logWiadomosciCompleted.OtherData       = "";
     this.logWiadomosciCompleted.UserId          = -1;
     this.logWiadomosciCompleted.MethodInvoking += new System.EventHandler(this.cmdUpdateCounters);
     this.logWiadomosciCompleted.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     //
     // whileWiadomoscExist
     //
     this.whileWiadomoscExist.Activities.Add(this.Manage_Wiadomość);
     codecondition1.Condition          += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isWiadomoscExist);
     this.whileWiadomoscExist.Condition = codecondition1;
     this.whileWiadomoscExist.Name      = "whileWiadomoscExist";
     //
     // Select_ListaWiadomosci
     //
     this.Select_ListaWiadomosci.Name         = "Select_ListaWiadomosci";
     this.Select_ListaWiadomosci.ExecuteCode += new System.EventHandler(this.Select_ListaWiadomosci_ExecuteCode);
     //
     // logToHistoryListActivity4
     //
     this.logToHistoryListActivity4.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity4.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity4.HistoryDescription = "Obsługa listy wiadomości";
     this.logToHistoryListActivity4.HistoryOutcome     = "";
     this.logToHistoryListActivity4.Name      = "logToHistoryListActivity4";
     this.logToHistoryListActivity4.OtherData = "";
     this.logToHistoryListActivity4.UserId    = -1;
     //
     // logZadaniaCompleted
     //
     this.logZadaniaCompleted.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logZadaniaCompleted.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logZadaniaCompleted.HistoryDescription = "Obsługa listy zadań zakończona";
     activitybind3.Name                       = "swfCleanup";
     activitybind3.Path                       = "logZadaniaCompleted_HistoryOutcome";
     this.logZadaniaCompleted.Name            = "logZadaniaCompleted";
     this.logZadaniaCompleted.OtherData       = "";
     this.logZadaniaCompleted.UserId          = -1;
     this.logZadaniaCompleted.MethodInvoking += new System.EventHandler(this.cmdUpdateCounters);
     this.logZadaniaCompleted.SetBinding(Microsoft.SharePoint.WorkflowActions.LogToHistoryListActivity.HistoryOutcomeProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // whileZadanieExist
     //
     this.whileZadanieExist.Activities.Add(this.Manage_Zadanie);
     codecondition2.Condition        += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.isZadanieExist);
     this.whileZadanieExist.Condition = codecondition2;
     this.whileZadanieExist.Name      = "whileZadanieExist";
     //
     // Select_ListaZadan
     //
     this.Select_ListaZadan.Name         = "Select_ListaZadan";
     this.Select_ListaZadan.ExecuteCode += new System.EventHandler(this.Select_ListaZadan_ExecuteCode);
     //
     // logToHistoryListActivity3
     //
     this.logToHistoryListActivity3.Duration           = System.TimeSpan.Parse("-10675199.02:48:05.4775808");
     this.logToHistoryListActivity3.EventId            = Microsoft.SharePoint.Workflow.SPWorkflowHistoryEventType.WorkflowComment;
     this.logToHistoryListActivity3.HistoryDescription = "Obsługa listy zadań";
     this.logToHistoryListActivity3.HistoryOutcome     = "";
     this.logToHistoryListActivity3.Name      = "logToHistoryListActivity3";
     this.logToHistoryListActivity3.OtherData = "";
     this.logToHistoryListActivity3.UserId    = -1;
     //
     // faultHandlersActivity1
     //
     this.faultHandlersActivity1.Activities.Add(this.faultHandlerActivity1);
     this.faultHandlersActivity1.Name = "faultHandlersActivity1";
     //
     // sendAdminConfirmation
     //
     this.sendAdminConfirmation.BCC              = null;
     activitybind4.Name                          = "swfCleanup";
     activitybind4.Path                          = "msgBody";
     this.sendAdminConfirmation.CC               = null;
     correlationtoken1.Name                      = "workflowToken";
     correlationtoken1.OwnerActivityName         = "swfCleanup";
     this.sendAdminConfirmation.CorrelationToken = correlationtoken1;
     this.sendAdminConfirmation.From             = null;
     this.sendAdminConfirmation.Headers          = null;
     this.sendAdminConfirmation.IncludeStatus    = false;
     this.sendAdminConfirmation.Name             = "sendAdminConfirmation";
     activitybind5.Name                          = "swfCleanup";
     activitybind5.Path                          = "msgSubject";
     activitybind6.Name                          = "swfCleanup";
     activitybind6.Path                          = "msgAdminEmail";
     this.sendAdminConfirmation.MethodInvoking  += new System.EventHandler(this.sendAdminConfirmation_MethodInvoking);
     this.sendAdminConfirmation.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.SubjectProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
     this.sendAdminConfirmation.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.BodyProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
     this.sendAdminConfirmation.SetBinding(Microsoft.SharePoint.WorkflowActions.SendEmail.ToProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
     //
     // cmdEmptyRecycleBin
     //
     this.cmdEmptyRecycleBin.Name         = "cmdEmptyRecycleBin";
     this.cmdEmptyRecycleBin.ExecuteCode += new System.EventHandler(this.cmdEmptyRecycleBin_ExecuteCode);
     //
     // ObsługaListyWiadomości
     //
     this.ObsługaListyWiadomości.Activities.Add(this.logToHistoryListActivity4);
     this.ObsługaListyWiadomości.Activities.Add(this.Select_ListaWiadomosci);
     this.ObsługaListyWiadomości.Activities.Add(this.whileWiadomoscExist);
     this.ObsługaListyWiadomości.Activities.Add(this.logWiadomosciCompleted);
     this.ObsługaListyWiadomości.Name = "ObsługaListyWiadomości";
     //
     // ObsługaListyZadań
     //
     this.ObsługaListyZadań.Activities.Add(this.logToHistoryListActivity3);
     this.ObsługaListyZadań.Activities.Add(this.Select_ListaZadan);
     this.ObsługaListyZadań.Activities.Add(this.whileZadanieExist);
     this.ObsługaListyZadań.Activities.Add(this.logZadaniaCompleted);
     this.ObsługaListyZadań.Name = "ObsługaListyZadań";
     activitybind8.Name          = "swfCleanup";
     activitybind8.Path          = "workflowId";
     //
     // onWorkflowActivated1
     //
     this.onWorkflowActivated1.CorrelationToken = correlationtoken1;
     this.onWorkflowActivated1.EventName        = "OnWorkflowActivated";
     this.onWorkflowActivated1.Name             = "onWorkflowActivated1";
     activitybind7.Name = "swfCleanup";
     activitybind7.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)(activitybind8)));
     this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
     //
     // swfCleanup
     //
     this.Activities.Add(this.onWorkflowActivated1);
     this.Activities.Add(this.ObsługaListyZadań);
     this.Activities.Add(this.ObsługaListyWiadomości);
     this.Activities.Add(this.cmdEmptyRecycleBin);
     this.Activities.Add(this.sendAdminConfirmation);
     this.Activities.Add(this.faultHandlersActivity1);
     this.Name = "swfCleanup";
     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();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            this.Query = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.FindResources();
            this.PrepareAccountActor = new System.Workflow.Activities.CodeActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.PrepareResolveActor = new System.Workflow.Activities.CodeActivity();
            this.AccountActor = new System.Workflow.Activities.IfElseBranchActivity();
            this.ResolveActor = new System.Workflow.Activities.IfElseBranchActivity();
            this.Decide = new System.Workflow.Activities.CodeActivity();
            this.IfActorIsAccountActor = new System.Workflow.Activities.IfElseActivity();
            this.IfActorIsExpression = new System.Workflow.Activities.IfElseActivity();
            this.ActorIsNotSet = new System.Workflow.Activities.IfElseBranchActivity();
            this.IfActorIsNotSet = new System.Workflow.Activities.IfElseActivity();
            // 
            // Query
            // 
            this.Query.Attributes = null;
            this.Query.ExcludeWorkflowTarget = false;
            this.Query.FoundIds = null;
            this.Query.FoundResources = null;
            this.Query.Name = "Query";
            this.Query.QueryResults = null;
            this.Query.Value = null;
            this.Query.XPathFilter = null;
            // 
            // PrepareAccountActor
            // 
            this.PrepareAccountActor.Name = "PrepareAccountActor";
            this.PrepareAccountActor.ExecuteCode += new System.EventHandler(this.PrepareAccountActor_ExecuteCode);
            // 
            // Resolve
            // 
            this.Resolve.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind1.Name = "DetermineActor";
            activitybind1.Path = "ActivityExpressionEvaluator.LookupCache";
            this.Resolve.Name = "Resolve";
            activitybind2.Name = "DetermineActor";
            activitybind2.Path = "QueryResults";
            activitybind3.Name = "DetermineActor";
            activitybind3.Path = "Value";
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // PrepareResolveActor
            // 
            this.PrepareResolveActor.Name = "PrepareResolveActor";
            this.PrepareResolveActor.ExecuteCode += new System.EventHandler(this.PrepareResolveActor_ExecuteCode);
            // 
            // AccountActor
            // 
            this.AccountActor.Activities.Add(this.PrepareAccountActor);
            this.AccountActor.Activities.Add(this.Query);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AccountActor_Condition);
            this.AccountActor.Condition = codecondition1;
            this.AccountActor.Name = "AccountActor";
            // 
            // ResolveActor
            // 
            this.ResolveActor.Activities.Add(this.PrepareResolveActor);
            this.ResolveActor.Activities.Add(this.Resolve);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ResolveActor_Condition);
            this.ResolveActor.Condition = codecondition2;
            this.ResolveActor.Name = "ResolveActor";
            // 
            // Decide
            // 
            this.Decide.Name = "Decide";
            this.Decide.ExecuteCode += new System.EventHandler(this.Decide_ExecuteCode);
            // 
            // IfActorIsAccountActor
            // 
            this.IfActorIsAccountActor.Activities.Add(this.AccountActor);
            this.IfActorIsAccountActor.Name = "IfActorIsAccountActor";
            // 
            // IfActorIsExpression
            // 
            this.IfActorIsExpression.Activities.Add(this.ResolveActor);
            this.IfActorIsExpression.Name = "IfActorIsExpression";
            // 
            // ActorIsNotSet
            // 
            this.ActorIsNotSet.Activities.Add(this.IfActorIsExpression);
            this.ActorIsNotSet.Activities.Add(this.IfActorIsAccountActor);
            this.ActorIsNotSet.Activities.Add(this.Decide);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ActorIsNotSet_Condition);
            this.ActorIsNotSet.Condition = codecondition3;
            this.ActorIsNotSet.Name = "ActorIsNotSet";
            // 
            // IfActorIsNotSet
            // 
            this.IfActorIsNotSet.Activities.Add(this.ActorIsNotSet);
            this.IfActorIsNotSet.Name = "IfActorIsNotSet";
            // 
            // DetermineActor
            // 
            this.Activities.Add(this.IfActorIsNotSet);
            this.Name = "DetermineActor";
            this.CanModifyActivities = false;

        }
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.setStateActivity3                     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity5                     = new System.Workflow.Activities.SetStateActivity();
     this.ifElseBranchActivity2                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity4                     = new System.Workflow.Activities.SetStateActivity();
     this.step2CodeActivity_Finalize            = new System.Workflow.Activities.CodeActivity();
     this.step2CloseCurrentViewActivity         = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
     this.finishHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.step2WizardFormActivity               = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity6                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step1IfElseActivity_IsUrlValid        = new System.Workflow.Activities.IfElseActivity();
     this.step1CodeActivity_ValidateServerUrl   = new System.Workflow.Activities.CodeActivity();
     this.nextHandleExternalEventActivity1      = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.step1WizardFormActivity               = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.setStateActivity2                     = new System.Workflow.Activities.SetStateActivity();
     this.initializeCodeActivity_Initialize     = new System.Workflow.Activities.CodeActivity();
     this.step2EventDrivenActivity_Finish       = new System.Workflow.Activities.EventDrivenActivity();
     this.step2StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.step2EventDrivenActivity_Cancel       = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Next         = new System.Workflow.Activities.EventDrivenActivity();
     this.step1StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step2StateActivity                    = new System.Workflow.Activities.StateActivity();
     this.step1StateActivity                    = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity                    = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity               = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel      = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "step1StateActivity";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "step2StateActivity";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity3);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity5);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.IsUrlValid);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalStateActivity";
     //
     // step2CodeActivity_Finalize
     //
     this.step2CodeActivity_Finalize.Name         = "step2CodeActivity_Finalize";
     this.step2CodeActivity_Finalize.ExecuteCode += new System.EventHandler(this.step2CodeActivity_Finalize_ExecuteCode);
     //
     // step2CloseCurrentViewActivity
     //
     this.step2CloseCurrentViewActivity.Name = "step2CloseCurrentViewActivity";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // step2WizardFormActivity
     //
     this.step2WizardFormActivity.ContainerLabel         = null;
     this.step2WizardFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderAddPackageSourceStep2.xml";
     this.step2WizardFormActivity.Name = "step2WizardFormActivity";
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // step1IfElseActivity_IsUrlValid
     //
     this.step1IfElseActivity_IsUrlValid.Activities.Add(this.ifElseBranchActivity1);
     this.step1IfElseActivity_IsUrlValid.Activities.Add(this.ifElseBranchActivity2);
     this.step1IfElseActivity_IsUrlValid.Name = "step1IfElseActivity_IsUrlValid";
     //
     // step1CodeActivity_ValidateServerUrl
     //
     this.step1CodeActivity_ValidateServerUrl.Name         = "step1CodeActivity_ValidateServerUrl";
     this.step1CodeActivity_ValidateServerUrl.ExecuteCode += new System.EventHandler(this.step1CodeActivity_ValidateServerUrl_ExecuteCode);
     //
     // nextHandleExternalEventActivity1
     //
     this.nextHandleExternalEventActivity1.EventName     = "Next";
     this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity1.Name          = "nextHandleExternalEventActivity1";
     //
     // step1WizardFormActivity
     //
     this.step1WizardFormActivity.ContainerLabel         = null;
     this.step1WizardFormActivity.FormDefinitionFileName = "\\Administrative\\PackageElementProviderAddPackageSourceStep1.xml";
     this.step1WizardFormActivity.Name = "step1WizardFormActivity";
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "step1StateActivity";
     //
     // initializeCodeActivity_Initialize
     //
     this.initializeCodeActivity_Initialize.Name         = "initializeCodeActivity_Initialize";
     this.initializeCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_Initialize_ExecuteCode);
     //
     // step2EventDrivenActivity_Finish
     //
     this.step2EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.step2EventDrivenActivity_Finish.Activities.Add(this.step2CloseCurrentViewActivity);
     this.step2EventDrivenActivity_Finish.Activities.Add(this.step2CodeActivity_Finalize);
     this.step2EventDrivenActivity_Finish.Activities.Add(this.setStateActivity4);
     this.step2EventDrivenActivity_Finish.Name = "step2EventDrivenActivity_Finish";
     //
     // step2StateInitializationActivity
     //
     this.step2StateInitializationActivity.Activities.Add(this.step2WizardFormActivity);
     this.step2StateInitializationActivity.Name = "step2StateInitializationActivity";
     //
     // step2EventDrivenActivity_Cancel
     //
     this.step2EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step2EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity6);
     this.step2EventDrivenActivity_Cancel.Name = "step2EventDrivenActivity_Cancel";
     //
     // step1EventDrivenActivity_Next
     //
     this.step1EventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Next.Activities.Add(this.step1CodeActivity_ValidateServerUrl);
     this.step1EventDrivenActivity_Next.Activities.Add(this.step1IfElseActivity_IsUrlValid);
     this.step1EventDrivenActivity_Next.Name = "step1EventDrivenActivity_Next";
     //
     // step1StateInitializationActivity
     //
     this.step1StateInitializationActivity.Activities.Add(this.step1WizardFormActivity);
     this.step1StateInitializationActivity.Name = "step1StateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.initializeCodeActivity_Initialize);
     this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity2);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // step2StateActivity
     //
     this.step2StateActivity.Activities.Add(this.step2StateInitializationActivity);
     this.step2StateActivity.Activities.Add(this.step2EventDrivenActivity_Finish);
     this.step2StateActivity.Name = "step2StateActivity";
     //
     // step1StateActivity
     //
     this.step1StateActivity.Activities.Add(this.step1StateInitializationActivity);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Next);
     this.step1StateActivity.Activities.Add(this.step2EventDrivenActivity_Cancel);
     this.step1StateActivity.Name = "step1StateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // AddPackageSourceWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.step1StateActivity);
     this.Activities.Add(this.step2StateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "AddPackageSourceWorkflow";
     this.CanModifyActivities = false;
 }
		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();
            this.withdrawalActivity = new System.Workflow.Activities.CodeActivity();
            this.depositActivity = new System.Workflow.Activities.CodeActivity();
            this.withdrawalIfElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.depositIfElseBranchActivity = new System.Workflow.Activities.IfElseBranchActivity();
            this.depositOrWithdrawalIfElseActivity = new System.Workflow.Activities.IfElseActivity();
            this.userInputActivity = new System.Workflow.Activities.CodeActivity();
            this.bankMachineSequenceActivity = new System.Workflow.Activities.SequenceActivity();
            this.serviceChargeActivity = new Microsoft.Samples.Workflow.ServiceChargeActivityLibrary.ServiceCharge();
            this.whileNotExitActivity = new System.Workflow.Activities.WhileActivity();
            // 
            // withdrawalActivity
            // 
            this.withdrawalActivity.Name = "withdrawalActivity";
            this.withdrawalActivity.ExecuteCode += new System.EventHandler(this.WithdrawalExecuteCode);
            // 
            // depositActivity
            // 
            this.depositActivity.Name = "depositActivity";
            this.depositActivity.ExecuteCode += new System.EventHandler(this.DepositExecuteCode);
            // 
            // withdrawalIfElseBranchActivity2
            // 
            this.withdrawalIfElseBranchActivity2.Activities.Add(this.withdrawalActivity);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckWithdrawal);
            this.withdrawalIfElseBranchActivity2.Condition = codecondition1;
            this.withdrawalIfElseBranchActivity2.Name = "withdrawalIfElseBranchActivity2";
            // 
            // depositIfElseBranchActivity
            // 
            this.depositIfElseBranchActivity.Activities.Add(this.depositActivity);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckDeposit);
            this.depositIfElseBranchActivity.Condition = codecondition2;
            this.depositIfElseBranchActivity.Name = "depositIfElseBranchActivity";
            // 
            // depositOrWithdrawalIfElseActivity
            // 
            this.depositOrWithdrawalIfElseActivity.Activities.Add(this.depositIfElseBranchActivity);
            this.depositOrWithdrawalIfElseActivity.Activities.Add(this.withdrawalIfElseBranchActivity2);
            this.depositOrWithdrawalIfElseActivity.Name = "depositOrWithdrawalIfElseActivity";
            // 
            // userInputActivity
            // 
            this.userInputActivity.Name = "userInputActivity";
            this.userInputActivity.ExecuteCode += new System.EventHandler(this.UserInputExecuteCode);
            // 
            // bankMachineSequenceActivity
            // 
            this.bankMachineSequenceActivity.Activities.Add(this.userInputActivity);
            this.bankMachineSequenceActivity.Activities.Add(this.depositOrWithdrawalIfElseActivity);
            this.bankMachineSequenceActivity.Name = "bankMachineSequenceActivity";
            // 
            // serviceChargeActivity
            // 
            this.serviceChargeActivity.Fee = 2.41;
            this.serviceChargeActivity.Name = "serviceChargeActivity";
            // 
            // whileNotExitActivity
            // 
            this.whileNotExitActivity.Activities.Add(this.bankMachineSequenceActivity);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckOption);
            this.whileNotExitActivity.Condition = codecondition3;
            this.whileNotExitActivity.Name = "whileNotExitActivity";
            // 
            // BankMachineWorkflow
            // 
            this.Activities.Add(this.whileNotExitActivity);
            this.Activities.Add(this.serviceChargeActivity);
            this.Name = "BankMachineWorkflow";
            this.CanModifyActivities = false;

		}
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.setStateActivity6                     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity3                     = new System.Workflow.Activities.SetStateActivity();
     this.ifElseBranchActivity2                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity4                     = new System.Workflow.Activities.SetStateActivity();
     this.finalizeCodeActivity_SavePageType     = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity2                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.step1IfElseActivity_ValidateBindings  = new System.Workflow.Activities.IfElseActivity();
     this.finishHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.step1WizardFormActivity               = new Composite.C1Console.Workflow.Activities.DataDialogFormActivity();
     this.setStateActivity5                     = new System.Workflow.Activities.SetStateActivity();
     this.initializeCodeActivity_UpdateBindings = new System.Workflow.Activities.CodeActivity();
     this.finalizeStateInitializationActivity   = new System.Workflow.Activities.StateInitializationActivity();
     this.step1EventDrivenActivity_Cancel       = new System.Workflow.Activities.EventDrivenActivity();
     this.step1EventDrivenActivity_Finish       = new System.Workflow.Activities.EventDrivenActivity();
     this.step1StateInitializationActivity      = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.finalizeStateActivity                 = new System.Workflow.Activities.StateActivity();
     this.step1StateActivity                    = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity                    = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity               = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel      = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity6
     //
     this.setStateActivity6.Name            = "setStateActivity6";
     this.setStateActivity6.TargetStateName = "step1StateActivity";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "finalizeStateActivity";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity6);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity3);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.ValidateBindings);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "finalStateActivity";
     //
     // finalizeCodeActivity_SavePageType
     //
     this.finalizeCodeActivity_SavePageType.Name         = "finalizeCodeActivity_SavePageType";
     this.finalizeCodeActivity_SavePageType.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_SavePageType_ExecuteCode);
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // step1IfElseActivity_ValidateBindings
     //
     this.step1IfElseActivity_ValidateBindings.Activities.Add(this.ifElseBranchActivity1);
     this.step1IfElseActivity_ValidateBindings.Activities.Add(this.ifElseBranchActivity2);
     this.step1IfElseActivity_ValidateBindings.Name = "step1IfElseActivity_ValidateBindings";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // step1WizardFormActivity
     //
     this.step1WizardFormActivity.ContainerLabel         = null;
     this.step1WizardFormActivity.FormDefinitionFileName = "\\Administrative\\PageTypeAddPageType.xml";
     this.step1WizardFormActivity.Name = "step1WizardFormActivity";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "step1StateActivity";
     //
     // initializeCodeActivity_UpdateBindings
     //
     this.initializeCodeActivity_UpdateBindings.Name         = "initializeCodeActivity_UpdateBindings";
     this.initializeCodeActivity_UpdateBindings.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_UpdateBindings_ExecuteCode);
     //
     // finalizeStateInitializationActivity
     //
     this.finalizeStateInitializationActivity.Activities.Add(this.finalizeCodeActivity_SavePageType);
     this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity4);
     this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
     //
     // step1EventDrivenActivity_Cancel
     //
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
     this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
     //
     // step1EventDrivenActivity_Finish
     //
     this.step1EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.step1EventDrivenActivity_Finish.Activities.Add(this.step1IfElseActivity_ValidateBindings);
     this.step1EventDrivenActivity_Finish.Name = "step1EventDrivenActivity_Finish";
     //
     // step1StateInitializationActivity
     //
     this.step1StateInitializationActivity.Activities.Add(this.step1WizardFormActivity);
     this.step1StateInitializationActivity.Name = "step1StateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.initializeCodeActivity_UpdateBindings);
     this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity5);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // finalizeStateActivity
     //
     this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
     this.finalizeStateActivity.Name = "finalizeStateActivity";
     //
     // step1StateActivity
     //
     this.step1StateActivity.Activities.Add(this.step1StateInitializationActivity);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Finish);
     this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
     this.step1StateActivity.Name = "step1StateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // AddNewPageTypeWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.step1StateActivity);
     this.Activities.Add(this.finalizeStateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "AddNewPageTypeWorkflow";
     this.CanModifyActivities = false;
 }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.closeCurrentViewActivity1 = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
            this.finalizeCodeActivity = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.finalizeCodeActivity_ShowError = new System.Workflow.Activities.CodeActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.doesFolderExists = new System.Workflow.Activities.IfElseActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.wizzardFormActivity1 = new Composite.C1Console.Workflow.Activities.DataDialogFormActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.initializeAddNewfolderCodeActivity = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.stateInitializationActivity3 = new System.Workflow.Activities.StateInitializationActivity();
            this.step1EventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.step1EventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity2 = new System.Workflow.Activities.StateInitializationActivity();
            this.stateInitializationActivity1 = new System.Workflow.Activities.StateInitializationActivity();
            this.cancelActivity = new System.Workflow.Activities.EventDrivenActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
            this.step1StateActivity = new System.Workflow.Activities.StateActivity();
            this.AddNewWebsiteFolderWorkflowInitialState = new System.Workflow.Activities.StateActivity();
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "finalStateActivity";
            // 
            // closeCurrentViewActivity1
            // 
            this.closeCurrentViewActivity1.Name = "closeCurrentViewActivity1";
            // 
            // finalizeCodeActivity
            // 
            this.finalizeCodeActivity.Name = "finalizeCodeActivity";
            this.finalizeCodeActivity.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_ExecuteCode);
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "step1StateActivity";
            // 
            // finalizeCodeActivity_ShowError
            // 
            this.finalizeCodeActivity_ShowError.Name = "finalizeCodeActivity_ShowError";
            this.finalizeCodeActivity_ShowError.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_ShowError_ExecuteCode);
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.finalizeCodeActivity);
            this.ifElseBranchActivity2.Activities.Add(this.closeCurrentViewActivity1);
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity4);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.finalizeCodeActivity_ShowError);
            this.ifElseBranchActivity1.Activities.Add(this.setStateActivity6);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.FolderExists);
            this.ifElseBranchActivity1.Condition = codecondition1;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // doesFolderExists
            // 
            this.doesFolderExists.Activities.Add(this.ifElseBranchActivity1);
            this.doesFolderExists.Activities.Add(this.ifElseBranchActivity2);
            this.doesFolderExists.Description = "Folder exists?";
            this.doesFolderExists.Name = "doesFolderExists";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity2
            // 
            this.cancelHandleExternalEventActivity2.EventName = "Cancel";
            this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity2.Name = "cancelHandleExternalEventActivity2";
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "finalizeStateActivity";
            // 
            // finishHandleExternalEventActivity1
            // 
            this.finishHandleExternalEventActivity1.EventName = "Finish";
            this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity1.Name = "finishHandleExternalEventActivity1";
            // 
            // wizzardFormActivity1
            // 
            this.wizzardFormActivity1.ContainerLabel = null;
            this.wizzardFormActivity1.FormDefinitionFileName = "/Administrative/WebsiteFileElementProviderAddNewFolder.xml";
            this.wizzardFormActivity1.Name = "wizzardFormActivity1";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "step1StateActivity";
            // 
            // initializeAddNewfolderCodeActivity
            // 
            this.initializeAddNewfolderCodeActivity.Name = "initializeAddNewfolderCodeActivity";
            this.initializeAddNewfolderCodeActivity.ExecuteCode += new System.EventHandler(this.initializeAddNewfolderCodeActivity_ExecuteCode);
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // stateInitializationActivity3
            // 
            this.stateInitializationActivity3.Activities.Add(this.doesFolderExists);
            this.stateInitializationActivity3.Name = "stateInitializationActivity3";
            // 
            // step1EventDrivenActivity_Cancel
            // 
            this.step1EventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
            this.step1EventDrivenActivity_Cancel.Activities.Add(this.setStateActivity5);
            this.step1EventDrivenActivity_Cancel.Name = "step1EventDrivenActivity_Cancel";
            // 
            // step1EventDrivenActivity_Finish
            // 
            this.step1EventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
            this.step1EventDrivenActivity_Finish.Activities.Add(this.setStateActivity3);
            this.step1EventDrivenActivity_Finish.Name = "step1EventDrivenActivity_Finish";
            // 
            // stateInitializationActivity2
            // 
            this.stateInitializationActivity2.Activities.Add(this.wizzardFormActivity1);
            this.stateInitializationActivity2.Name = "stateInitializationActivity2";
            // 
            // stateInitializationActivity1
            // 
            this.stateInitializationActivity1.Activities.Add(this.initializeAddNewfolderCodeActivity);
            this.stateInitializationActivity1.Activities.Add(this.setStateActivity2);
            this.stateInitializationActivity1.Name = "stateInitializationActivity1";
            // 
            // cancelActivity
            // 
            this.cancelActivity.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.cancelActivity.Activities.Add(this.setStateActivity1);
            this.cancelActivity.Name = "cancelActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // finalizeStateActivity
            // 
            this.finalizeStateActivity.Activities.Add(this.stateInitializationActivity3);
            this.finalizeStateActivity.Name = "finalizeStateActivity";
            // 
            // step1StateActivity
            // 
            this.step1StateActivity.Activities.Add(this.stateInitializationActivity2);
            this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Finish);
            this.step1StateActivity.Activities.Add(this.step1EventDrivenActivity_Cancel);
            this.step1StateActivity.Name = "step1StateActivity";
            // 
            // AddNewWebsiteFolderWorkflowInitialState
            // 
            this.AddNewWebsiteFolderWorkflowInitialState.Activities.Add(this.stateInitializationActivity1);
            this.AddNewWebsiteFolderWorkflowInitialState.Name = "AddNewWebsiteFolderWorkflowInitialState";
            // 
            // AddNewWebsiteFolderWorkflow
            // 
            this.Activities.Add(this.AddNewWebsiteFolderWorkflowInitialState);
            this.Activities.Add(this.step1StateActivity);
            this.Activities.Add(this.finalizeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.cancelActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "AddNewWebsiteFolderWorkflowInitialState";
            this.Name = "AddNewWebsiteFolderWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 56
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.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();
            this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity9 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity4 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity21 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity14 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity15 = new System.Workflow.Activities.SetStateActivity();
            this.if_DoesPagesExists = new System.Workflow.Activities.IfElseActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity10 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity9 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity6 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity5 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.setStateActivity18 = new System.Workflow.Activities.SetStateActivity();
            this.previousHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.PreviousHandleExternalEventActivity();
            this.setStateActivity12 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity4 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.setStateActivity13 = new System.Workflow.Activities.SetStateActivity();
            this.finishHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.wizardFormActivity4 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
            this.setStateActivity17 = new System.Workflow.Activities.SetStateActivity();
            this.previousHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.PreviousHandleExternalEventActivity();
            this.setStateActivity11 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity3 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.ifElseActivity3 = new System.Workflow.Activities.IfElseActivity();
            this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
            this.enterDefaultValuesCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity16 = new System.Workflow.Activities.SetStateActivity();
            this.previousHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.PreviousHandleExternalEventActivity();
            this.setStateActivity8 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity5 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.if_DidFieldNameValidate = new System.Workflow.Activities.IfElseActivity();
            this.createFieldGroupCodeActivity_CreateVisabilatiyRule = new System.Workflow.Activities.CodeActivity();
            this.nextHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
            this.wizardFormActivity1 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
            this.createFieldGroupCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity20 = new System.Workflow.Activities.SetStateActivity();
            this.closeCurrentViewActivity2 = new Composite.C1Console.Workflow.Activities.CloseCurrentViewActivity();
            this.codeActivity1 = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.noTypesToAddCodeActivity_ShowMessage = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.nextHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
            this.wizardFormActivity2 = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
            this.selectTypeCodeActivity_Initialize = new System.Workflow.Activities.CodeActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.noTargetDataEventDrivenActivity_Previous = new System.Workflow.Activities.EventDrivenActivity();
            this.noTargetDataEventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.noTargetDataEventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.noTargetDataStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.enterDefaultValuesEventDrivenActivity_Previous = new System.Workflow.Activities.EventDrivenActivity();
            this.enterDefaultValuesEventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.enterDefaultValuesEventDrivenActivity_Finish = new System.Workflow.Activities.EventDrivenActivity();
            this.enterDefaultValuesSateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.createFieldGroupEventDrivenActivity_Previous = new System.Workflow.Activities.EventDrivenActivity();
            this.createFieldGroupEventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.createFieldGroupEventDrivenActivity_Next = new System.Workflow.Activities.EventDrivenActivity();
            this.createFieldGroupStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.finalizeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.noTypesToAddStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.selectTypeEventDrivenActivity_Cancel = new System.Workflow.Activities.EventDrivenActivity();
            this.selectTypeEventDrivenActivity_Next = new System.Workflow.Activities.EventDrivenActivity();
            this.selectTypeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
            this.noTargetDataWarningStateActivity = new System.Workflow.Activities.StateActivity();
            this.enterDefaultValuesStateActivity = new System.Workflow.Activities.StateActivity();
            this.createFieldGroupStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalizeStateActivity = new System.Workflow.Activities.StateActivity();
            this.noTypesToAddStateActivity = new System.Workflow.Activities.StateActivity();
            this.selectTypeToAddStateActivity = new System.Workflow.Activities.StateActivity();
            this.finalStateActivity = new System.Workflow.Activities.StateActivity();
            this.initializeStateActivity = new System.Workflow.Activities.StateActivity();
            this.eventDrivenActivity_GlobalCancel = new System.Workflow.Activities.EventDrivenActivity();
            // 
            // setStateActivity10
            // 
            this.setStateActivity10.Name = "setStateActivity10";
            this.setStateActivity10.TargetStateName = "noTargetDataWarningStateActivity";
            // 
            // setStateActivity9
            // 
            this.setStateActivity9.Name = "setStateActivity9";
            this.setStateActivity9.TargetStateName = "enterDefaultValuesStateActivity";
            // 
            // ifElseBranchActivity4
            // 
            this.ifElseBranchActivity4.Activities.Add(this.setStateActivity10);
            this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
            // 
            // ifElseBranchActivity3
            // 
            this.ifElseBranchActivity3.Activities.Add(this.setStateActivity9);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DoesTargetDataExists);
            this.ifElseBranchActivity3.Condition = codecondition1;
            this.ifElseBranchActivity3.Name = "ifElseBranchActivity3";
            // 
            // setStateActivity21
            // 
            this.setStateActivity21.Name = "setStateActivity21";
            this.setStateActivity21.TargetStateName = "enterDefaultValuesStateActivity";
            // 
            // setStateActivity14
            // 
            this.setStateActivity14.Name = "setStateActivity14";
            this.setStateActivity14.TargetStateName = "finalizeStateActivity";
            // 
            // setStateActivity15
            // 
            this.setStateActivity15.Name = "setStateActivity15";
            this.setStateActivity15.TargetStateName = "createFieldGroupStateActivity";
            // 
            // if_DoesPagesExists
            // 
            this.if_DoesPagesExists.Activities.Add(this.ifElseBranchActivity3);
            this.if_DoesPagesExists.Activities.Add(this.ifElseBranchActivity4);
            this.if_DoesPagesExists.Name = "if_DoesPagesExists";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "noTypesToAddStateActivity";
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "selectTypeToAddStateActivity";
            // 
            // ifElseBranchActivity10
            // 
            this.ifElseBranchActivity10.Activities.Add(this.setStateActivity21);
            this.ifElseBranchActivity10.Name = "ifElseBranchActivity10";
            // 
            // ifElseBranchActivity9
            // 
            this.ifElseBranchActivity9.Activities.Add(this.setStateActivity14);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.MetaDataValid);
            this.ifElseBranchActivity9.Condition = codecondition2;
            this.ifElseBranchActivity9.Name = "ifElseBranchActivity9";
            // 
            // ifElseBranchActivity6
            // 
            this.ifElseBranchActivity6.Activities.Add(this.setStateActivity15);
            this.ifElseBranchActivity6.Name = "ifElseBranchActivity6";
            // 
            // ifElseBranchActivity5
            // 
            this.ifElseBranchActivity5.Activities.Add(this.if_DoesPagesExists);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DidFieldNameValidate);
            this.ifElseBranchActivity5.Condition = codecondition3;
            this.ifElseBranchActivity5.Name = "ifElseBranchActivity5";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity5);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.setStateActivity3);
            codecondition4.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DoesTypesToAddExists);
            this.ifElseBranchActivity1.Condition = codecondition4;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // setStateActivity18
            // 
            this.setStateActivity18.Name = "setStateActivity18";
            this.setStateActivity18.TargetStateName = "createFieldGroupStateActivity";
            // 
            // previousHandleExternalEventActivity3
            // 
            this.previousHandleExternalEventActivity3.EventName = "Previous";
            this.previousHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.previousHandleExternalEventActivity3.Name = "previousHandleExternalEventActivity3";
            // 
            // setStateActivity12
            // 
            this.setStateActivity12.Name = "setStateActivity12";
            this.setStateActivity12.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity4
            // 
            this.cancelHandleExternalEventActivity4.EventName = "Cancel";
            this.cancelHandleExternalEventActivity4.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity4.Name = "cancelHandleExternalEventActivity4";
            // 
            // setStateActivity13
            // 
            this.setStateActivity13.Name = "setStateActivity13";
            this.setStateActivity13.TargetStateName = "finalizeStateActivity";
            // 
            // finishHandleExternalEventActivity2
            // 
            this.finishHandleExternalEventActivity2.EventName = "Finish";
            this.finishHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity2.Name = "finishHandleExternalEventActivity2";
            // 
            // wizardFormActivity4
            // 
            this.wizardFormActivity4.ContainerLabel = null;
            this.wizardFormActivity4.FormDefinitionFileName = "\\Administrative\\AddMetaDataNoTargetDataWarning.xml";
            this.wizardFormActivity4.Name = "wizardFormActivity4";
            // 
            // setStateActivity17
            // 
            this.setStateActivity17.Name = "setStateActivity17";
            this.setStateActivity17.TargetStateName = "createFieldGroupStateActivity";
            // 
            // previousHandleExternalEventActivity2
            // 
            this.previousHandleExternalEventActivity2.EventName = "Previous";
            this.previousHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.previousHandleExternalEventActivity2.Name = "previousHandleExternalEventActivity2";
            // 
            // setStateActivity11
            // 
            this.setStateActivity11.Name = "setStateActivity11";
            this.setStateActivity11.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity3
            // 
            this.cancelHandleExternalEventActivity3.EventName = "Cancel";
            this.cancelHandleExternalEventActivity3.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity3.Name = "cancelHandleExternalEventActivity3";
            // 
            // ifElseActivity3
            // 
            this.ifElseActivity3.Activities.Add(this.ifElseBranchActivity9);
            this.ifElseActivity3.Activities.Add(this.ifElseBranchActivity10);
            this.ifElseActivity3.Name = "ifElseActivity3";
            // 
            // finishHandleExternalEventActivity1
            // 
            this.finishHandleExternalEventActivity1.EventName = "Finish";
            this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.finishHandleExternalEventActivity1.Name = "finishHandleExternalEventActivity1";
            // 
            // enterDefaultValuesCodeActivity_Initialize
            // 
            this.enterDefaultValuesCodeActivity_Initialize.Name = "enterDefaultValuesCodeActivity_Initialize";
            this.enterDefaultValuesCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.enterDefaultValuesCodeActivity_Initialize_ExecuteCode);
            // 
            // setStateActivity16
            // 
            this.setStateActivity16.Name = "setStateActivity16";
            this.setStateActivity16.TargetStateName = "selectTypeToAddStateActivity";
            // 
            // previousHandleExternalEventActivity1
            // 
            this.previousHandleExternalEventActivity1.EventName = "Previous";
            this.previousHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.previousHandleExternalEventActivity1.Name = "previousHandleExternalEventActivity1";
            // 
            // setStateActivity8
            // 
            this.setStateActivity8.Name = "setStateActivity8";
            this.setStateActivity8.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity5
            // 
            this.cancelHandleExternalEventActivity5.EventName = "Cancel";
            this.cancelHandleExternalEventActivity5.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity5.Name = "cancelHandleExternalEventActivity5";
            // 
            // if_DidFieldNameValidate
            // 
            this.if_DidFieldNameValidate.Activities.Add(this.ifElseBranchActivity5);
            this.if_DidFieldNameValidate.Activities.Add(this.ifElseBranchActivity6);
            this.if_DidFieldNameValidate.Name = "if_DidFieldNameValidate";
            // 
            // createFieldGroupCodeActivity_CreateVisabilatiyRule
            // 
            this.createFieldGroupCodeActivity_CreateVisabilatiyRule.Name = "createFieldGroupCodeActivity_CreateVisabilatiyRule";
            this.createFieldGroupCodeActivity_CreateVisabilatiyRule.ExecuteCode += new System.EventHandler(this.createFieldGroupCodeActivity_CreateVisabilatiyRule_ExecuteCode);
            // 
            // nextHandleExternalEventActivity2
            // 
            this.nextHandleExternalEventActivity2.EventName = "Next";
            this.nextHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.nextHandleExternalEventActivity2.Name = "nextHandleExternalEventActivity2";
            // 
            // wizardFormActivity1
            // 
            this.wizardFormActivity1.ContainerLabel = null;
            this.wizardFormActivity1.FormDefinitionFileName = "\\Administrative\\AddMetaDataCreateFieldGroup.xml";
            this.wizardFormActivity1.Name = "wizardFormActivity1";
            // 
            // createFieldGroupCodeActivity_Initialize
            // 
            this.createFieldGroupCodeActivity_Initialize.Name = "createFieldGroupCodeActivity_Initialize";
            this.createFieldGroupCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.createFieldGroupCodeActivity_Initialize_ExecuteCode);
            // 
            // setStateActivity20
            // 
            this.setStateActivity20.Name = "setStateActivity20";
            this.setStateActivity20.TargetStateName = "finalStateActivity";
            // 
            // closeCurrentViewActivity2
            // 
            this.closeCurrentViewActivity2.Name = "closeCurrentViewActivity2";
            // 
            // codeActivity1
            // 
            this.codeActivity1.Name = "codeActivity1";
            this.codeActivity1.ExecuteCode += new System.EventHandler(this.finalizeCodeActivity_Finalize_ExecuteCode);
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "finalStateActivity";
            // 
            // noTypesToAddCodeActivity_ShowMessage
            // 
            this.noTypesToAddCodeActivity_ShowMessage.Name = "noTypesToAddCodeActivity_ShowMessage";
            this.noTypesToAddCodeActivity_ShowMessage.ExecuteCode += new System.EventHandler(this.noTypesToAddCodeActivity_ShowMessage_ExecuteCode);
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity2
            // 
            this.cancelHandleExternalEventActivity2.EventName = "Cancel";
            this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity2.Name = "cancelHandleExternalEventActivity2";
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "createFieldGroupStateActivity";
            // 
            // nextHandleExternalEventActivity1
            // 
            this.nextHandleExternalEventActivity1.EventName = "Next";
            this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.nextHandleExternalEventActivity1.Name = "nextHandleExternalEventActivity1";
            // 
            // wizardFormActivity2
            // 
            this.wizardFormActivity2.ContainerLabel = null;
            this.wizardFormActivity2.FormDefinitionFileName = "\\Administrative\\AddMetaDataSelectType.xml";
            this.wizardFormActivity2.Name = "wizardFormActivity2";
            // 
            // selectTypeCodeActivity_Initialize
            // 
            this.selectTypeCodeActivity_Initialize.Name = "selectTypeCodeActivity_Initialize";
            this.selectTypeCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.selectTypeCodeActivity_Initialize_ExecuteCode);
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // noTargetDataEventDrivenActivity_Previous
            // 
            this.noTargetDataEventDrivenActivity_Previous.Activities.Add(this.previousHandleExternalEventActivity3);
            this.noTargetDataEventDrivenActivity_Previous.Activities.Add(this.setStateActivity18);
            this.noTargetDataEventDrivenActivity_Previous.Name = "noTargetDataEventDrivenActivity_Previous";
            // 
            // noTargetDataEventDrivenActivity_Cancel
            // 
            this.noTargetDataEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity4);
            this.noTargetDataEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity12);
            this.noTargetDataEventDrivenActivity_Cancel.Name = "noTargetDataEventDrivenActivity_Cancel";
            // 
            // noTargetDataEventDrivenActivity_Finish
            // 
            this.noTargetDataEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity2);
            this.noTargetDataEventDrivenActivity_Finish.Activities.Add(this.setStateActivity13);
            this.noTargetDataEventDrivenActivity_Finish.Name = "noTargetDataEventDrivenActivity_Finish";
            // 
            // noTargetDataStateInitializationActivity
            // 
            this.noTargetDataStateInitializationActivity.Activities.Add(this.wizardFormActivity4);
            this.noTargetDataStateInitializationActivity.Name = "noTargetDataStateInitializationActivity";
            // 
            // enterDefaultValuesEventDrivenActivity_Previous
            // 
            this.enterDefaultValuesEventDrivenActivity_Previous.Activities.Add(this.previousHandleExternalEventActivity2);
            this.enterDefaultValuesEventDrivenActivity_Previous.Activities.Add(this.setStateActivity17);
            this.enterDefaultValuesEventDrivenActivity_Previous.Name = "enterDefaultValuesEventDrivenActivity_Previous";
            // 
            // enterDefaultValuesEventDrivenActivity_Cancel
            // 
            this.enterDefaultValuesEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity3);
            this.enterDefaultValuesEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity11);
            this.enterDefaultValuesEventDrivenActivity_Cancel.Name = "enterDefaultValuesEventDrivenActivity_Cancel";
            // 
            // enterDefaultValuesEventDrivenActivity_Finish
            // 
            this.enterDefaultValuesEventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
            this.enterDefaultValuesEventDrivenActivity_Finish.Activities.Add(this.ifElseActivity3);
            this.enterDefaultValuesEventDrivenActivity_Finish.Name = "enterDefaultValuesEventDrivenActivity_Finish";
            // 
            // enterDefaultValuesSateInitializationActivity
            // 
            this.enterDefaultValuesSateInitializationActivity.Activities.Add(this.enterDefaultValuesCodeActivity_Initialize);
            this.enterDefaultValuesSateInitializationActivity.Name = "enterDefaultValuesSateInitializationActivity";
            // 
            // createFieldGroupEventDrivenActivity_Previous
            // 
            this.createFieldGroupEventDrivenActivity_Previous.Activities.Add(this.previousHandleExternalEventActivity1);
            this.createFieldGroupEventDrivenActivity_Previous.Activities.Add(this.setStateActivity16);
            this.createFieldGroupEventDrivenActivity_Previous.Name = "createFieldGroupEventDrivenActivity_Previous";
            // 
            // createFieldGroupEventDrivenActivity_Cancel
            // 
            this.createFieldGroupEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity5);
            this.createFieldGroupEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity8);
            this.createFieldGroupEventDrivenActivity_Cancel.Name = "createFieldGroupEventDrivenActivity_Cancel";
            // 
            // createFieldGroupEventDrivenActivity_Next
            // 
            this.createFieldGroupEventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity2);
            this.createFieldGroupEventDrivenActivity_Next.Activities.Add(this.createFieldGroupCodeActivity_CreateVisabilatiyRule);
            this.createFieldGroupEventDrivenActivity_Next.Activities.Add(this.if_DidFieldNameValidate);
            this.createFieldGroupEventDrivenActivity_Next.Name = "createFieldGroupEventDrivenActivity_Next";
            // 
            // createFieldGroupStateInitializationActivity
            // 
            this.createFieldGroupStateInitializationActivity.Activities.Add(this.createFieldGroupCodeActivity_Initialize);
            this.createFieldGroupStateInitializationActivity.Activities.Add(this.wizardFormActivity1);
            this.createFieldGroupStateInitializationActivity.Name = "createFieldGroupStateInitializationActivity";
            // 
            // finalizeStateInitializationActivity
            // 
            this.finalizeStateInitializationActivity.Activities.Add(this.codeActivity1);
            this.finalizeStateInitializationActivity.Activities.Add(this.closeCurrentViewActivity2);
            this.finalizeStateInitializationActivity.Activities.Add(this.setStateActivity20);
            this.finalizeStateInitializationActivity.Name = "finalizeStateInitializationActivity";
            // 
            // noTypesToAddStateInitializationActivity
            // 
            this.noTypesToAddStateInitializationActivity.Activities.Add(this.noTypesToAddCodeActivity_ShowMessage);
            this.noTypesToAddStateInitializationActivity.Activities.Add(this.setStateActivity4);
            this.noTypesToAddStateInitializationActivity.Name = "noTypesToAddStateInitializationActivity";
            // 
            // selectTypeEventDrivenActivity_Cancel
            // 
            this.selectTypeEventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
            this.selectTypeEventDrivenActivity_Cancel.Activities.Add(this.setStateActivity2);
            this.selectTypeEventDrivenActivity_Cancel.Name = "selectTypeEventDrivenActivity_Cancel";
            // 
            // selectTypeEventDrivenActivity_Next
            // 
            this.selectTypeEventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity1);
            this.selectTypeEventDrivenActivity_Next.Activities.Add(this.setStateActivity6);
            this.selectTypeEventDrivenActivity_Next.Name = "selectTypeEventDrivenActivity_Next";
            // 
            // selectTypeStateInitializationActivity
            // 
            this.selectTypeStateInitializationActivity.Activities.Add(this.selectTypeCodeActivity_Initialize);
            this.selectTypeStateInitializationActivity.Activities.Add(this.wizardFormActivity2);
            this.selectTypeStateInitializationActivity.Name = "selectTypeStateInitializationActivity";
            // 
            // initializeStateInitializationActivity
            // 
            this.initializeStateInitializationActivity.Activities.Add(this.ifElseActivity1);
            this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "finalStateActivity";
            // 
            // cancelHandleExternalEventActivity1
            // 
            this.cancelHandleExternalEventActivity1.EventName = "Cancel";
            this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
            this.cancelHandleExternalEventActivity1.Name = "cancelHandleExternalEventActivity1";
            // 
            // noTargetDataWarningStateActivity
            // 
            this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataStateInitializationActivity);
            this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataEventDrivenActivity_Finish);
            this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataEventDrivenActivity_Cancel);
            this.noTargetDataWarningStateActivity.Activities.Add(this.noTargetDataEventDrivenActivity_Previous);
            this.noTargetDataWarningStateActivity.Name = "noTargetDataWarningStateActivity";
            // 
            // enterDefaultValuesStateActivity
            // 
            this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesSateInitializationActivity);
            this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesEventDrivenActivity_Finish);
            this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesEventDrivenActivity_Cancel);
            this.enterDefaultValuesStateActivity.Activities.Add(this.enterDefaultValuesEventDrivenActivity_Previous);
            this.enterDefaultValuesStateActivity.Name = "enterDefaultValuesStateActivity";
            // 
            // createFieldGroupStateActivity
            // 
            this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupStateInitializationActivity);
            this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupEventDrivenActivity_Next);
            this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupEventDrivenActivity_Cancel);
            this.createFieldGroupStateActivity.Activities.Add(this.createFieldGroupEventDrivenActivity_Previous);
            this.createFieldGroupStateActivity.Name = "createFieldGroupStateActivity";
            // 
            // finalizeStateActivity
            // 
            this.finalizeStateActivity.Activities.Add(this.finalizeStateInitializationActivity);
            this.finalizeStateActivity.Name = "finalizeStateActivity";
            // 
            // noTypesToAddStateActivity
            // 
            this.noTypesToAddStateActivity.Activities.Add(this.noTypesToAddStateInitializationActivity);
            this.noTypesToAddStateActivity.Name = "noTypesToAddStateActivity";
            // 
            // selectTypeToAddStateActivity
            // 
            this.selectTypeToAddStateActivity.Activities.Add(this.selectTypeStateInitializationActivity);
            this.selectTypeToAddStateActivity.Activities.Add(this.selectTypeEventDrivenActivity_Next);
            this.selectTypeToAddStateActivity.Activities.Add(this.selectTypeEventDrivenActivity_Cancel);
            this.selectTypeToAddStateActivity.Name = "selectTypeToAddStateActivity";
            // 
            // finalStateActivity
            // 
            this.finalStateActivity.Name = "finalStateActivity";
            // 
            // initializeStateActivity
            // 
            this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
            this.initializeStateActivity.Name = "initializeStateActivity";
            // 
            // eventDrivenActivity_GlobalCancel
            // 
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
            this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
            // 
            // AddMetaDataWorkflow
            // 
            this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
            this.Activities.Add(this.initializeStateActivity);
            this.Activities.Add(this.finalStateActivity);
            this.Activities.Add(this.selectTypeToAddStateActivity);
            this.Activities.Add(this.noTypesToAddStateActivity);
            this.Activities.Add(this.finalizeStateActivity);
            this.Activities.Add(this.createFieldGroupStateActivity);
            this.Activities.Add(this.enterDefaultValuesStateActivity);
            this.Activities.Add(this.noTargetDataWarningStateActivity);
            this.CompletedStateName = "finalStateActivity";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initializeStateActivity";
            this.Name = "AddMetaDataWorkflow";
            this.CanModifyActivities = false;

        }
Esempio n. 58
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.wizardFormActivity3   = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.wizardFormActivity2   = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity4     = new System.Workflow.Activities.SetStateActivity();
     this.finishHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.FinishHandleExternalEventActivity();
     this.ifElseActivity1                    = new System.Workflow.Activities.IfElseActivity();
     this.AddConfig_CodeActivity             = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity3                  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity2 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.setStateActivity5                  = new System.Workflow.Activities.SetStateActivity();
     this.nextHandleExternalEventActivity1   = new Composite.C1Console.Workflow.Activities.NextHandleExternalEventActivity();
     this.wizardFormActivity1                = new Composite.C1Console.Workflow.Activities.WizardFormActivity();
     this.Upload_CodeActivity                = new System.Workflow.Activities.CodeActivity();
     this.setStateActivity2                  = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity1                  = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1 = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.eventDrivenActivity_Finish         = new System.Workflow.Activities.EventDrivenActivity();
     this.stateInitializationActivity3       = new System.Workflow.Activities.StateInitializationActivity();
     this.eventDrivenActivity_Cancel         = new System.Workflow.Activities.EventDrivenActivity();
     this.eventDrivenActivity_Next           = new System.Workflow.Activities.EventDrivenActivity();
     this.stateInitializationActivity2       = new System.Workflow.Activities.StateInitializationActivity();
     this.stateInitializationActivity1       = new System.Workflow.Activities.StateInitializationActivity();
     this.GlobalCancelEventDrivenActivity    = new System.Workflow.Activities.EventDrivenActivity();
     this.AddConfigActivity                  = new System.Workflow.Activities.StateActivity();
     this.UploadActivity = new System.Workflow.Activities.StateActivity();
     this.FinishActivity = new System.Workflow.Activities.StateActivity();
     this.InitialState   = new System.Workflow.Activities.StateActivity();
     //
     // wizardFormActivity3
     //
     this.wizardFormActivity3.ContainerLabel         = null;
     this.wizardFormActivity3.FormDefinitionFileName = "\\InstalledPackages\\Composite.Tools.PackageCreator\\UploadConfigError.xml";
     this.wizardFormActivity3.Name = "wizardFormActivity3";
     //
     // wizardFormActivity2
     //
     this.wizardFormActivity2.ContainerLabel         = null;
     this.wizardFormActivity2.FormDefinitionFileName = "\\InstalledPackages\\Composite.Tools.PackageCreator\\UploadConfigSuccessfull.xml";
     this.wizardFormActivity2.Name = "wizardFormActivity2";
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.wizardFormActivity3);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.wizardFormActivity2);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.DidValidate);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "FinishActivity";
     //
     // finishHandleExternalEventActivity1
     //
     this.finishHandleExternalEventActivity1.EventName     = "Finish";
     this.finishHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.finishHandleExternalEventActivity1.Name          = "finishHandleExternalEventActivity1";
     //
     // ifElseActivity1
     //
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
     this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
     this.ifElseActivity1.Name = "ifElseActivity1";
     //
     // AddConfig_CodeActivity
     //
     this.AddConfig_CodeActivity.Name         = "AddConfig_CodeActivity";
     this.AddConfig_CodeActivity.ExecuteCode += new System.EventHandler(this.AddConfig_CodeActivity_ExecuteCode);
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "FinishActivity";
     //
     // cancelHandleExternalEventActivity2
     //
     this.cancelHandleExternalEventActivity2.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity2.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity2.Name          = "cancelHandleExternalEventActivity2";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "AddConfigActivity";
     //
     // nextHandleExternalEventActivity1
     //
     this.nextHandleExternalEventActivity1.EventName     = "Next";
     this.nextHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.nextHandleExternalEventActivity1.Name          = "nextHandleExternalEventActivity1";
     //
     // wizardFormActivity1
     //
     this.wizardFormActivity1.ContainerLabel         = null;
     this.wizardFormActivity1.FormDefinitionFileName = "\\InstalledPackages\\Composite.Tools.PackageCreator\\UploadConfig.xml";
     this.wizardFormActivity1.Name = "wizardFormActivity1";
     //
     // Upload_CodeActivity
     //
     this.Upload_CodeActivity.Name         = "Upload_CodeActivity";
     this.Upload_CodeActivity.ExecuteCode += new System.EventHandler(this.Upload_CodeActivity_ExecuteCode);
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "UploadActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "FinishActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // eventDrivenActivity_Finish
     //
     this.eventDrivenActivity_Finish.Activities.Add(this.finishHandleExternalEventActivity1);
     this.eventDrivenActivity_Finish.Activities.Add(this.setStateActivity4);
     this.eventDrivenActivity_Finish.Name = "eventDrivenActivity_Finish";
     //
     // stateInitializationActivity3
     //
     this.stateInitializationActivity3.Activities.Add(this.AddConfig_CodeActivity);
     this.stateInitializationActivity3.Activities.Add(this.ifElseActivity1);
     this.stateInitializationActivity3.Name = "stateInitializationActivity3";
     //
     // eventDrivenActivity_Cancel
     //
     this.eventDrivenActivity_Cancel.Activities.Add(this.cancelHandleExternalEventActivity2);
     this.eventDrivenActivity_Cancel.Activities.Add(this.setStateActivity3);
     this.eventDrivenActivity_Cancel.Name = "eventDrivenActivity_Cancel";
     //
     // eventDrivenActivity_Next
     //
     this.eventDrivenActivity_Next.Activities.Add(this.nextHandleExternalEventActivity1);
     this.eventDrivenActivity_Next.Activities.Add(this.setStateActivity5);
     this.eventDrivenActivity_Next.Name = "eventDrivenActivity_Next";
     //
     // stateInitializationActivity2
     //
     this.stateInitializationActivity2.Activities.Add(this.Upload_CodeActivity);
     this.stateInitializationActivity2.Activities.Add(this.wizardFormActivity1);
     this.stateInitializationActivity2.Name = "stateInitializationActivity2";
     //
     // stateInitializationActivity1
     //
     this.stateInitializationActivity1.Activities.Add(this.setStateActivity2);
     this.stateInitializationActivity1.Name = "stateInitializationActivity1";
     //
     // GlobalCancelEventDrivenActivity
     //
     this.GlobalCancelEventDrivenActivity.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.GlobalCancelEventDrivenActivity.Activities.Add(this.setStateActivity1);
     this.GlobalCancelEventDrivenActivity.Name = "GlobalCancelEventDrivenActivity";
     //
     // AddConfigActivity
     //
     this.AddConfigActivity.Activities.Add(this.stateInitializationActivity3);
     this.AddConfigActivity.Activities.Add(this.eventDrivenActivity_Finish);
     this.AddConfigActivity.Name = "AddConfigActivity";
     //
     // UploadActivity
     //
     this.UploadActivity.Activities.Add(this.stateInitializationActivity2);
     this.UploadActivity.Activities.Add(this.eventDrivenActivity_Next);
     this.UploadActivity.Activities.Add(this.eventDrivenActivity_Cancel);
     this.UploadActivity.Name = "UploadActivity";
     //
     // FinishActivity
     //
     this.FinishActivity.Name = "FinishActivity";
     //
     // InitialState
     //
     this.InitialState.Activities.Add(this.stateInitializationActivity1);
     this.InitialState.Name = "InitialState";
     //
     // UploadConfigWorkflow
     //
     this.Activities.Add(this.InitialState);
     this.Activities.Add(this.FinishActivity);
     this.Activities.Add(this.UploadActivity);
     this.Activities.Add(this.AddConfigActivity);
     this.Activities.Add(this.GlobalCancelEventDrivenActivity);
     this.CompletedStateName     = "FinishActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "InitialState";
     this.Name = "UploadConfigWorkflow";
     this.CanModifyActivities = false;
 }
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            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.Activities.Rules.RuleConditionReference ruleconditionreference4 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference5 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference6 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            this.setStateActivity38 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity37 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity36 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity35 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity34 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity31 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity3 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity7 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity9 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity14 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity13 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity12 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity11 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity10 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity8 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity1 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity4 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseActivity4 = new System.Workflow.Activities.IfElseActivity();
            this.setStateActivity30 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity22 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity19 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity11 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity29 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity14 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity13 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity28 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity16 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity12 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity26 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity10 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity27 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity4 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.setStateActivity25 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity8 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseActivity2 = new System.Workflow.Activities.IfElseActivity();
            this.transactionScopeActivity28 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity26 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity27 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity25 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.RollbackRequestedInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity19 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity17 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity16 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity14 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity12 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity9 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.AgreementOPExpertSightingInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity6 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.AgreedInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity26 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity24 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity11 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity7 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity7 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity6 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.UPKZHeadSightingInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity25 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity23 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity14 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity12 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity9 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity11 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.UPKZCuratorSightingInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity23 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity21 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity10 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity8 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity5 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity5 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.InitiatorHeadSightingInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity24 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity22 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity4 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity4 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity3 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity3 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.OPHeadSightingInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity22 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity20 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity8 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.denialEventFired1 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.transactionScopeActivity2 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity2 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.OPExpertSightingInitCode = new System.Workflow.Activities.CodeActivity();
            this.transactionScopeActivity1 = new System.Workflow.ComponentModel.TransactionScopeActivity();
            this.handleExternalEventActivity1 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.DraftInitCode = new System.Workflow.Activities.CodeActivity();
            this.handleExternalEventActivity27 = new System.Workflow.Activities.HandleExternalEventActivity();
            this.eventDrivenActivity16 = new System.Workflow.Activities.EventDrivenActivity();
            this.eventDrivenActivity15 = new System.Workflow.Activities.EventDrivenActivity();
            this.RollbackRequestedInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity7 = new System.Workflow.Activities.EventDrivenActivity();
            this.eventDrivenActivity4 = new System.Workflow.Activities.EventDrivenActivity();
            this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity();
            this.AgreementOPExpertSightingInit = new System.Workflow.Activities.StateInitializationActivity();
            this.AgreedInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity14 = new System.Workflow.Activities.EventDrivenActivity();
            this.DenialEvent5 = new System.Workflow.Activities.EventDrivenActivity();
            this.SightingEvent5 = new System.Workflow.Activities.EventDrivenActivity();
            this.UPKZHeadSightingInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity13 = new System.Workflow.Activities.EventDrivenActivity();
            this.DenialEvent4 = new System.Workflow.Activities.EventDrivenActivity();
            this.SightingEvent4 = new System.Workflow.Activities.EventDrivenActivity();
            this.UPKZCuratorSightingInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity11 = new System.Workflow.Activities.EventDrivenActivity();
            this.DenialEvent3 = new System.Workflow.Activities.EventDrivenActivity();
            this.SightingEvent3 = new System.Workflow.Activities.EventDrivenActivity();
            this.InitiatorHeadSightingInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity12 = new System.Workflow.Activities.EventDrivenActivity();
            this.DenialEvent2 = new System.Workflow.Activities.EventDrivenActivity();
            this.SightingEvent2 = new System.Workflow.Activities.EventDrivenActivity();
            this.OPHeadSightingInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity10 = new System.Workflow.Activities.EventDrivenActivity();
            this.DenialEvent1 = new System.Workflow.Activities.EventDrivenActivity();
            this.SightingEvent1 = new System.Workflow.Activities.EventDrivenActivity();
            this.OPExpertSightingInit = new System.Workflow.Activities.StateInitializationActivity();
            this.StartProcessingEvent = new System.Workflow.Activities.EventDrivenActivity();
            this.DraftInit = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity17 = new System.Workflow.Activities.EventDrivenActivity();
            this.RollbackRequested = new System.Workflow.Activities.StateActivity();
            this.AgreementOPExpertSighting = new System.Workflow.Activities.StateActivity();
            this.Archived = new System.Workflow.Activities.StateActivity();
            this.Agreed = new System.Workflow.Activities.StateActivity();
            this.UPKZHeadSighting = new System.Workflow.Activities.StateActivity();
            this.UPKZCuratorSighting = new System.Workflow.Activities.StateActivity();
            this.InitiatorHeadSighting = new System.Workflow.Activities.StateActivity();
            this.OPHeadSighting = new System.Workflow.Activities.StateActivity();
            this.OPExpertSighting = new System.Workflow.Activities.StateActivity();
            this.Draft = new System.Workflow.Activities.StateActivity();
            // 
            // setStateActivity38
            // 
            this.setStateActivity38.Name = "setStateActivity38";
            this.setStateActivity38.TargetStateName = "UPKZHeadSighting";
            // 
            // setStateActivity37
            // 
            this.setStateActivity37.Name = "setStateActivity37";
            this.setStateActivity37.TargetStateName = "UPKZCuratorSighting";
            // 
            // setStateActivity36
            // 
            this.setStateActivity36.Name = "setStateActivity36";
            this.setStateActivity36.TargetStateName = "OPExpertSighting";
            // 
            // setStateActivity35
            // 
            this.setStateActivity35.Name = "setStateActivity35";
            this.setStateActivity35.TargetStateName = "OPHeadSighting";
            // 
            // setStateActivity34
            // 
            this.setStateActivity34.Name = "setStateActivity34";
            this.setStateActivity34.TargetStateName = "InitiatorHeadSighting";
            // 
            // setStateActivity31
            // 
            this.setStateActivity31.Name = "setStateActivity31";
            this.setStateActivity31.TargetStateName = "AgreementOPExpertSighting";
            // 
            // setStateActivity3
            // 
            this.setStateActivity3.Name = "setStateActivity3";
            this.setStateActivity3.TargetStateName = "UPKZCuratorSighting";
            // 
            // setStateActivity7
            // 
            this.setStateActivity7.Name = "setStateActivity7";
            this.setStateActivity7.TargetStateName = "AgreementOPExpertSighting";
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "OPExpertSighting";
            // 
            // setStateActivity9
            // 
            this.setStateActivity9.Name = "setStateActivity9";
            this.setStateActivity9.TargetStateName = "OPHeadSighting";
            // 
            // ifElseBranchActivity14
            // 
            this.ifElseBranchActivity14.Activities.Add(this.setStateActivity38);
            ruleconditionreference1.ConditionName = "ifElseBranchActivity14c";
            this.ifElseBranchActivity14.Condition = ruleconditionreference1;
            this.ifElseBranchActivity14.Name = "ifElseBranchActivity14";
            // 
            // ifElseBranchActivity13
            // 
            this.ifElseBranchActivity13.Activities.Add(this.setStateActivity37);
            ruleconditionreference2.ConditionName = "ifElseBranchActivity13c";
            this.ifElseBranchActivity13.Condition = ruleconditionreference2;
            this.ifElseBranchActivity13.Name = "ifElseBranchActivity13";
            // 
            // ifElseBranchActivity12
            // 
            this.ifElseBranchActivity12.Activities.Add(this.setStateActivity36);
            ruleconditionreference3.ConditionName = "ifElseBranchActivity12c";
            this.ifElseBranchActivity12.Condition = ruleconditionreference3;
            this.ifElseBranchActivity12.Name = "ifElseBranchActivity12";
            // 
            // ifElseBranchActivity11
            // 
            this.ifElseBranchActivity11.Activities.Add(this.setStateActivity35);
            ruleconditionreference4.ConditionName = "ifElseBranchActivity11c";
            this.ifElseBranchActivity11.Condition = ruleconditionreference4;
            this.ifElseBranchActivity11.Name = "ifElseBranchActivity11";
            // 
            // ifElseBranchActivity10
            // 
            this.ifElseBranchActivity10.Activities.Add(this.setStateActivity34);
            ruleconditionreference5.ConditionName = "ifElseBranchActivity10c";
            this.ifElseBranchActivity10.Condition = ruleconditionreference5;
            this.ifElseBranchActivity10.Name = "ifElseBranchActivity10";
            // 
            // ifElseBranchActivity8
            // 
            this.ifElseBranchActivity8.Activities.Add(this.setStateActivity31);
            ruleconditionreference6.ConditionName = "ifElseBranchActivity8c";
            this.ifElseBranchActivity8.Condition = ruleconditionreference6;
            this.ifElseBranchActivity8.Name = "ifElseBranchActivity8";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Activities.Add(this.setStateActivity3);
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // ifElseBranchActivity1
            // 
            this.ifElseBranchActivity1.Activities.Add(this.setStateActivity7);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckSendToAgreementStructDivision_ExecuteCode);
            this.ifElseBranchActivity1.Condition = codecondition1;
            this.ifElseBranchActivity1.Name = "ifElseBranchActivity1";
            // 
            // ifElseBranchActivity4
            // 
            this.ifElseBranchActivity4.Activities.Add(this.setStateActivity1);
            this.ifElseBranchActivity4.Name = "ifElseBranchActivity4";
            // 
            // ifElseBranchActivity3
            // 
            this.ifElseBranchActivity3.Activities.Add(this.setStateActivity9);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckInitiatorIsExecutorStructDivision_ExecuteCode);
            this.ifElseBranchActivity3.Condition = codecondition2;
            this.ifElseBranchActivity3.Name = "ifElseBranchActivity3";
            // 
            // ifElseActivity4
            // 
            this.ifElseActivity4.Activities.Add(this.ifElseBranchActivity8);
            this.ifElseActivity4.Activities.Add(this.ifElseBranchActivity10);
            this.ifElseActivity4.Activities.Add(this.ifElseBranchActivity11);
            this.ifElseActivity4.Activities.Add(this.ifElseBranchActivity12);
            this.ifElseActivity4.Activities.Add(this.ifElseBranchActivity13);
            this.ifElseActivity4.Activities.Add(this.ifElseBranchActivity14);
            this.ifElseActivity4.Name = "ifElseActivity4";
            // 
            // setStateActivity30
            // 
            this.setStateActivity30.Name = "setStateActivity30";
            this.setStateActivity30.TargetStateName = "Draft";
            // 
            // setStateActivity22
            // 
            this.setStateActivity22.Name = "setStateActivity22";
            this.setStateActivity22.TargetStateName = "RollbackRequested";
            // 
            // setStateActivity19
            // 
            this.setStateActivity19.Name = "setStateActivity19";
            this.setStateActivity19.TargetStateName = "Draft";
            // 
            // setStateActivity11
            // 
            this.setStateActivity11.Name = "setStateActivity11";
            this.setStateActivity11.TargetStateName = "UPKZCuratorSighting";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "Archived";
            // 
            // setStateActivity29
            // 
            this.setStateActivity29.Name = "setStateActivity29";
            this.setStateActivity29.TargetStateName = "RollbackRequested";
            // 
            // setStateActivity14
            // 
            this.setStateActivity14.Name = "setStateActivity14";
            this.setStateActivity14.TargetStateName = "Draft";
            // 
            // setStateActivity13
            // 
            this.setStateActivity13.Name = "setStateActivity13";
            this.setStateActivity13.TargetStateName = "Agreed";
            // 
            // setStateActivity28
            // 
            this.setStateActivity28.Name = "setStateActivity28";
            this.setStateActivity28.TargetStateName = "RollbackRequested";
            // 
            // setStateActivity16
            // 
            this.setStateActivity16.Name = "setStateActivity16";
            this.setStateActivity16.TargetStateName = "Draft";
            // 
            // setStateActivity12
            // 
            this.setStateActivity12.Name = "setStateActivity12";
            this.setStateActivity12.TargetStateName = "UPKZHeadSighting";
            // 
            // setStateActivity26
            // 
            this.setStateActivity26.Name = "setStateActivity26";
            this.setStateActivity26.TargetStateName = "RollbackRequested";
            // 
            // setStateActivity10
            // 
            this.setStateActivity10.Name = "setStateActivity10";
            this.setStateActivity10.TargetStateName = "Draft";
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "OPHeadSighting";
            // 
            // setStateActivity27
            // 
            this.setStateActivity27.Name = "setStateActivity27";
            this.setStateActivity27.TargetStateName = "RollbackRequested";
            // 
            // setStateActivity4
            // 
            this.setStateActivity4.Name = "setStateActivity4";
            this.setStateActivity4.TargetStateName = "Draft";
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity1);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // setStateActivity25
            // 
            this.setStateActivity25.Name = "setStateActivity25";
            this.setStateActivity25.TargetStateName = "RollbackRequested";
            // 
            // setStateActivity8
            // 
            this.setStateActivity8.Name = "setStateActivity8";
            this.setStateActivity8.TargetStateName = "Draft";
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "InitiatorHeadSighting";
            // 
            // ifElseActivity2
            // 
            this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity3);
            this.ifElseActivity2.Activities.Add(this.ifElseBranchActivity4);
            this.ifElseActivity2.Name = "ifElseActivity2";
            // 
            // transactionScopeActivity28
            // 
            this.transactionScopeActivity28.Activities.Add(this.ifElseActivity4);
            this.transactionScopeActivity28.Name = "transactionScopeActivity28";
            this.transactionScopeActivity28.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity26
            // 
            this.handleExternalEventActivity26.EventName = "Denial";
            this.handleExternalEventActivity26.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity26.Name = "handleExternalEventActivity26";
            this.handleExternalEventActivity26.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity27
            // 
            this.transactionScopeActivity27.Activities.Add(this.setStateActivity30);
            this.transactionScopeActivity27.Name = "transactionScopeActivity27";
            this.transactionScopeActivity27.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity25
            // 
            this.handleExternalEventActivity25.EventName = "Sighting";
            this.handleExternalEventActivity25.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity25.Name = "handleExternalEventActivity25";
            this.handleExternalEventActivity25.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // RollbackRequestedInitCode
            // 
            this.RollbackRequestedInitCode.Name = "RollbackRequestedInitCode";
            this.RollbackRequestedInitCode.ExecuteCode += new System.EventHandler(this.RollbackRequestedInitCode_ExecuteCode);
            // 
            // transactionScopeActivity19
            // 
            this.transactionScopeActivity19.Activities.Add(this.setStateActivity22);
            this.transactionScopeActivity19.Name = "transactionScopeActivity19";
            this.transactionScopeActivity19.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity17
            // 
            this.handleExternalEventActivity17.EventName = "Rollback";
            this.handleExternalEventActivity17.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity17.Name = "handleExternalEventActivity17";
            this.handleExternalEventActivity17.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.rollbackEventFired1_Invoked);
            // 
            // transactionScopeActivity16
            // 
            this.transactionScopeActivity16.Activities.Add(this.setStateActivity19);
            this.transactionScopeActivity16.Name = "transactionScopeActivity16";
            this.transactionScopeActivity16.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity14
            // 
            this.handleExternalEventActivity14.EventName = "Denial";
            this.handleExternalEventActivity14.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity14.Name = "handleExternalEventActivity14";
            this.handleExternalEventActivity14.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity12
            // 
            this.transactionScopeActivity12.Activities.Add(this.setStateActivity11);
            this.transactionScopeActivity12.Name = "transactionScopeActivity12";
            this.transactionScopeActivity12.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity9
            // 
            this.handleExternalEventActivity9.EventName = "Sighting";
            this.handleExternalEventActivity9.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity9.Name = "handleExternalEventActivity9";
            this.handleExternalEventActivity9.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // AgreementOPExpertSightingInitCode
            // 
            this.AgreementOPExpertSightingInitCode.Name = "AgreementOPExpertSightingInitCode";
            this.AgreementOPExpertSightingInitCode.ExecuteCode += new System.EventHandler(this.AgreementOPExpertSightingInitCode_ExecuteCode);
            // 
            // transactionScopeActivity6
            // 
            this.transactionScopeActivity6.Activities.Add(this.setStateActivity5);
            this.transactionScopeActivity6.Name = "transactionScopeActivity6";
            this.transactionScopeActivity6.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // AgreedInitCode
            // 
            this.AgreedInitCode.Name = "AgreedInitCode";
            this.AgreedInitCode.ExecuteCode += new System.EventHandler(this.AgreedInitCode_ExecuteCode);
            // 
            // transactionScopeActivity26
            // 
            this.transactionScopeActivity26.Activities.Add(this.setStateActivity29);
            this.transactionScopeActivity26.Name = "transactionScopeActivity26";
            this.transactionScopeActivity26.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity24
            // 
            this.handleExternalEventActivity24.EventName = "Rollback";
            this.handleExternalEventActivity24.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity24.Name = "handleExternalEventActivity24";
            this.handleExternalEventActivity24.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.rollbackEventFired1_Invoked);
            // 
            // transactionScopeActivity11
            // 
            this.transactionScopeActivity11.Activities.Add(this.setStateActivity14);
            this.transactionScopeActivity11.Name = "transactionScopeActivity11";
            this.transactionScopeActivity11.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity7
            // 
            this.handleExternalEventActivity7.EventName = "Denial";
            this.handleExternalEventActivity7.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity7.Name = "handleExternalEventActivity7";
            this.handleExternalEventActivity7.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity7
            // 
            this.transactionScopeActivity7.Activities.Add(this.setStateActivity13);
            this.transactionScopeActivity7.Name = "transactionScopeActivity7";
            this.transactionScopeActivity7.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity6
            // 
            this.handleExternalEventActivity6.EventName = "Sighting";
            this.handleExternalEventActivity6.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity6.Name = "handleExternalEventActivity6";
            this.handleExternalEventActivity6.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // UPKZHeadSightingInitCode
            // 
            this.UPKZHeadSightingInitCode.Name = "UPKZHeadSightingInitCode";
            this.UPKZHeadSightingInitCode.ExecuteCode += new System.EventHandler(this.UPKZHeadSightingInitCode_ExecuteCode);
            // 
            // transactionScopeActivity25
            // 
            this.transactionScopeActivity25.Activities.Add(this.setStateActivity28);
            this.transactionScopeActivity25.Name = "transactionScopeActivity25";
            this.transactionScopeActivity25.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity23
            // 
            this.handleExternalEventActivity23.EventName = "Rollback";
            this.handleExternalEventActivity23.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity23.Name = "handleExternalEventActivity23";
            this.handleExternalEventActivity23.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.rollbackEventFired1_Invoked);
            // 
            // transactionScopeActivity14
            // 
            this.transactionScopeActivity14.Activities.Add(this.setStateActivity16);
            this.transactionScopeActivity14.Name = "transactionScopeActivity14";
            this.transactionScopeActivity14.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity12
            // 
            this.handleExternalEventActivity12.EventName = "Denial";
            this.handleExternalEventActivity12.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity12.Name = "handleExternalEventActivity12";
            this.handleExternalEventActivity12.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity9
            // 
            this.transactionScopeActivity9.Activities.Add(this.setStateActivity12);
            this.transactionScopeActivity9.Name = "transactionScopeActivity9";
            this.transactionScopeActivity9.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity11
            // 
            this.handleExternalEventActivity11.EventName = "Sighting";
            this.handleExternalEventActivity11.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity11.Name = "handleExternalEventActivity11";
            this.handleExternalEventActivity11.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // UPKZCuratorSightingInitCode
            // 
            this.UPKZCuratorSightingInitCode.Name = "UPKZCuratorSightingInitCode";
            this.UPKZCuratorSightingInitCode.ExecuteCode += new System.EventHandler(this.UPKZCuratorSightingInitCode_ExecuteCode);
            // 
            // transactionScopeActivity23
            // 
            this.transactionScopeActivity23.Activities.Add(this.setStateActivity26);
            this.transactionScopeActivity23.Name = "transactionScopeActivity23";
            this.transactionScopeActivity23.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity21
            // 
            this.handleExternalEventActivity21.EventName = "Rollback";
            this.handleExternalEventActivity21.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity21.Name = "handleExternalEventActivity21";
            this.handleExternalEventActivity21.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.rollbackEventFired1_Invoked);
            // 
            // transactionScopeActivity10
            // 
            this.transactionScopeActivity10.Activities.Add(this.setStateActivity10);
            this.transactionScopeActivity10.Name = "transactionScopeActivity10";
            this.transactionScopeActivity10.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity8
            // 
            this.handleExternalEventActivity8.EventName = "Denial";
            this.handleExternalEventActivity8.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity8.Name = "handleExternalEventActivity8";
            this.handleExternalEventActivity8.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity5
            // 
            this.transactionScopeActivity5.Activities.Add(this.setStateActivity6);
            this.transactionScopeActivity5.Name = "transactionScopeActivity5";
            this.transactionScopeActivity5.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity5
            // 
            this.handleExternalEventActivity5.EventName = "Sighting";
            this.handleExternalEventActivity5.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity5.Name = "handleExternalEventActivity5";
            this.handleExternalEventActivity5.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // InitiatorHeadSightingInitCode
            // 
            this.InitiatorHeadSightingInitCode.Name = "InitiatorHeadSightingInitCode";
            this.InitiatorHeadSightingInitCode.ExecuteCode += new System.EventHandler(this.InitiatorHeadSightingInitCode_ExecuteCode);
            // 
            // transactionScopeActivity24
            // 
            this.transactionScopeActivity24.Activities.Add(this.setStateActivity27);
            this.transactionScopeActivity24.Name = "transactionScopeActivity24";
            this.transactionScopeActivity24.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity22
            // 
            this.handleExternalEventActivity22.EventName = "Rollback";
            this.handleExternalEventActivity22.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity22.Name = "handleExternalEventActivity22";
            this.handleExternalEventActivity22.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.rollbackEventFired1_Invoked);
            // 
            // transactionScopeActivity4
            // 
            this.transactionScopeActivity4.Activities.Add(this.setStateActivity4);
            this.transactionScopeActivity4.Name = "transactionScopeActivity4";
            this.transactionScopeActivity4.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity4
            // 
            this.handleExternalEventActivity4.EventName = "Denial";
            this.handleExternalEventActivity4.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity4.Name = "handleExternalEventActivity4";
            this.handleExternalEventActivity4.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity3
            // 
            this.transactionScopeActivity3.Activities.Add(this.ifElseActivity1);
            this.transactionScopeActivity3.Name = "transactionScopeActivity3";
            this.transactionScopeActivity3.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity3
            // 
            this.handleExternalEventActivity3.EventName = "Sighting";
            this.handleExternalEventActivity3.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity3.Name = "handleExternalEventActivity3";
            this.handleExternalEventActivity3.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // OPHeadSightingInitCode
            // 
            this.OPHeadSightingInitCode.Name = "OPHeadSightingInitCode";
            this.OPHeadSightingInitCode.ExecuteCode += new System.EventHandler(this.OPHeadSightingInitCode_ExecuteCode);
            // 
            // transactionScopeActivity22
            // 
            this.transactionScopeActivity22.Activities.Add(this.setStateActivity25);
            this.transactionScopeActivity22.Name = "transactionScopeActivity22";
            this.transactionScopeActivity22.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity20
            // 
            this.handleExternalEventActivity20.EventName = "Rollback";
            this.handleExternalEventActivity20.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity20.Name = "handleExternalEventActivity20";
            this.handleExternalEventActivity20.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.rollbackEventFired1_Invoked);
            // 
            // transactionScopeActivity8
            // 
            this.transactionScopeActivity8.Activities.Add(this.setStateActivity8);
            this.transactionScopeActivity8.Name = "transactionScopeActivity8";
            this.transactionScopeActivity8.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // denialEventFired1
            // 
            this.denialEventFired1.EventName = "Denial";
            this.denialEventFired1.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.denialEventFired1.Name = "denialEventFired1";
            this.denialEventFired1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.denialEventFired1_Invoked);
            // 
            // transactionScopeActivity2
            // 
            this.transactionScopeActivity2.Activities.Add(this.setStateActivity2);
            this.transactionScopeActivity2.Name = "transactionScopeActivity2";
            this.transactionScopeActivity2.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity2
            // 
            this.handleExternalEventActivity2.EventName = "Sighting";
            this.handleExternalEventActivity2.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity2.Name = "handleExternalEventActivity2";
            this.handleExternalEventActivity2.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.forvadTransitionEventInvoked);
            // 
            // OPExpertSightingInitCode
            // 
            this.OPExpertSightingInitCode.Name = "OPExpertSightingInitCode";
            this.OPExpertSightingInitCode.ExecuteCode += new System.EventHandler(this.OPExpertSightingInitCode_ExecuteCode);
            // 
            // transactionScopeActivity1
            // 
            this.transactionScopeActivity1.Activities.Add(this.ifElseActivity2);
            this.transactionScopeActivity1.Name = "transactionScopeActivity1";
            this.transactionScopeActivity1.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
            // 
            // handleExternalEventActivity1
            // 
            this.handleExternalEventActivity1.EventName = "StartProcessing";
            this.handleExternalEventActivity1.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowInitService);
            this.handleExternalEventActivity1.Name = "handleExternalEventActivity1";
            this.handleExternalEventActivity1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.StartProcessingEventInvoked);
            // 
            // DraftInitCode
            // 
            this.DraftInitCode.Name = "DraftInitCode";
            this.DraftInitCode.ExecuteCode += new System.EventHandler(this.DraftInitCode_ExecuteCode);
            // 
            // handleExternalEventActivity27
            // 
            this.handleExternalEventActivity27.EventName = "SetInternalParameters";
            this.handleExternalEventActivity27.InterfaceType = typeof(Budget2.Server.Workflow.Interface.Services.IWorkflowSupportService);
            this.handleExternalEventActivity27.Name = "handleExternalEventActivity27";
            this.handleExternalEventActivity27.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.setInternalParametersInvoked);
            // 
            // eventDrivenActivity16
            // 
            this.eventDrivenActivity16.Activities.Add(this.handleExternalEventActivity26);
            this.eventDrivenActivity16.Activities.Add(this.transactionScopeActivity28);
            this.eventDrivenActivity16.Name = "eventDrivenActivity16";
            // 
            // eventDrivenActivity15
            // 
            this.eventDrivenActivity15.Activities.Add(this.handleExternalEventActivity25);
            this.eventDrivenActivity15.Activities.Add(this.transactionScopeActivity27);
            this.eventDrivenActivity15.Name = "eventDrivenActivity15";
            // 
            // RollbackRequestedInit
            // 
            this.RollbackRequestedInit.Activities.Add(this.RollbackRequestedInitCode);
            this.RollbackRequestedInit.Name = "RollbackRequestedInit";
            // 
            // eventDrivenActivity7
            // 
            this.eventDrivenActivity7.Activities.Add(this.handleExternalEventActivity17);
            this.eventDrivenActivity7.Activities.Add(this.transactionScopeActivity19);
            this.eventDrivenActivity7.Name = "eventDrivenActivity7";
            // 
            // eventDrivenActivity4
            // 
            this.eventDrivenActivity4.Activities.Add(this.handleExternalEventActivity14);
            this.eventDrivenActivity4.Activities.Add(this.transactionScopeActivity16);
            this.eventDrivenActivity4.Name = "eventDrivenActivity4";
            // 
            // eventDrivenActivity1
            // 
            this.eventDrivenActivity1.Activities.Add(this.handleExternalEventActivity9);
            this.eventDrivenActivity1.Activities.Add(this.transactionScopeActivity12);
            this.eventDrivenActivity1.Name = "eventDrivenActivity1";
            // 
            // AgreementOPExpertSightingInit
            // 
            this.AgreementOPExpertSightingInit.Activities.Add(this.AgreementOPExpertSightingInitCode);
            this.AgreementOPExpertSightingInit.Name = "AgreementOPExpertSightingInit";
            // 
            // AgreedInit
            // 
            this.AgreedInit.Activities.Add(this.AgreedInitCode);
            this.AgreedInit.Activities.Add(this.transactionScopeActivity6);
            this.AgreedInit.Name = "AgreedInit";
            // 
            // eventDrivenActivity14
            // 
            this.eventDrivenActivity14.Activities.Add(this.handleExternalEventActivity24);
            this.eventDrivenActivity14.Activities.Add(this.transactionScopeActivity26);
            this.eventDrivenActivity14.Name = "eventDrivenActivity14";
            // 
            // DenialEvent5
            // 
            this.DenialEvent5.Activities.Add(this.handleExternalEventActivity7);
            this.DenialEvent5.Activities.Add(this.transactionScopeActivity11);
            this.DenialEvent5.Name = "DenialEvent5";
            // 
            // SightingEvent5
            // 
            this.SightingEvent5.Activities.Add(this.handleExternalEventActivity6);
            this.SightingEvent5.Activities.Add(this.transactionScopeActivity7);
            this.SightingEvent5.Name = "SightingEvent5";
            // 
            // UPKZHeadSightingInit
            // 
            this.UPKZHeadSightingInit.Activities.Add(this.UPKZHeadSightingInitCode);
            this.UPKZHeadSightingInit.Name = "UPKZHeadSightingInit";
            // 
            // eventDrivenActivity13
            // 
            this.eventDrivenActivity13.Activities.Add(this.handleExternalEventActivity23);
            this.eventDrivenActivity13.Activities.Add(this.transactionScopeActivity25);
            this.eventDrivenActivity13.Name = "eventDrivenActivity13";
            // 
            // DenialEvent4
            // 
            this.DenialEvent4.Activities.Add(this.handleExternalEventActivity12);
            this.DenialEvent4.Activities.Add(this.transactionScopeActivity14);
            this.DenialEvent4.Name = "DenialEvent4";
            // 
            // SightingEvent4
            // 
            this.SightingEvent4.Activities.Add(this.handleExternalEventActivity11);
            this.SightingEvent4.Activities.Add(this.transactionScopeActivity9);
            this.SightingEvent4.Name = "SightingEvent4";
            // 
            // UPKZCuratorSightingInit
            // 
            this.UPKZCuratorSightingInit.Activities.Add(this.UPKZCuratorSightingInitCode);
            this.UPKZCuratorSightingInit.Name = "UPKZCuratorSightingInit";
            // 
            // eventDrivenActivity11
            // 
            this.eventDrivenActivity11.Activities.Add(this.handleExternalEventActivity21);
            this.eventDrivenActivity11.Activities.Add(this.transactionScopeActivity23);
            this.eventDrivenActivity11.Name = "eventDrivenActivity11";
            // 
            // DenialEvent3
            // 
            this.DenialEvent3.Activities.Add(this.handleExternalEventActivity8);
            this.DenialEvent3.Activities.Add(this.transactionScopeActivity10);
            this.DenialEvent3.Name = "DenialEvent3";
            // 
            // SightingEvent3
            // 
            this.SightingEvent3.Activities.Add(this.handleExternalEventActivity5);
            this.SightingEvent3.Activities.Add(this.transactionScopeActivity5);
            this.SightingEvent3.Name = "SightingEvent3";
            // 
            // InitiatorHeadSightingInit
            // 
            this.InitiatorHeadSightingInit.Activities.Add(this.InitiatorHeadSightingInitCode);
            this.InitiatorHeadSightingInit.Name = "InitiatorHeadSightingInit";
            // 
            // eventDrivenActivity12
            // 
            this.eventDrivenActivity12.Activities.Add(this.handleExternalEventActivity22);
            this.eventDrivenActivity12.Activities.Add(this.transactionScopeActivity24);
            this.eventDrivenActivity12.Name = "eventDrivenActivity12";
            // 
            // DenialEvent2
            // 
            this.DenialEvent2.Activities.Add(this.handleExternalEventActivity4);
            this.DenialEvent2.Activities.Add(this.transactionScopeActivity4);
            this.DenialEvent2.Name = "DenialEvent2";
            // 
            // SightingEvent2
            // 
            this.SightingEvent2.Activities.Add(this.handleExternalEventActivity3);
            this.SightingEvent2.Activities.Add(this.transactionScopeActivity3);
            this.SightingEvent2.Name = "SightingEvent2";
            // 
            // OPHeadSightingInit
            // 
            this.OPHeadSightingInit.Activities.Add(this.OPHeadSightingInitCode);
            this.OPHeadSightingInit.Name = "OPHeadSightingInit";
            // 
            // eventDrivenActivity10
            // 
            this.eventDrivenActivity10.Activities.Add(this.handleExternalEventActivity20);
            this.eventDrivenActivity10.Activities.Add(this.transactionScopeActivity22);
            this.eventDrivenActivity10.Name = "eventDrivenActivity10";
            // 
            // DenialEvent1
            // 
            this.DenialEvent1.Activities.Add(this.denialEventFired1);
            this.DenialEvent1.Activities.Add(this.transactionScopeActivity8);
            this.DenialEvent1.Name = "DenialEvent1";
            // 
            // SightingEvent1
            // 
            this.SightingEvent1.Activities.Add(this.handleExternalEventActivity2);
            this.SightingEvent1.Activities.Add(this.transactionScopeActivity2);
            this.SightingEvent1.Name = "SightingEvent1";
            // 
            // OPExpertSightingInit
            // 
            this.OPExpertSightingInit.Activities.Add(this.OPExpertSightingInitCode);
            this.OPExpertSightingInit.Name = "OPExpertSightingInit";
            // 
            // StartProcessingEvent
            // 
            this.StartProcessingEvent.Activities.Add(this.handleExternalEventActivity1);
            this.StartProcessingEvent.Activities.Add(this.transactionScopeActivity1);
            this.StartProcessingEvent.Name = "StartProcessingEvent";
            // 
            // DraftInit
            // 
            this.DraftInit.Activities.Add(this.DraftInitCode);
            this.DraftInit.Name = "DraftInit";
            // 
            // eventDrivenActivity17
            // 
            this.eventDrivenActivity17.Activities.Add(this.handleExternalEventActivity27);
            this.eventDrivenActivity17.Name = "eventDrivenActivity17";
            // 
            // RollbackRequested
            // 
            this.RollbackRequested.Activities.Add(this.RollbackRequestedInit);
            this.RollbackRequested.Activities.Add(this.eventDrivenActivity15);
            this.RollbackRequested.Activities.Add(this.eventDrivenActivity16);
            this.RollbackRequested.Name = "RollbackRequested";
            // 
            // AgreementOPExpertSighting
            // 
            this.AgreementOPExpertSighting.Activities.Add(this.AgreementOPExpertSightingInit);
            this.AgreementOPExpertSighting.Activities.Add(this.eventDrivenActivity1);
            this.AgreementOPExpertSighting.Activities.Add(this.eventDrivenActivity4);
            this.AgreementOPExpertSighting.Activities.Add(this.eventDrivenActivity7);
            this.AgreementOPExpertSighting.Name = "AgreementOPExpertSighting";
            // 
            // Archived
            // 
            this.Archived.Name = "Archived";
            // 
            // Agreed
            // 
            this.Agreed.Activities.Add(this.AgreedInit);
            this.Agreed.Name = "Agreed";
            // 
            // UPKZHeadSighting
            // 
            this.UPKZHeadSighting.Activities.Add(this.UPKZHeadSightingInit);
            this.UPKZHeadSighting.Activities.Add(this.SightingEvent5);
            this.UPKZHeadSighting.Activities.Add(this.DenialEvent5);
            this.UPKZHeadSighting.Activities.Add(this.eventDrivenActivity14);
            this.UPKZHeadSighting.Name = "UPKZHeadSighting";
            // 
            // UPKZCuratorSighting
            // 
            this.UPKZCuratorSighting.Activities.Add(this.UPKZCuratorSightingInit);
            this.UPKZCuratorSighting.Activities.Add(this.SightingEvent4);
            this.UPKZCuratorSighting.Activities.Add(this.DenialEvent4);
            this.UPKZCuratorSighting.Activities.Add(this.eventDrivenActivity13);
            this.UPKZCuratorSighting.Name = "UPKZCuratorSighting";
            // 
            // InitiatorHeadSighting
            // 
            this.InitiatorHeadSighting.Activities.Add(this.InitiatorHeadSightingInit);
            this.InitiatorHeadSighting.Activities.Add(this.SightingEvent3);
            this.InitiatorHeadSighting.Activities.Add(this.DenialEvent3);
            this.InitiatorHeadSighting.Activities.Add(this.eventDrivenActivity11);
            this.InitiatorHeadSighting.Name = "InitiatorHeadSighting";
            // 
            // OPHeadSighting
            // 
            this.OPHeadSighting.Activities.Add(this.OPHeadSightingInit);
            this.OPHeadSighting.Activities.Add(this.SightingEvent2);
            this.OPHeadSighting.Activities.Add(this.DenialEvent2);
            this.OPHeadSighting.Activities.Add(this.eventDrivenActivity12);
            this.OPHeadSighting.Name = "OPHeadSighting";
            // 
            // OPExpertSighting
            // 
            this.OPExpertSighting.Activities.Add(this.OPExpertSightingInit);
            this.OPExpertSighting.Activities.Add(this.SightingEvent1);
            this.OPExpertSighting.Activities.Add(this.DenialEvent1);
            this.OPExpertSighting.Activities.Add(this.eventDrivenActivity10);
            this.OPExpertSighting.Name = "OPExpertSighting";
            // 
            // Draft
            // 
            this.Draft.Activities.Add(this.DraftInit);
            this.Draft.Activities.Add(this.StartProcessingEvent);
            this.Draft.Name = "Draft";
            // 
            // Demand
            // 
            this.Activities.Add(this.Draft);
            this.Activities.Add(this.OPExpertSighting);
            this.Activities.Add(this.OPHeadSighting);
            this.Activities.Add(this.InitiatorHeadSighting);
            this.Activities.Add(this.UPKZCuratorSighting);
            this.Activities.Add(this.UPKZHeadSighting);
            this.Activities.Add(this.Agreed);
            this.Activities.Add(this.Archived);
            this.Activities.Add(this.AgreementOPExpertSighting);
            this.Activities.Add(this.RollbackRequested);
            this.Activities.Add(this.eventDrivenActivity17);
            this.Comment = "";
            this.CompletedStateName = "Archived";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "Draft";
            this.Name = "Demand";
            this.CanModifyActivities = false;

        }
Esempio n. 60
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.setStateActivity2                     = new System.Workflow.Activities.SetStateActivity();
     this.setStateActivity5                     = new System.Workflow.Activities.SetStateActivity();
     this.editCodeActivity_ShowBaloon           = new System.Workflow.Activities.CodeActivity();
     this.ifElseBranchActivity2                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.ifElseBranchActivity1                 = new System.Workflow.Activities.IfElseBranchActivity();
     this.setStateActivity3                     = new System.Workflow.Activities.SetStateActivity();
     this.saveCodeActivity_Save                 = new System.Workflow.Activities.CodeActivity();
     this.ifElse_UrlMappingNameInUse            = new System.Workflow.Activities.IfElseActivity();
     this.saveHandleExternalEventActivity1      = new Composite.C1Console.Workflow.Activities.SaveHandleExternalEventActivity();
     this.editDocumentFormActivity              = new Composite.C1Console.Workflow.Activities.DocumentFormActivity();
     this.setStateActivity4                     = new System.Workflow.Activities.SetStateActivity();
     this.initializeCodeActivity_Initialize     = new System.Workflow.Activities.CodeActivity();
     this.saveStateInitializationActivity       = new System.Workflow.Activities.StateInitializationActivity();
     this.editEventDrivenActivity_Save          = new System.Workflow.Activities.EventDrivenActivity();
     this.editStateInitializationActivity       = new System.Workflow.Activities.StateInitializationActivity();
     this.initializeStateInitializationActivity = new System.Workflow.Activities.StateInitializationActivity();
     this.setStateActivity1                     = new System.Workflow.Activities.SetStateActivity();
     this.cancelHandleExternalEventActivity1    = new Composite.C1Console.Workflow.Activities.CancelHandleExternalEventActivity();
     this.saveStateActivity                     = new System.Workflow.Activities.StateActivity();
     this.editStateActivity                     = new System.Workflow.Activities.StateActivity();
     this.finalStateActivity                    = new System.Workflow.Activities.StateActivity();
     this.initializeStateActivity               = new System.Workflow.Activities.StateActivity();
     this.eventDrivenActivity_GlobalCancel      = new System.Workflow.Activities.EventDrivenActivity();
     //
     // setStateActivity2
     //
     this.setStateActivity2.Name            = "setStateActivity2";
     this.setStateActivity2.TargetStateName = "saveStateActivity";
     //
     // setStateActivity5
     //
     this.setStateActivity5.Name            = "setStateActivity5";
     this.setStateActivity5.TargetStateName = "editStateActivity";
     //
     // editCodeActivity_ShowBaloon
     //
     this.editCodeActivity_ShowBaloon.Name         = "editCodeActivity_ShowBaloon";
     this.editCodeActivity_ShowBaloon.ExecuteCode += new System.EventHandler(this.editCodeActivity_ShowBaloon_ExecuteCode);
     //
     // ifElseBranchActivity2
     //
     this.ifElseBranchActivity2.Activities.Add(this.setStateActivity2);
     this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
     //
     // ifElseBranchActivity1
     //
     this.ifElseBranchActivity1.Activities.Add(this.editCodeActivity_ShowBaloon);
     this.ifElseBranchActivity1.Activities.Add(this.setStateActivity5);
     codecondition1.Condition            += new System.EventHandler <System.Workflow.Activities.ConditionalEventArgs>(this.UrlMappingNameInUse);
     this.ifElseBranchActivity1.Condition = codecondition1;
     this.ifElseBranchActivity1.Name      = "ifElseBranchActivity1";
     //
     // setStateActivity3
     //
     this.setStateActivity3.Name            = "setStateActivity3";
     this.setStateActivity3.TargetStateName = "editStateActivity";
     //
     // saveCodeActivity_Save
     //
     this.saveCodeActivity_Save.Name         = "saveCodeActivity_Save";
     this.saveCodeActivity_Save.ExecuteCode += new System.EventHandler(this.saveCodeActivity_Save_ExecuteCode);
     //
     // ifElse_UrlMappingNameInUse
     //
     this.ifElse_UrlMappingNameInUse.Activities.Add(this.ifElseBranchActivity1);
     this.ifElse_UrlMappingNameInUse.Activities.Add(this.ifElseBranchActivity2);
     this.ifElse_UrlMappingNameInUse.Name = "ifElse_UrlMappingNameInUse";
     //
     // saveHandleExternalEventActivity1
     //
     this.saveHandleExternalEventActivity1.EventName     = "Save";
     this.saveHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.saveHandleExternalEventActivity1.Name          = "saveHandleExternalEventActivity1";
     //
     // editDocumentFormActivity
     //
     this.editDocumentFormActivity.ContainerLabel = null;
     this.editDocumentFormActivity.CustomToolbarDefinitionFileName = null;
     this.editDocumentFormActivity.FormDefinitionFileName          = "\\Administrative\\EditSystemLocaleEdit.xml";
     this.editDocumentFormActivity.Name = "editDocumentFormActivity";
     //
     // setStateActivity4
     //
     this.setStateActivity4.Name            = "setStateActivity4";
     this.setStateActivity4.TargetStateName = "editStateActivity";
     //
     // initializeCodeActivity_Initialize
     //
     this.initializeCodeActivity_Initialize.Name         = "initializeCodeActivity_Initialize";
     this.initializeCodeActivity_Initialize.ExecuteCode += new System.EventHandler(this.initializeCodeActivity_Initialize_ExecuteCode);
     //
     // saveStateInitializationActivity
     //
     this.saveStateInitializationActivity.Activities.Add(this.saveCodeActivity_Save);
     this.saveStateInitializationActivity.Activities.Add(this.setStateActivity3);
     this.saveStateInitializationActivity.Name = "saveStateInitializationActivity";
     //
     // editEventDrivenActivity_Save
     //
     this.editEventDrivenActivity_Save.Activities.Add(this.saveHandleExternalEventActivity1);
     this.editEventDrivenActivity_Save.Activities.Add(this.ifElse_UrlMappingNameInUse);
     this.editEventDrivenActivity_Save.Name = "editEventDrivenActivity_Save";
     //
     // editStateInitializationActivity
     //
     this.editStateInitializationActivity.Activities.Add(this.editDocumentFormActivity);
     this.editStateInitializationActivity.Name = "editStateInitializationActivity";
     //
     // initializeStateInitializationActivity
     //
     this.initializeStateInitializationActivity.Activities.Add(this.initializeCodeActivity_Initialize);
     this.initializeStateInitializationActivity.Activities.Add(this.setStateActivity4);
     this.initializeStateInitializationActivity.Name = "initializeStateInitializationActivity";
     //
     // setStateActivity1
     //
     this.setStateActivity1.Name            = "setStateActivity1";
     this.setStateActivity1.TargetStateName = "finalStateActivity";
     //
     // cancelHandleExternalEventActivity1
     //
     this.cancelHandleExternalEventActivity1.EventName     = "Cancel";
     this.cancelHandleExternalEventActivity1.InterfaceType = typeof(Composite.C1Console.Workflow.IFormsWorkflowEventService);
     this.cancelHandleExternalEventActivity1.Name          = "cancelHandleExternalEventActivity1";
     //
     // saveStateActivity
     //
     this.saveStateActivity.Activities.Add(this.saveStateInitializationActivity);
     this.saveStateActivity.Name = "saveStateActivity";
     //
     // editStateActivity
     //
     this.editStateActivity.Activities.Add(this.editStateInitializationActivity);
     this.editStateActivity.Activities.Add(this.editEventDrivenActivity_Save);
     this.editStateActivity.Name = "editStateActivity";
     //
     // finalStateActivity
     //
     this.finalStateActivity.Name = "finalStateActivity";
     //
     // initializeStateActivity
     //
     this.initializeStateActivity.Activities.Add(this.initializeStateInitializationActivity);
     this.initializeStateActivity.Name = "initializeStateActivity";
     //
     // eventDrivenActivity_GlobalCancel
     //
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.cancelHandleExternalEventActivity1);
     this.eventDrivenActivity_GlobalCancel.Activities.Add(this.setStateActivity1);
     this.eventDrivenActivity_GlobalCancel.Name = "eventDrivenActivity_GlobalCancel";
     //
     // EditSystemLocaleWorkflow
     //
     this.Activities.Add(this.eventDrivenActivity_GlobalCancel);
     this.Activities.Add(this.initializeStateActivity);
     this.Activities.Add(this.finalStateActivity);
     this.Activities.Add(this.editStateActivity);
     this.Activities.Add(this.saveStateActivity);
     this.CompletedStateName     = "finalStateActivity";
     this.DynamicUpdateCondition = null;
     this.InitialStateName       = "initializeStateActivity";
     this.Name = "EditSystemLocaleWorkflow";
     this.CanModifyActivities = false;
 }