How to capture the state change event in state machine workflow?

I have created a state machine workflow. When the setstate activity changes the state from one state to another, i want to capture an event and perform some action.

For example, when the state of the statemachine workflow changes from "State1" to "State2", i want to capture an event inside the workflow itself.

Is there any way to do this?

Thanks

[381 byte] By [siva_Baskar] at [2007-12-22]
# 1
The way I'd do this - since it is pretty simple - is to add a StateInitializationActivity to State2. That will tell you that State2 has been transitioned to.
JonFlanders at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

A usertracking event is also fired during a state change. If you are using Tracking, you can use that too but make sure that you are tracking those usertracking events.

Ranjesh

RanjeshJ at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 3
Tracking would be too late - plus it wouldn't give him the ability to do things inside of the workflow itself.
JonFlanders at 2007-8-30 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified