Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Windows Workflow
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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.





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 02:02 PM
Workflow bmains ASP.NET 1.x and 2.0 Application Design 2 May 15th, 2004 10:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.