Windows Workflow Foundation 3


SQLTrackingQuery from Workflow


Hi,
can I call SQLTrackingQuery from workflow to get data about activities that are
finished successfully? I would like to put one code activity in the end of workflow, pick up
all tracking information and send it out in some way, it is not important how.
I don't want that procedure on host, I want to keep host as simple as possible,
and do in workflows as much work as possible.Thanks,Igor
Just for the sake of clarity non batch mode is achieved by setting IsTransactional=false.  These terms are often used interchangeably because there is a batching mechanism available inside the workflow runtime that is used by workflow runtime services (tracking, persistence, custom service...) to obtain transactional consistency with the state of the instance when the instance state is persisted.  So when you hear non batched mode it means that batching is not being used hence there is no transactional consistency with instance state.
 
Thanks,
Joel West
MS SDE in WF runtime and hosting
This posting is provided "AS IS" with no warranties, and confers no rights
Yes Igor - you just need to create the correct TrackingProfile for the activities and events you want to track.
Igor,
       quick tip. Make sure that you have a persistance point(custom activity with PersistOnClose attribute) before you do the query if you are using sql tracking service in batched mode (default). If you are using batched mode only tracking events until the pervious persist point will be in the database and you might be missing some events. If you are using non batched mode, the data goes to the database immediately so you should not have any problems.
 
Thanks,
Ranjesh
Or you can set the TransactionService to transactional=false
Just for the sake of clarity non batch mode is achieved by setting IsTransactional=false.  These terms are often used interchangeably because there is a batching mechanism available inside the workflow runtime that is used by workflow runtime services (tracking, persistence, custom service...) to obtain transactional consistency with the state of the instance when the instance state is persisted.  So when you hear non batched mode it means that batching is not being used hence there is no transactional consistency with instance state.
 
Thanks,
Joel West
MS SDE in WF runtime and hosting
This posting is provided "AS IS" with no warranties, and confers no rights

Related Links

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?
How to: Activity Data Bind a collection object, not it's contents.
Problems with Ownership, Timers etc
CustomPersistedService
Workflow and Development Modes
My workflow deriving from my own workflow base class - will it work?
Object To Object Map Activity
Distributed Transaction with WWF
MaxInstances WorkflowRuntime
Remote workflow tracking
callback trigger
Question about hosting
Context bindings wsdl generation
Use of HandleExternalEvent result in an IfElse activity

Categories

MSDN
Microsoft Azure
Visual Studio Design a...
Visual FoxPro
Architecture
BizTalk Server
Data Platform Developm...
Microsoft ISV Communit...
Windows Embedded Standard
Dynamics
ScriptJunkie
Office Live Development
Unified Communications
Windows Phone Preview ...
OneDrive Development
Cortana
Forums Redesign - Q&A ...
C++ Standards, Extensi...
Visual Studio Code Vis...
Windows Desktop Develo...
General Windows Deskto...
Windows Desktop Optica...
Windows Desktop Search...
Windows Desktop Perfmo...
Windows Desktop SDK
Windows Desktop Web Se...
Access for Developers
Open XML Format SDK
Azure Virtual Machines
Azure Mobile Apps
Azure Automation
Azure DocumentDB
Azure Log Analytics
Azure Functions
Azure Log Integration
.NET Framework Setup a...
Team Foundation Server...
The Forum of Sho
TPL Dataflow
Microsoft Solver Found...
JScript Native
ISV Open Discussions
Microsoft Robotics - C...
Microsoft Robotics - S...
Visual Studio Smart De...
SQL Server Analysis Se...
SQL Server Security
SQL Server Documentation
SQL Server Express
SQL Server Search
SQL Server Migration
SQL Server Master Data...
SQL Server Distributed...
SQL Server 2012 Databa...
Windows Forms Designer
Windows Live ID: Devel...
Script Junkie Discussion
Developing for the Mob...
Bing Maps WPF, WP7/8/8...
Open Specifications Qu...
Microsoft Atlas APIs: ...
Silverlight Installati...
PivotViewer Control wi...
Game Development with ...
Customer Care Framework
Connected Services Fra...
Windows Performance To...
Project Standard and P...
Project Online General...
Building Development a...
Azure Startups
Game Technologies: Aud...
Getting Started With V...
Hobbyist Zone
Microsoft Security Dev...
MS-Build, Multi-Target...
Network Class Library ...
Popfly Explorer
Regular Expressions
Search Server: Known B...
SQL Creation
SQL Server 2014 High A...
Tools for Windows Stor...
Tailoring your Windows...
Visual Studio 2008 IDE...
Visual Studio Performa...
Web Gadget Development
Web Sandbox - General
Working with Data and ...
XNA Game Studio Express
Ad Revenue, Payout & T...
Kinect for Windows v2 SDK
Skype Web SDK

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile