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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:35:04+00:00 2026-05-27T10:35:04+00:00

I have a workflow that primarily consists of identical elements. Each element is defined

  • 0

I have a workflow that primarily consists of identical elements.
Each element is defined like this:

Workflow element

The workflow may simply stack these elements in a sequence, it may run them in parallel, it may have branching between them, etc. – total freedom for the workflow designer. The whole thing is hosted as a WCF service, but I would prefer not to rely on that, if at all possible.

The high level idea of this whole setup is the following:

  1. When the workflow starts, these elements start firing up, one after another, quickly skipping over the top condition branch. Completion of the previous element causes start of the next one – as defined in the workflow.
  2. At some point, when the condition [B] is right, an element might take the bottom branch and become waiting for a WCF call.
  3. Sooner or later, either all elements come to this kind of stop, or the workflow ends altogether.

What I need is to catch that moment when all elements stop to wait for WCF call.

At that point, I need to perform some calculations that will affect further flow of the workflow. Therefore, I need to catch that moment precisely.

Some notes:

  1. I guarantee that no WCF calls will come before I make those calculations. Therefore, possible race conditions connected to WCF calls are out of scope.
  2. I do not have an application that I control the control flow of. In other words, I am hosted in IIS, and therefore, am subject to restart without notice, and cannot setup timers, long-running loops, message pumps, and the like.
  3. I do not control the design of the workflow.
  4. However, I do totally control the design of the element. In fact, this element is actually a NativeActivity (that’s why the diagram is from Visio 🙂 that I control the source code of.
  5. I also control, to some extent, the hosting environment. That is, I can make modifications to the web application that the workflow is hosted in.
  6. The whole workflow is “attached” to a business object, and all elements have access to it.
  • 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-27T10:35:04+00:00Added an answer on May 27, 2026 at 10:35 am

    The best way to do this is to create an extension that is a TrackingParticipant. This extension will receive all the tracking records in the Track method. Then when it receives the WorkflowInstanceStateRecord and the state is “Idle” you will know that the workflow is idle. Activities can access this extension to receive data from it or call methods on it as well.

    This is the technique I used in the Introduction to State Machine Hands On Lab

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

Sidebar

Related Questions

I have a workflow that I want to looks something like this: / Worker
In ASP.NET MVC I have a controller that looks somehow like this: public class
I have a skelta workflow that has finished with errors according to the WorkflowExecutionReport.
i have created a workflow activity that do give the item creater of a
I have a Windows Workflow application that uses classes I've written for COM automation.
I have a very simple workflow that is just trying to send an email
I have a fairly straight-forward sequential approval workflow that has an EnableModificationActivity that is
I have created a custom workflow activity that copies attachments from a case to
I have a workflow created in Sharepoint designer that works fine when manually triggered.
I have a working workflow in CruiseControl.Net that successfully builds and tests an MSBuild

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.