PrepAway - Latest Free Exam Questions & Answers

Category: 70-504

Exam 70-504: TS: Microsoft .NET Framework 3.5 – Workflow

Which code segment should you insert at line 05?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.
You plan to create a RuleSet class named ruleSet.

You write the following code segment in the RuleSet class.

Int32 age;
Boolean adult;

You write the following code segment. (Line numbers are included for reference only.)

01 RuleSet ruleSet = new RuleSet();
02 Rule ageRule = new Rule("AgeRule");
03 CodeThisReferenceExpression thisRef =
04 new CodeThisReferenceExpression();
06 CodeBinaryOperatorExpression ageValueTest = new
07 CodeBinaryOperatorExpression();
08 ageValueTest.Left = ageRef;
09 ageValueTest.Operator =
10 CodeBinaryOperatorType.GreaterThanOrEqual;
11 ageValueTest.Right = new
12 CodePrimitiveExpression(18);
13 ageRule.Condition = new
14 RuleExpressionCondition(ageValueTest);
15 CodeAssignStatement ageRuleAction = new
16 CodeAssignStatement(adultValueRef, new
17 CodePrimitiveExpression(true));
18 ageRule.ThenActions.Add(new
19 RuleStatementAction(ageRuleAction));
20 ruleSet.Rules.Add(ageRule);

You need to add a rule that sets the value of the adult field to true if the value of the age field is greater than or equal to 18. You also need to assign the highest priority to this rule.

Which code segment should you insert at line 05?

Which code segment should you use?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.

The workflow contains a custom activity named CustomActivity. The custom activity meets the following requirements:

It overrides the Execute method.
It retrieves customer information.

You need to stop the workflow if the customer information cannot be retrieved.

Which code segment should you use?

Which code segment should you use?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application will be used for stock maintenance in a warehouse. The application will receive daily sales report data from the client application through SOAP. You need to ensure that when the sales report arrives, the stock application must call the stock-counting application to retrieve the item count. Which code segment should you use?

Which code segment should you use?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You plan to add a workflow to implement an order processing logic. When the host initiates the order processing logic, it raises an event named StartProcessing. You need to configure the local communication interface to enable the workflow to handle the event. Which code segment should you use?


Page 6 of 9« First...45678...Last »