I created a custom EventListener Activity that creates a queue and then subscribes to it. However, when add a queue item to the queue, it is never processed by the activity. I also have a custom Scheduler Service, so I know work is being scheduled and executed for this workflow instance. The QueueNames are correct.
The workflow instance in question executes until my EventListiner activity. It then persists and unloads. After some external work is completed, an item is queued up and the workflow is reloaded and schedule for execution. It then persists and unloads without running my activity
This worked in Beta 2.2 and I haven't read anything that would indicate a change to how this worked.
Any help would be greatly appreciated.

Workflow Queue Item not being processed
quacka
David_Reynolds
the FileSystemWatcher sample works well with RC4; it would be interesting to test it with the persistence service.
Serge
narasiman_jayachandran_2b5374
Tom,
The activity causing problems is specialized for our system and requires a significant portion of our system to run. I am trying to pull it out of our system and into a smaller project, but currently have not been able to repro outside our system. If I can repro it, I will send you the projects.
Marc Jones
If I understand , you've probably upgraded WF from beta 2.2 to RC4; have you reloaded the persistence scripts to create you persistence db (perhaps a stupid question...)
socko
Azimuth
efratian
So I took the FileWatcher sample and with minor changes was able run the workflow in my system. Everything ran as expected. The first activity started and then waited for an event. It was unloaded. The FileWatcher Service then was triggered and it queued up an item for the event. The workflow was reloaded, the Workflow Executor was scheduled and ran and the workflow moved on.
I use some base classes for creating my activity library. My activity in question has the following hiearchary
Activity - SystemActivity - EventListenerActivity - EmployeeTaskActivity
The EventListenerActivity handles managing the queues and subscribing to them. So to check if I was doing something wrong in here, I updated the FileWatcherEvent activity to use EventListener as its base class. Everything worked fine again.
The item I am queing up is being persisted and reloaded with the worklow. When I inspect the queue info, the queue exists with my item in it and my activity as a subscriber. It just wont process.
I am completly stuck.
Please help!!!
robzappa
I have done all I can think of with my system.
I know the Queue exists after it is reloaded.
I know my activity is registered for item available.
I know something gets scheduled to run.
I subscribed to the RegisterForQueueItemArrived event and this event worked fine. It called my EventListener.OnEvent method.
I'll try adding persistence to the FileSystemWatcher sample and see if that still works.
Heidi Christiansen
A bug in your custom scheduler service ; have you tested your app with the default scheduler service
Serge