Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Windows Workflow
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Windows Workflow Discuss the new Windows Workflow in .NET 3.0 and later.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Workflow section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 20th, 2011, 10:19 AM
Registered User
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using bookamrk in rehosted workflow designer

Hello,
I'm using WF, I res-hosted the designer, and everything is fine till i need in my custom activities to wait a value when workflow is running, that what i made using BOOKMARK. i tried bookmark in ConsoleApplication and its work.
the following code i used in the main class in the ConsoleApplication:

Code:
                    AutoResetEvent syncEvent = new AutoResetEvent(false);
                    wa.Completed = delegate(WorkflowApplicationCompletedEventArgs r)
                    {
                        syncEvent.Set();
                    };
                    

                    wa.Run();
                        
                        wa.ResumeBookmark("bookmarkName", Console.ReadLine());

                    syncEvent.WaitOne();
..
but here in my rehosted project, i need to call many workflows. not only 1. and I can't specify it before runtime.
for this method:
wa.ResumeBookmark("bookmarkName", Console.ReadLine());
1st argument: bookmarks' names, i tried and i found i can name all bookmarks the same name.
About the 2nd argument, how can I pass the value for each workflow, and some workflows have more than 1 bookmark.
I have to read the value from many places, asp.net pages, DB and others.
Im sure there is something like these in WF 4.0, but i didnt find it. can u help me please :)
Thank you.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
charpter 16 KB Article Review & Approve workflow can't be found when create workflow basten BOOK: Professional Alfresco: Practical Solutions for Enterprise Content Management 0 July 14th, 2011 10:32 PM
Web Designer to UI Designer jitesh82 BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 April 16th, 2011 01:04 AM
Workflow Question realkewl BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 2 May 15th, 2009 09:24 AM
Rehosting WorkFlow Designer on Web Forms venkateswari Windows Workflow 2 November 13th, 2008 01:02 PM
Workflow bmains ASP.NET 1.x and 2.0 Application Design 2 May 15th, 2004 10:14 PM



All times are GMT -4. The time now is 03:02 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.