Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Delay Activity in StateMachine Workflow only wakes up after onTaskChanged

$
0
0

Hi all,

I am creating a simple state machine workflow to send email reminders.

Its like

State 1: (InIt) 'Create Task'

State 2: (Event1) 'OnTaskChanged',  IfElse with 'Set State' activity (set to state 3)

             (Event2) 'DelayActivity' (set to 10 seconds), Set State (Set to state 2)

State 3: (init) 'Complete Task'

State 4: End State

Correlation Token : TokenOne and OwnerActivity is set to the name of the workflow for 'create task' and 'onTaskchanged'.

Scenario 1: Works if there is no 'DelayActivity' event and the workflow goes to 'completed' state.  Invokes the onTaskChanged event.

Scenario 2: If I do add the delayactivity then nothing happens ( I do have log history comments after delay activity.) till I update the 'task item' and then it comes out of the delay activity (might be waking up) and that's it.... done... workflow remains in 'In Progress' state forever. Never invokes the onTaskChanged event.

Note: When I am debugging, I am attaching owstimer.

Folks any idea?



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>