views:

292

answers:

2

I have a HandleExternalEvent activity inside a workflow. But when event is raised, I want my HandleEventActivity to handle it in that way, to stay in the idle state, and not to proceed. How this can be solved? Thanks!

A: 

in that State Activity, you could point the setstateactivity to the same activity so that it will be in same state till you raise some other events.

Jeeva S
Yes, but it can be applied to State machine workflow, only. I have a sequential workflow, so SetStateActivity can not be applied.
vucetica
A: 

you can use HandleExternalEvent Activity inside EventHandlingScopeActivity, if there are multipe events you are waiting for.

Else use a dealy timer in the code for HandleExternalEvent Activity, so as the workflow goes in idle state.

ksa