Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 718059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:29:00+00:00 2026-05-14T05:29:00+00:00

This seems like a simple problem: I have a WF4 activity that guides the

  • 0

This seems like a simple problem: I have a WF4 activity that guides the user through a set of questions. After each question is displayed, the activity should be idled until the question is answered. After each question is answered, I want to prompt the user with the next question. (The next question is determined based on the answer to the previous question.)

To do this, I have a simple workflow activity that implements a Bookmark. I have a console app running the workflow using WorkflowApplication.Run, waiting for input, and then calling .ResumeBookmark.

What I need to do is to get the value of Current_Question_Text from the workflow when it becomes idle. I’ve set the WorkflowApplication.Idle property to a delegate and in that delegate, I’d like to get the text of the current question stored within the Activity. However, the output arguments are not available until the Completed method fires and the WorkflowApplicationIdleEventArgs don’t provide any information about the current state of data.

I’ve also looked at the Activity and WorkflowApplication variables in the Idle delegate and cannot see any way to get to the data that way.

Is there anyway to get data values from the Activity while it is idle?

Thanks,
David Burgett

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:29:01+00:00Added an answer on May 14, 2026 at 5:29 am

    There are a couple of ways you can do this. What works best depends on the circumstances.

    1. Explicitly save the variable to some external place like a database and have the client read it from there. Easy to do using a custom activity but adds another disconnect to your application.
    2. Use workflow persistence and property promotion to extract the value and store it in the workflow instance store. The promoted properties are not the nicest to work with and it requires using a WorkflowInstanceStore. Also the value is only updated when the workflow is persisted.
    3. Using a custom workflow tracking extension and extracting the value using a ActivityStateQuery. I suspect this would be the easiest approach to take in a lot of cases.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.