本文整理汇总了C#中System.Workflow.Activities.CodeCondition类的典型用法代码示例。如果您正苦于以下问题:C# CodeCondition类的具体用法?C# CodeCondition怎么用?C# CodeCondition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodeCondition类属于System.Workflow.Activities命名空间,在下文中一共展示了CodeCondition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WorkFlowIfElse
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);
}
示例2: InitializeComponent
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;
}
示例3: WorkFlowIfElse
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);
}
示例4: InitializeComponent
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;
}
示例5: InitializeComponent
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;
}
示例6: InitializeComponent
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;
}
示例7: InitializeComponent
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;
}
示例8: InitializeComponent
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;
}
示例9: InitializeComponent
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;
}
示例10: InitializeComponent
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;
}
示例11: InitializeComponent
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;
}
示例12: SimpleWorkFlowDelay
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;
}
示例13: InitializeComponent
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;
}
示例14: InitializeComponent
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";
//.........这里部分代码省略.........
示例15: InitializeComponent
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";
//.........这里部分代码省略.........