Top 22 Windows Workflow Foundation Interview Questions
Q1. What Is A Workflow?
A workflow is a group of actions (called activities) that presents the version of a technique. A workflow provides a way to explain the order of the execution of a long running system and relationships among distinct activities. Multiple instances of a workflow can be energetic at any given second in an application.
Q2. What Is A Dynamic Update?
Dynamic update is a effective function of WF that describes the capacity of WF to regulate the execution direction of a running workflow. This function is utilized in circumstances that call for extraneous behavior that changed into no longer modeled by the original workflow developer.
Q3. What Is The Function Of The Rule Condition Editor Dialog Box In Wf?
You can create and adjust declarative rule situations by means of using the Rule Condition Editor dialog container.
Q4. What Is A Base Activity Library?
The base interest library is a group of sports used to create workflows.
Q5. Explain Custom Activities?
In addition to the standard sports to be had inside the base activity library, you can create new activities to fulfill specific commercial enterprise wishes. Creating custom activities may be required to guide a particular software that you need to integrate with WF. Custom sports are usually created through attributes and inheritance. You can create two kinds of custom sports, base and composite. You can create fundamental custom pastime by inheriting the Activity class and custom composite hobby with the aid of inheriting the compositeActivity magnificence or a derived type.
Q6. What Is The Difference Between A System Workflow And A Human Workflow?
A system workflow is a workflow this is evolved to automate interactions amongst packages. Such workflow is usually static and predictable. On the other hand, a human workflow is a workflow that coordinates interactions of applications with people. As human workflows contain both software program and those, they want to be greater bendy than system workflows.
Q7. What Are Xoml Files?
WF provides builders a declarative way to create workflows via the usage of extensible Application Markup Language (XAML). The documents used to save such workflow markups are called extensible Object Markup Language (XOML) documents.
Q8. What Is A Host Process?
A host system is an executable software that hosts a workflow. It can be a Windows Forms application, a Web application, or a Web provider software. You can use Web offerings inside the host procedure or remoting to enable other programs to talk with the workflow.
Q9. Explain The Concept Of Bookmarks In Wf four.0?
In WF 4.0, a bookmark is a mechanism that enables an activity to wait for an input with out interrupting a workflow thread. When an hobby indicators that it's miles waiting for the enter from a consumer, it may create a bookmark. A bookmark is created with the aid of the usage of the BookmarkOptions elegance.
This class presents the following bookmark kinds:
None :Represents a bookmark that can be resumed exactly once. This is the default bookmark kind.
MultipleResume : Refers to a bookmark that you could resume a couple of instances.
NonBlocking: Refers to a bookmark that does not block the functioning of the workflow.
Q10. What Are The Four Workflow Principles?
According to Microsoft, there are 4 important standards that explain the behavior and operating of workflows. Developers can use those standards whilst growing workflow-based packages.
The 4 standards are as follows:
Workflows help in coordinating the paintings performed by way of humans and software program.
Workflows are long-strolling and stateful.
Workflows are primarily based on extensible models.
Workflows continue to be obvious and dynamic at some stage in their lifecycle.
Q11. What Are Runtime Services?
Runtime offerings consist of predefined and consumer-described classes which are to be had to the workflow runtime engine for the duration of execution to customise the behavior of workflow runtime.
Some of the runtime services to be had in WF four.Zero are as follows:
Scheduling services: Enable growing and scheduling new workflow instances for execution.
Work batch services:Enable conduct to preserve a stable and constant execution surroundings.
Persistence offerings: Enable you to save or restore the nation of a walking workflow for later use. You can restart the stored workflow every time in destiny, even after weeks of inactivity.
Tracking services: Enable you to monitor the nation of the workflows. This is particularly useful if you have more than one workflows energetic on the same time (for instance, in a shopping cart software).
Timer service:Manages the timing required by using the DelayActivity interest.
Transactions offerings:Provide the transaction support wished for statistics integrity.
Data exchange services:Manage custom communication services.
Threading offerings:Administer bodily threads used to execute workflow times.
Q12. Explain Why Workflows Are Based On Extensible Models?
Workflows serve the purpose of automating enterprise methods. Now, due to the fact every type of business has a huge variety of problems; consequently, a workflow platform wishes to be extensible. WF provides you with a fixed of base activities, together with IfElse, Code, and Delay, to build a workflow. You can extend those activities or construct new sports to satisfy your requirements. Besides activities, you could additionally make bigger offerings, consisting of tracking, management, and persistence, provided by using the runtime engine.
Q13. What Are The Different Types Of Workflow In Wf?
In WF four.0, the subsequent two types of workflows are used:
Flowchart workflows – Helps you to create workflows using the common flowchart elements. In WF, the Flowchart activity is usually used to put into effect a non-sequential workflow, and occasionally it implements sequential workflows in case the FlowDecision nodes are not used. The Flowchart hobby incorporates a group of drift nodes, which inherit from the FlowNode elegance.
The following forms of nodes or elements may be part of a flowchart:
FlowStep: Executes sports of a flowchart in a sequence.
FlowDecision: Shows the execution on the premise of a Boolean circumstance. It is just like the If assemble.
FlowSwitch : Shows the execution on the idea of an one of a kind switch. It is similar to the Switch assemble.
Procedural workflows : Helps you to create workflows using simple and sequential execution requirements. In WF, procedural workflows use float manipulate constructs, including While, Switch, ForEach, and If, to execute sports. These glide control constructs are just like those observed in procedural languages. Procedural workflows also can include other float manipulate sports, including Flowchart and Sequence.
Q14. What Is Windows Workflow Foundation (wf)?
Windows Workflow Foundation (WF) is a era that changed into first introduced in .NET Framework 3.@WF consists of a programming model, a workflow runtime engine, workflow clothier, a guidelines engine, and gear to speedy build workflow-based programs on Windows. WF allows the separation between the commercial enterprise manner code and the real implementation code.
Q15. What Are The Components Of Wf four.Zero?
WF includes numerous additives that work collectively to create desired workflow.
The additives of WF are given as follows:
Workflows and sports
Base interest library
Custom sports
Host process
Activity information mode!
Runtime engine
Runtime services
Q16. What Is A Runtime Engine?
A runtime engine of WF gives the simple functionality to execute and manage the workflow lifetime. It runs in the host technique and is responsible for executing each workflow example. A host method can interact with multiple runtime engines at a time, where each engine executes more than one workflow times.
The host manner interacts with runtime engine by the usage of any of the following lessons:
WorkflowInvoker : Invokes a workflow as its approach.
WorkflowApplication: Controls the execution of a single workflow instance explicitly.
WorkflowServiceHost: Hosts the workflows and permits sending and receiving messages among diverse instances of workflows.
Q17. What Is An Activity?
In Windows Workflow Foundation 4.Zero, an pastime is the basic unit of composition and execution of a workflow. Each interest in a workflow consists of its very own variables and arguments and is a subclass of the Activity elegance. These sports provide centers for waft manipulate, exception managing, records persistency, loading or unloading workflows, monitoring, and transaction flow.
Q18. Can You Integrate Workflow Applications With Some Other Application, Such As Windows Forms Applications And Web Applications?
Yes
Q19. How Can You Implement A Condition In A Workflow?
You can put into effect a situation by means of the use of either of the following approaches:
By growing a rule condition : Specifies that you could implement conditions both without delay in code or with the aid of the use of a device, known as the Rule Condition Editor. Rule conditions are saved in a separate Extensible Markup Language (XML) record. When a rule circumstance happens in a workflow, the expression in a circumstance is evaluated and a Boolean cost is returned.
By growing a code circumstance : Refers to defining a circumstance immediately in code. A code condition can be created by writing a way in the code. The method carries code for the circumstance and returns a Boolean price.
Q20. Which Component Of Wf Architecture Is Responsible To Execute Each Workflow Instance?
WF runtime engine is accountable to execute every workflow example.
Q21. Write The Steps That Are Involved In The Sequential Workflow, By Default?
By default, a sequential workflow has most effective two steps:
Start
Finish
Q22. Which Option Do You Need To Select For The Condition Property, If You Want To Create A Code Condition?
You can choose the Code Condition choice to create a code condition.
