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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:41:01+00:00 2026-06-11T23:41:01+00:00

I have a very long running workflow that moves video files around between video

  • 0

I have a very long running workflow that moves video files around between video processing devices and then reports the files state to a database which is used to drive a UI

At times the users press a button on the UI to “Accept” a file into a video storage server. This involves copying a file from one server to another.]

They have asked if this activity can be cancelled.

I’ve looked at the wf4 documentation and I can’t see a way to roll back part of a workflow.

Is this possible and what technique should I use.

  • 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-06-11T23:41:02+00:00Added an answer on June 11, 2026 at 11:41 pm

    Okay, so let’s first say that the processing of “rolling back” what was already uploaded will have to be done by hand, so where ever you’re storing those chunks you’ll need to clean up by hand when they cancel.

    Now, on to the workflow itself, in my opinion you could setup your FlowChart like this:

    FlowChart

    Process Loop Part 1

    Process Loop Part 2

    Alright so let’s break down this workflow. The entire service should be correlated on some client key so that way you can start the service with Start once per client to keep the startup costs down.

    Next, when said client wants to start a transfer you’ll call BeginTransfer which will move into the transfer loop. The transfer loop is setup so that you can cancel between chunks if necessary by calling CancelTransfer.

    That same branch, in this model, is used to finish the transfer as well because it gets out of the loop, so when your done transferring chunks just call CancelTransfer (if you don’t like that just setup a different branch that looks exactly the same).

    Finally, when you’re in the process loop, you can SoftExit the entire workflow and shut it down so that you can kill it softly if there is necessary maintenance or when the client is finished with its connection it needs to call SoftExit to dispose of it.

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

Sidebar

Related Questions

I have a very long-running stored procedure in SQL Server 2005 that I'm trying
I have very long integer sequences that look like this (arbitrary length!): 0000000001110002220033333 Now
I have a very long javascript (so long that it's too long to escape
We have a very long form that has a number of fields and 2
As background I have a very long ID that too long to display in
I have a very long task that runs once the client/user/customer presses the submit
I have a long-running application that basically: read packets off network save it somewhere
I have a long running task that I need to implement on a webpage.
I have a scenario which is causing very long running processes and suspect it
I have a WPF (C# and .NET 4) application that has a long running

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.