1.
A custom activity defined in an assembly named LitwareActivities is defined as follows:
Namespace LitwareActivities
Public Class WriteLineActivity
Inherits Activity
Protected Overrides Function Execute(ByVal executionContext As
System.Workflow.ComponentModel.ActivityExecutionContext) _
As System.Workflow.ComponentModel.ActivityExecutionStatus
Console.WriteLine(Message)
Return ActivityExecutionStatus.Closed
End Function
Private aMessage As String
Public Property Message() As String
Get
Return aMessage
End Get
Set(ByVal value As String)
aMessage = value
End Set
End Property
End Class
End Namespace
You need to create a sequential workflow where the execution path can be generated on the fly by an application.
Which XML code segment should you use?
2.
You create an application in which users design simple sequential workflows. The designs are stored as XOML in a SQL database. You need to start one of these sequential workflows from within your own workflow.
What should you do?
3.
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.
The application uses a markup-only workflow.
The workflow will also require the use of a code-beside file.
The following code fragment is implemented in XAML.
"http://schemas.microsoft.com/winfx/2006/xaml/workflow"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

You need to create a class declaration to implement the custom code.
Which code segment should you use?
4.
You create a workflow host application by using Microsoft .NET Framework 3.5. You use Windows Workflow
Foundation to create the application.
You need to configure the workflow runtime to ensure that all the workflow instances run asynchronously.
Which code segment should you use?
5.
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.
A Windows Forms application functions as the workflow host by using the DefaultWorkflowSchedulerService.
You create a WorkflowRuntime instance in the Load event of the forms. You also subscribe to the
WorkflowCompleted event.
You need to ensure that the application displays the message in the Label control named lblStatus when the
WorkflowCompleted event is raised.
Which code segment should you use?
6.
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The application uses a sequential workflow.
The host application creates a workflow instance and stores it in a variable named instance. When the workflow is
executed, a business requirement requires the workflow execution to pause for a few minutes.
The host uses the following code segment.
Dim runtime As New WorkflowRuntime()
Dim instance As WorkflowInstance = _
runtime.CreateWorkflow(GetType(MyWorkflow))
instance.Start()
You need to ensure that the following requirements are met:
The workflow execution is temporarily paused.
The workflow state is preserved in memory.
Which line of code should you use?
7.
You create an application in which users design simple sequential workflows. The designs are stored as XOML in a SQL database. You need to start one of these sequential workflows from within your own workflow.
What should you do?
8.
You create a workflow host application by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the application.
You need to configure the workflow runtime to ensure that all the workflow instances run asynchronously.
Which code segment should you use?
9.
You create an application in which users design simple sequential workflows. The designs are stored as XOML in a SQL database. You need to start one of these sequential workflows from within your own workflow.
What should you do?
10.
You create a workflow host application by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the application.
You need to configure the workflow runtime to ensure that all the workflow instances run asynchronously.
Which code segment should you use?