How to get the present Activity the workflowInstance is in
Assume I have a Seqential workflow defined
A->B->C->D
I processed the workflow till B and then closed the browser.
When I reopen the browser my worklist shoud show this workflowInstance is to be processed from Activity C .
how to get the info that C is the Active Activity?
I Can loop thru the activityEvents and get the Activity with Executing Status.Is there any otherway to avoid this looping?
[442 byte] By [
keshavbs] at [2007-12-23]
I feel since the framework knows the active state, it will be nice to expose it publicly.
I will be a lot easier.Can this requirement be addressed?
Jon,
I agree with using a tracking service because if you have 100s or 1000s of active workflows, you can't expect them to all be in memory.
A drill-down scenario and question:
Scenario
a) 2 people Able and Baker are looking at their tasklist (derived from the same tracking database query) and they both see the same task waiting for their action (i.e. a specific activity A in workflow W).
b) workflow W is a state machine workflow (because I'm more familiar with them) with each state being an EventDrivenActivity containing a HandleExternalEventActivity and a SetStateActivity (as a minimum).
Question
If Able and Baker use workflow W's local service to signal the workflow (i.e. the current EventDrivenActivty A), how can the client application and local service specifically target/signal EventDrivenActivity A? ...without creating a local service event for every state in workflow W.
If Able signals the local service/workflow before Baker (or visa versa), the workflow will advance and the person who signals the workflow after the other will actually be signalling Activity A+n.
Michael.
p.s. This is related to a question I posted here http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=736542&SiteID=1 but the discussion went sideways and the question wasn't answered.