Simple SM Workflow Action Doesn't Seem Possible... Need Help  
Author Message
Kevin Hoffman





PostPosted: Windows Workflow Foundation, Simple SM Workflow Action Doesn't Seem Possible... Need Help Top

I have a pretty simple state machine workflow. When I transition into State B, I want to delay 20 seconds and then shift into state C. I tried to do this by dropping a stateinitialization activity into state B. I was then going to drop a delay activity into the initialization activity ... but that didn't work - it won't let me drop the delay activity anywhere.

I am sure I am just missing something really goofy - how do I hold state B for 20 seconds and then transition to state C every time the WF transitions into state B




Software Development for Windows Vista2  
 
 
Serge Luca





PostPosted: Windows Workflow Foundation, Simple SM Workflow Action Doesn't Seem Possible... Need Help Top

Kevin,

instead of droping a StateInitializationActivity, drop an EventActivity where you drop an DelayActivity followed by a SetState Activity

Serge

 
 
Jon Flanders





PostPosted: Windows Workflow Foundation, Simple SM Workflow Action Doesn't Seem Possible... Need Help Top

Kevin - you need to put the delay activity in an EventDriven activity inside of your state and then put the SetState activity under the Delay.