Which code segment should you use?
You are creating a custom activity by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the custom activity.
The custom activity has the following characteristics:
It is derived from the System.Workflow.ComponentModel.Activity class.
It overrides the Execute method.
The Execute method accepts a parameter named executionContext of type ActivityExecutionContext.
You need to ensure that the Execute method facilitates the transition of the custom activity out of the execution state. You also need to ensure that the Execute method allows the workflow to proceed towards completion.
Which code segment should you use?
Which code segment should you use?
You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5.
The custom activity has the following characteristics:
It is derived from the System.Workflow.ComponentModel.CompositeActivity class.
It manages a single child activity.
It subscribes to the Closed event of the child activity.
You plan to implement the cancellation logic for the custom activity.
You need to ensure that during the cancellation process, the custom activity cancels the execution of the child activity.
Which code segment should you use?
Which base class should you use?
You are creating a workflow by using Microsoft .NET Framework 3.5. You use Windows Workflow Foundation to create the workflow. You need to create a custom activity for the workflow that must not manage any child activity. Which base class should you use?
Which code segment should you use?
You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5. The custom activity implements the IEventActivity interface and must communicate with a local service by using a workflow queue. The custom activity has a property named QueueName and an ActivityExecutionContext parameter named context. You need to create a queue.
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 add a custom activity class named PriorityParallelActivity to the application.
The custom activity defines the following features:
An attached dependency property named Priority
The standard static accessors for the Priority property
The Priority property is of type Int32.
You are creating a new workflow definition. The PriorityParallelActivity activity contains a CodeActivity activity named codeActivity1.
You need to set the value of the Priority property of the codeActivity1 activity to 5.
Which code segment should you use?
Which code segment should you use?
You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5.
The custom activity contains a property named ApproveDocument of type Boolean.
The property must meet the following requirements:
The custom activity can read values from the property during the workflow design. The custom activity can write values into the property during the workflow design.
The value of the property does not change at runtime.
You need to implement the ApproveDocument property to meet the outlined requirements.
Which code segment should you use?
Which code segment should you use?
You are creating a Windows Workflow Foundation custom activity by using Microsoft .NET Framework 3.5.
The custom activity has the following features:
It is derived from the System.Workflow.ComponentModel.CompositeActivity class.
It contains a single child activity.
You create a method named ExecuteChild for the custom activity. Each time the custom activity is required to execute the child activity, the custom activity invokes the ExecuteChild method.
You need to ensure that the ExecuteChild method enables the custom activity to execute the child activity more than once.
Which code segment should you use?
Which strategy should you use?
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You plan to use an exception logging strategy to log unhandled exceptions that occur in the workflow. You need to identify a logging strategy that works for Sequential workflows and state machineCbased workflows. Which strategy should you use?
Which runtime service should you use?
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. The workflow uses a TransactionScopeActivity activity. When you run the workflow, a runtime exception is thrown. You need to add a workflow runtime service to make the workflow functional. Which runtime service should you use?
Which code segment should you use?
You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You add a class to the workflow that implements the IPendingWork interface. The class interacts with a Microsoft SQL Server 2005 database. All database write operations must be performed in a transaction. You implement a Commit method of the IPendingWork interface. You need to complete the Commit method. Which code segment should you use?