locked
WCF + WF 4 - Resume a Workflow from a Client RRS feed

  • Question

  • Hi everybody,

    Imagine a Worflow hosted in IIS 6.0, 7.0 or WAS...  so which is accessible via WCF.

    From a client I reference Service using Disco. My WF service hosted in IIS 6.0 is accessible via HTTP.
    To instanciate a WF, from my service, I use this syntax :
    MyService myNewService = new MyService();
    myNewService.myMethod();

    So, all is basic...

    My Workflows are persisted via SQL. InstanceStore is configured on the Service Host... All is ok for that. I can find date into SQL Server.

    Now my question is how I can put a Workflow in waiting mode (I'm presently using Bookmark) and it seems be ok... but HOW CAN I RESUME the Workflow from a client ? So using myNewService ???

    I'm sure that it is easy bt I can't find THE solution...

    Monday, December 13, 2010 8:44 PM

Answers

  • Hi,

    ->"Now my question is how I can put a Workflow in waiting mode (I'm presently using Bookmark) and it seems be ok... but HOW CAN I RESUME the Workflow from a client ? "

    According to your description, it seems that you created your WCF contracts and service as a WF4 workflow wrapper. to invoke the bookmark, you need to create another method. this method will invoke the persisted workflow.

    However, you still need to take care the WCF instance management. see this article:
    http://msdn.microsoft.com/en-us/magazine/cc163590.aspx

    Personally, I would recommand you use WF4 service. rather than create your own WCF warpper. here is a sample demonstrating the WF4 service correlation.
    http://xhinker.com/post/WF4Correlate-Multiple-Receive-Activities.aspx

    It could be helpful to you.

    Regards
    MSDN Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
    Microsoft Windows Workflow Foundation 4.0 Cookbook
    • Marked as answer by AlanuBMVP Thursday, December 16, 2010 3:38 PM
    Thursday, December 16, 2010 6:17 AM

All replies