SHARE
Facebook X Pinterest WhatsApp

Workflow Foundation 4.0

Table of Contents Introduction Workflow Foundation 4.0 Building a WCF service using WF4.0 Lets get started Start New Project Sequence Activity: Receive Activity: Send Activity: Rename service operation name and contract name: Add top level variables Receive Activity Configuration Parameter to workflow variable mapping Send Activity Configuration Steps to build a custom code activity Flowchart […]

Written By
thumbnail
CodeGuru Staff
CodeGuru Staff
Aug 12, 2010
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Table of Contents

Introduction

The goal of this article is to help developers get familiar with Worflow Foundation 4.0.

Workflow Foundation 4.0

It provides a programming model, in-process workflow engine and rehostable designer to implement long-running processes as workflows within .NET applications.MSDN

Building a WCF service using WF4.0

This article will provide a step-by-step guide to build and test a simple calculator web service in WF4.0. I will be using mostly built-in WF activities to build workflow. In addition, I will build a simple custom code activity to go over the custom activities.

So the task of the service will be to take three parameters, two for operand and one for operation name and return the result back to the client after applying the operation. The diagram below explains the complete flow that we are going to implement during this exercise and our workflow will look like this flow chart at the end.

Building workflow application will be similar to building this flow chart. Each box in the above diagram will be called activity and all the activities will be contained in a larger activity called Main Activity. Most of the activities needed to build this application will be provided by the Visual Studio 2010 and we will add a new custom activity to log the data into a file to track the application.

Recommended for you...

Different Types of JIT Compilers in .NET
Tariq Siddiqui
Mar 17, 2023
Middleware in ASP.NET Core
Tariq Siddiqui
Mar 16, 2023
Intro to Intel oneDAL and ML.NET
Hannes DuPreez
Jan 16, 2023
Types of Query Execution in LINQ
Tariq Siddiqui
Dec 15, 2022
CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.