Home | Interview Questions
Interview Questions | Windows 7, CRM, SharePoint, SQL Server, Windows Server, .NET..
Copyright © Accelerated Ideas 2021

Windows Workflow Foundation (WWF) Interview Questions

These Windows Workflow Foundation (WWF) interview questions include topics such as activities, code activities, the workflow runtime engine, code conditions and rule conditions.

They are suitable for the following job roles:

  • C# Developer
  • SharePoint Developer
  • .NET Developer

We wrote these questions so other IT developers could practice for their next interview or technical test. They are suitable for both consultants, temp staff or full time permanent roles.

If the organisation is using Windows Workflow Foundation then these questions should help you out..

Interview Questions

1. An Activity is the fundamental building block of workflows. An Activity defines a set of properties and events, such as any class, along with execution logic that defines the activity's run-time behavior. A set of additional components can be associated with an Activity. Which class do all activities derive from?


Show Answer

2. You are creating a new workflow that writes data to a database when a process has been completed. To write to the database you have chosen to use the CodeActivity. which event of the CodeActivity class should you use to write your code?


Show Answer

3. As part of a new internal development project you have been creating new Workflows for various business procedures. You now want to host these workflows. Can you complete the two missing words from the paragraph below which describes how to run a workflow?

Create a new instance of the ___ and call the ___ method with the type of the workflow. Finally call Start on the returned WorkflowInstance object.

WorkflowRuntime, GetService
WorkflowRuntime, AddService
WorkflowRuntime, StartRuntime
WorkflowRuntime, CreateWorkflow

Show Answer

4. As part of a new business requirement your team has been developing new Workflows using .NET 3.5. Some of these workflows run without parameters where as others require them. Which parameter type should you pass to the CreateWorkflow method to pass parameters to a workflow?

Multidimensional Object Array
Custom parameter class

Show Answer

5. A new workflow called ReportSignOff created by the senior development team is throwing an exception every time its run. This workflow expects several parameters and it can't run without them. The exception thrown is ArgumentException with the following message

The workflow ReportSignOff has no public writable property named ‘person'

What is the cause of this exception?

The parameter person was missing from the arguments used to start the workflow
The parameter person should be passed as Person
None of these
The person argument is a reserved word and cannot be used

Show Answer

6. Which of the following is TRUE regarding workflows and the workflow runtime engine?

There can be several workflow runtime engines within an application domain
All of these
Compiled workflows can be executed inside console applications, forms-based applications, Windows Services and ASP.NET Web sites
Each instance of the runtime engine can support multiple workflow instances running concurrently

Show Answer

7. You are designing a new windows workflow that meets the needs of the HR department of you organisation. This workflow should contain an activity that calls a local service with a set of parameters. Which type of activity should you add to the workflow?


Show Answer

8. You are in the process of creating a new Windows Workflow and need to choose the type of activity to use. The activity must iterate through a collection of entities and must be similar to the .NET foreach statement. Which activity type should you choose?


Show Answer

9. A RuleSet consists of one or more rule conditions and their resulting actions. You can think of a rule as an IF-THEN-ELSE statement, with the condition corresponding to the IF, and the actions defining the behavior of the THEN and ELSE clauses. What can an action do?

Set a field or property on a workflow
Any of these
Call static methods on types in referenced assemblies
Call a method on a workflow or objects in a workflow

Show Answer

10. What is FALSE regarding workflow Code Conditions and Declarative Rule Conditions

Declarative Rule Conditions are defined separately from the workflow code
Code Conditions can be modified at runtime without the need to recompile any code Code Conditions work by writing code within an event handler that evaluate to a Boolean result
Code Conditions can be modified at runtime without the need to recompile any code
Declarative Rule Conditions can be modified at runtime without the need to recompile any code

Show Answer

11. You have created a new complex workflow that sends emails based on multiple if else logic branches. The code is not executing as you would have liked and you need figure out which if else branches are causing the problem. What is the easiest option you could try?

Use the workflow designer to disable workflows
Remove each branch from the source code one by one
Remove all if else branches and use a CompensationActivity branch
Add console output for each if else branch to help debugging

Show Answer

12. The development team has created a new workflow that implements new business logic for you company. However, the workflow is throwing an unhandled exception. Which event of the WorkflowRuntime will be thrown?


Show Answer

13. The WorkflowInstance class exposes methods and properties that can be used to control the execution of a workflow instance; it is essentially a proxy to the actual workflow instance used by the workflow runtime engine. Since multiple instances of the same workflow can be running. Which property of the WorkflowInstance can be used to distinguish them?

InstanceId int
InstanceId Guid
InstanceId dictionary
InstanceId string

Show Answer

14. The PolicyActivity encapsulates a set of rules known as a RuleSet and evaluates them in order. After evaluating a rule, the engine may determine that a previous rule in the sequence requires reevaluation. Sometimes this can be the case if the current rule modified a value that a prior rule was dependent upon. What is the name of this process?

Backward chaining
Strong links
Link chaining
Forward chaining

Show Answer

15. As part of a larger specialized workflow you want to develop a custom activity that supports child activities. Which class should you derive from?


Show Answer

16. The development team at Workflow enterprises has developed a new workflow for authoring project management reports. During execution of the workflow, the workflow will need to wait for an external event. Which activity would be best to achieve this?


Show Answer

17. The development team has created a workflow for music production. They now want to add a new activity to your workflow that will spawn a second workflow. Which activity should you add to the workflow?


Show Answer

18. You have designed a new workflow and want to share properties between different activities. Rather than write code to pass values from one activity to another which is not the recommended process, you want to use a better technique. What should you do?

Use the CompensationActivity to pass values between activities
There is no better way to pass values between activities
Use the ParallelActivity to pass values between activities
Use the ActivityBind class to bind one property to another

Show Answer


Windows Server 2016
Amazon Web Services

Windows Server
Windows Server 2008
Windows Server 2012
Windows Server 2016

SQL Server
SQL Server 2008 (Administrator)
SQL Server 2008 (Support)
SQL Server 2016

Solution Architect

Windows Desktop
Windows 7
Windows 8

Windows Commmunication Foundation
Windows Workflow Foundation

Disaster Recovery
Disaster Recovery (General)

Microsoft Office
Word 2010

Project Manager
Project Management (General)

SharePoint 2010

English English  |  Portuguese Portuguese