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 6867679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:20:23+00:00 2026-05-27T03:20:23+00:00

In our company we have a business process that needs to: Get data from

  • 0

In our company we have a business process that needs to:

  1. Get data from X
  2. Wait for user Y to do research
  3. Get data from Z based on step 2 data

In researching this, it seems like there are a few options to implement this in workflow.

  1. Add a delay activity between Step 1 (workflow activity) and Step 3 (workflow activity). Then during the PersistableIdle event, unload the worklow. When the user is done with step 2, re-load workflow from database.
  2. Same as #1 except use a bookmark instead of a delay activity.

Is there a better approch (1, 2 or another option)?

All of our other activities are AsyncCodeActivities, so I’m fairly sure they will not fire the PersistableIdle event (since they are in a no-persist zone), but I want to make sure the workflow is not accidentally unloaded in other cases. Is there any risk here? Is there anyway to create an activity that forces the workflow to unload?

  • 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-27T03:20:23+00:00Added an answer on May 27, 2026 at 3:20 am

    Is there a better approach (1, 2 or another option)?

    At first glance, #2 sounds like necessary. The reason to use bookmarks (or bookmarking activity of some kind, like Receive) is that they can be resumed any time. This allows for user Y’s research to end and the workflow to resume execution at any time (instead of being blocked until a Delay expires).

    The counterargument, that #1 may be necessary too, is that you may wish to set a time limit which triggers workflow actions (reminders being fired off, exceptions, cancellations, etc).

    How to decide? I think the answer is usually #3: Both

    Using Pick Activity is a great way to do both. Using Bookmarking activity in one PickBranch trigger, and Delay activity in the other PickBranch trigger, you can compose a workflow which will ‘handle whichever happens first – user Y, or timeout’.

    A secondary question you raise is ‘How do I stop a Workflow being unloaded when I don’t want it to be – is surprise workflow unloading a risk’?

    Well, that depends. If you are using WorkflowServiceHost, having your workflow unloaded doesn’t feel like a big risk, because the WorfklowServiceHost is smart enough to reload your workflow when it needs to do more work (handle an incoming message, or resume from delay).

    If you are not using WorkflowServiceHost, you are probably writing your host, you can either achieve the same effect with some work, or you can just prevent unloading from happening ever – when you write the host, you control the unload policy, via the events on WorkflowApplication

    Other miscellaneous points:
    -Asynchronous Code Activities do indeed prevent your workflow from persisting while they are doing asynchronous work. I don’t think they should be deliberately used as an anti-persistance mechanism though – if you want one of those, check out NoPersistZone activity.

    -There is no ‘Unload’ activity, but there is a ‘Persist’ activity. Workflows can say they want to save progress, but only the host gets to make the finally decision on when unloading happens.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just upgraded our company's domain controller from NT 4.0 to Windows 2008
For our company I'd like to have a Python based IRC bot which checks
I have an old project at our company that uses shell scripting a lot.
I have a server on our company intranet that runs JBoss. I want to
We (our company) have been noticing that between check-in's of code to our repository
At my company we have a group of 8 web developers for our business
Our company is developing a new application, which has a somewhat large business data
I have created a workflow service to handle some business process at my company.
We are trying to get ReSharper introduced to our company but it would have
I have a helpdesk package for our company that I am attempting to integrate

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.