Windows Workflow Foundation 3


Windows WF3.0 - get activity information from TrackingRecord object


Hi,
Is it possible to get the activity object from TrackingRecord type? Am using Windows workflow3.5 framework.
Reason being I want to extract the input data that goes into an activity.Below is the code am using to get the tracking information, it extracts an activity's name and execution status currently.
protected override void Send(TrackingRecord record)
{
// These are three different types of tracking records available.
ActivityTrackingRecord atr = record as ActivityTrackingRecord;
WorkflowTrackingRecord wtr = record as WorkflowTrackingRecord;
UserTrackingRecord utr = record as UserTrackingRecord;
Debug.WriteLine(string.Format("Received an tracking record [{0}]" , record.EventDateTime.ToShortDateString()));
if( atr!= null)
{
WriteToLog.Log(string.Format("{0},{1}",atr.QualifiedName, atr.ExecutionStatus));
}
else if (wtr!= null)
{
//MessageBox.Show("\tReceived an workflow tracking record");
//MessageBox.Show(string.Format("\t\tName[{0}]", wtr.TrackingWorkflowEvent.ToString()));
}
else if (utr!= null)
{
//MessageBox.Show("\tReceived an user tracking record");
//MessageBox.Show(string.Format("\t\tName[{0}]", utr.UserData));
}
}
Hi,
->Is it possible to get the activity object from TrackingRecord type?
We can't get the activity object from TrackingRecord. "To get data from the executing activity use an extract in your tracking profile. We'll fetch the data requested in the extract and send it with the ActivityTrackingRecord in the Body property.
This provides a flexible structure for tracking data that can be modified after the workflow type has been deployed without recompiling the workflow type or the tracking service"
Why doesn't ActivityTrackingRecord.ContextGuid match any context guids in the rootactivity?
http://social.msdn.microsoft.com/Forums/en-US/windowsworkflowfoundation/thread/98e81ad2-9a90-4381-b221-d8429345e4c4
Hope this information helps, thanks.Leo Tang [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Related Links

Persiste in a custom activity
Workflow re-activates on Final State when using OnWorkflowItemChanged Event
Windows WorkFlow Foundation: Cannot add a new state in between two existing states.
Within VS2008, can't drill down into a workflow without checking it out
SQLTrackingService tracks incorrect WorkflowInstanceEvent order?
XAML Workflows, Property Bindings and Conditions sample
Tracking query timeouts
Insert activity during PreFilterProperties
Passing data from Activity to Activity in XAML Workflows
Problem with x:Class and CreateWorkflow
Activity property resets back to default inside while activity
Designer does not maintain scroll position returning back from eventdrivenactivity to root designer surface in WF 3
InvokeWorkflow inside ReceiveActivity does not start async
stop runnign an istance of a work flow
WorkFlow will not start. Stuck on workflowRuntime.CreateWorkflow?
Is there the ability for business users to modify the workflow?

Categories

MSDN
Visual Studio Team Fou...
Visual FoxPro
Architecture
Data Platform Development
Microsoft ISV Communit...
Microsoft Sync Framework
SQL Server
Windows Live Developer
Feedback and Discussions
Microsoft Research
Other Forums
Project
Archived Forums A-B
Archived Forums E-H
Archived Forums N-R
Archived Forums
Microsoft R
Visual Studio Setup an...
Payouts and Reporting
XboxLiveDevelopment
Media Foundation Devel...
Network Monitor
Windows Desktop Optica...
Windows Desktop Sideba...
Windows Desktop Debugging
Windows Hardware WDK a...
Outlook for Developers
SharePoint Legacy Vers...
Service Bus
Azure Networking (DNS,...
Microsoft Azure Site R...
Azure Automation
Azure Batch
Azure Log Analytics
Machine Learning
Azure App Service - AP...
Language Understanding...
Azure Log Integration
Publishing Apps for th...
Team Foundation Server...
Team Foundation Server...
Team Foundation Server...
Software Modeling Tools
Debugger Canvas
SyncFx - Microsoft Syn...
SQL Server Reporting S...
Transact-SQL
SQL Server Data Access
SQL Server Replication
Database Mirroring
SQL Server Express
SQL Server Search
Database Design
SQL Server Master Data...
SQL Server PowerPivot ...
Standard 2009: Tools
Standard 7: Tools
Windows Embedded Compa...
Windows Embedded Compa...
Windows Live General: ...
WebsitePanel - Support
Bing Maps REST, SOAP, ...
SharePoint Server Prot...
Windows File Sharing P...
SQL Server Protocols
Bing Ads API: Development
Microsoft Lync Client ...
Report a Silverlight Bug
Performance Profiling ...
WCF RIA Services with ...
Expression Web and Sup...
Windows Performance To...
Retired SharePoint Ent...
.NET Framework 4 Relea...
.NET StockTrader Sampl...
AppFabric Service and ...
Building Windows Store...
Dryad, DSC, and DryadL...
Dynamic Languages on .NET
Game Technologies: XNA...
HD DVD Interactivity A...
Microsoft ESP Platform...
Microsoft Security Dev...
Model-Based Testing wi...
MS-Build, Multi-Target...
Monitor, Alert and Aut...
patterns & practices: ...
Performance Counters f...
Phoenix
NUI API and Programmin...
Search Server: Known B...
Search Server: Report ...
Search, Organize, and ...
Silverlight (formerly ...
SQL Azure Labs Support
SQL Server 2014 Report...
SQL Server 2014 Setup ...
SQL Server 2014 In-Mem...
Team Foundation Server...
Team Foundation Server...
Transactions Programming
Tools for Windows Phon...
Visual Basic Power Packs
Visual Studio Guidance...
Visual Studio Performa...
Visual Studio Source C...
Visual Studio Team Sys...
Web Sandbox - General
Windows MultiPoint Mou...
Building Windows Store...
Expression Blend for W...
XML in Visual Studio a...
XML Paper Specificatio...
XNA Game Studio Express
Windows Phone Preview ...
Windows Phone Preview ...
Windows Phone Preview ...
Windows IoT

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile