I'm building a custom Sharepoint 2010 activity which does some business logic, and at the end of that process, it writes down a list item with some data. I need that activity to hold execution of the workflow until the list item changes (let's say until that data is reviewed and approved). Polling the list is unacceptable, so i tried the following solution...

Custom activity design

So the logic is that after activity's Execute method is executed, whileActivity1 keep the execution looping until handleExternalEventActivity1 event handler see that listItem Status column is changed to "approved". If status is not "approved", event handler should hold the execution until next event occurs...

With this design, I really can see that execution stops the first time, but when I change the Status value in the listItem, nothing happens.

Anyone can help me with this? I you have better solution for the design itself, that's acceptable too.

1

There are 1 answers

0
Ken On BEST ANSWER

See if this answer fit your needs. In any case, try to avoid using delay activities/while loop (it's not real time).