locked
workflow interaction with user

    Question

  • Hi,

    I have an wizard form (MdiParent with some child forms which are displayed step-by-step). When wizard form is opened, workflow is started. In every child form user produces some decission which should be "connected" with currently running workflow. This decissions are Boolean and will be handled in running workflow in current If-else activity (or other).

    I would like to know, how to provide this communication between UI (WinForms) and currently running workflow.
    It is enough, even when I get some good web article - I found lot of articles with HelloWorld examples for Workflows, which are nice but does not realy help.


    Thank a lot

    Saturday, March 28, 2009 9:41 AM

Answers

  • You need to use the HandleExternalEvent activity or create a custom queue activity, there are samples in the .net sdk

    http://cid-cde8aac35161dd0f.skydrive.live.com/self.aspx/P%c3%bablica/Communications.zip
    Frederico Regateiro
    Monday, March 30, 2009 1:54 PM
  • If you're running the workflow on a server, you can exchange data between the WF and your WinForm through the WCF send/receive activities available under v3.5.  You'll have to manually set the workflow context.  

    From what I remember seeing in an MS video, that's the the suggested way to go under client/server with 3.5. 

    There was a great example here that really helped me out showing how all these techs can work together:

    http://www.codeplex.com/LayerSample


    If it's all on the client, I think you still have to used the HandleExternalEvent or custom queue activity that fregateiro mentioned. 
    Tuesday, March 31, 2009 8:12 PM

All replies

  • You need to use the HandleExternalEvent activity or create a custom queue activity, there are samples in the .net sdk

    http://cid-cde8aac35161dd0f.skydrive.live.com/self.aspx/P%c3%bablica/Communications.zip
    Frederico Regateiro
    Monday, March 30, 2009 1:54 PM
  • If you're running the workflow on a server, you can exchange data between the WF and your WinForm through the WCF send/receive activities available under v3.5.  You'll have to manually set the workflow context.  

    From what I remember seeing in an MS video, that's the the suggested way to go under client/server with 3.5. 

    There was a great example here that really helped me out showing how all these techs can work together:

    http://www.codeplex.com/LayerSample


    If it's all on the client, I think you still have to used the HandleExternalEvent or custom queue activity that fregateiro mentioned. 
    Tuesday, March 31, 2009 8:12 PM