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




Answer this question

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

  • JacksonJones

    Tracking would be too late - plus it wouldn't give him the ability to do things inside of the workflow itself.

  • Sinsaru

    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.

  • error1408

    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


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