Windows Workflow Foundation 3


Asking


 
I have a question with Workflow Foundation
 
now i have made Sequential WorkFlow Foundation with Three  code Activities
 
 AddActivity              UpdateActivity        InsertActivities
 
now  if there is error happened with updateActtivity , it will go to fault handler and show error message
 
but i want in this message contetnt of :   errorMessage + Which Activity related with this error
 
is it possible or not?
 
hema
A simple solution is to wrap the code in your CodeActivities with try/catch and rethrow the exception:
 
Code Snippet
private void UpdateActivity_ExecuteCode(object sender, EventArgs e){ try {  //Some code that blows up } catch(Exception ex) {
  throw new Exception("I blew up in UpdateActivity", ex); }}
 
 
thx dear for ur reply
 
 
it will help me so much
 
thx again
 
hema
A simple solution is to wrap the code in your CodeActivities with try/catch and rethrow the exception:
 
Code Snippet
private void UpdateActivity_ExecuteCode(object sender, EventArgs e){ try {  //Some code that blows up } catch(Exception ex) {
  throw new Exception("I blew up in UpdateActivity", ex); }}
 
 
thx dear for ur reply
 
 
it will help me so much
 
thx again
 
hema

Related Links

CreateWorkflow failing validation
xbox live mic help
download code samples of Microsoft press' windows workflow foundation step by step - Kenn Scribner
Advantage and disadvantage of ASP.NET WorkFl
When do activities CANCEL and How do i force activities to cancel state?
Windows workflow 4.0 persistent issues
Windows Workflow 4
help needed in state machine workflow in asp.net
About the Role in WWF
Need suggestion of Workflow implementation
Invoking workflow from windows form
Tracking by objects
Sample unit testing project for a code activity
How to display the provider type summary in RuleSetDialog
Windows WF3.0 - get activity information from TrackingRecord object
Workflow Rules - Chaining for Indexers

Categories

MSDN
Microsoft Office for D...
.NET Framework
Visual Studio Team Fou...
Data Platform Developm...
Machine Translation an...
Microsoft Robotics
SQL Server (Pre-release)
Windows Server
Project Server
Exchange Server
Archived Forums #
Archived Forums I-L
OneDrive Development
Archived Forums
Announcements for all ...
Visual C++
Test Tools in Visual S...
Windows App Studio Beta
App & Ad Unit Management
XboxLiveDevelopment
Windows Desktop SDK
Windows Desktop Web Se...
Excel for Developers
Outlook for Developers
Developing Apps for Sh...
SharePoint 2013 - Deve...
SharePoint 2010 - Deve...
Azure Storage
Azure Notification Hubs
Azure Batch
Cognitive Services
Azure IoT Hub
Team Foundation Server...
Team Foundation Server...
Team Foundation Server...
Team Foundation Server...
BizTalk Server General
Commerce Server 2007
ADO.NET Managed Providers
ADO.NET Entity Framewo...
TPL Dataflow
Microsoft Live Labs Volta
JScript Native
Training and Certifica...
Microsoft Device Emulator
Transact-SQL
.NET Framework inside ...
SQL Server XML
SQL Service Broker
SQL Server Database En...
SQL Server Notificatio...
Database Design
SQL Server PowerPivot ...
SQL Server Manageability
SQL Server Data Tools
Windows Embedded 8 Sta...
Standard 2009: Compone...
Windows Forms Designer
Bing Maps: Map Control...
MSDN Magazine
Exchange Server Protocols
Office Protocols
Visio General Question...
Project Server General...
Microsoft Lync Persist...
Microsoft Unified Comm...
MVVM / ViewModel Patte...
WCF RIA Services with ...
Expression Studio with...
Expression Design
Expression Web and Sup...
Customer Care Framework
Microsoft Security Dev...
Retired SharePoint Ent...
Axum Incubation Project
Azure Troubleshooting,...
Azure Startups
Commerce Server 2002 a...
Crystal Reports for Vi...
Developer Documentatio...
Dryad, DSC, and DryadL...
Game Technologies: XNA...
HealthVault Data Types
ISV Community Days
LightSwitch in Visual ...
Microsoft Security Dev...
Model-Based Testing wi...
Moderator Posting Only...
Office Live Small Busi...
POS for .NET
Parallel Programming w...
Search Server: Report ...
Surface Application De...
SQL Server 2014 In Azu...
SQL Server 2014 High A...
SQL Server 2014 Integr...
Team Foundation Server...
Tellme Studio (retired)
Tools for Windows Stor...
Visual Basic IDE
Visual Basic Power Packs
Visual Studio LightSwi...
Visual Studio UI Autom...
XML in Windows (MSXML ...
XNA Framework
Reporting
Windows Phone Preview SDK
Microsoft Partner Cent...
Microsoft R Server
Microsoft Graph

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile