This seems like a simple problem: I have WF4 activity that guides the user through a set of questions. After displaying each question, activity should be idle until the question is answered. After answering each question, I want to ask the user the following question. (The next question is determined based on the answer to the previous question.)
For this, I have a simple workflow that implements a bookmark. I have a console application executing a workflow using WorkflowApplication.Run, waiting for input and subsequent call to .ResumeBookmark.
I need to do to get the value of Current_Question_Text from a workflow when it becomes inactive. I set the WorkflowApplication.Idle property for the delegate, and in this case I would like to get the text of the current question stored in the Activity. However, the output arguments are not available until the Completed method is run and WorkflowApplicationIdleEventArgs provides any information about the current state of the data.
I also looked at the Activity and WorkflowApplication variables in the Idle delegate and see no way to get to the data this way.
In any case, to get data values from Activity during downtime?
Thank you David Burgett
source
share