locked
Listen is not working well RRS feed

  • Question

  • I write a workflow based on .net 3.5 .

    I append two listen activities ,but the handleExternalEvent in the second listen doesn't work through I activitied the event!

    why?

    Wednesday, November 6, 2013 10:09 AM

Answers

  • I got it!!!!

    actually I wrote a mistake on customer persistence service..now it work well!

    Thursday, November 7, 2013 7:46 AM

All replies

  • and this is my tracking data:

    <Data>
            <Time>2013/11/7 1:56:51</Time>
            <EntityName>Workflow event</EntityName>
            <Body>Unloaded</Body>
          </Data>
          <Data>
            <Time>2013/11/7 1:56:51</Time>
            <EntityName>Workflow event</EntityName>
            <Body>Persisted</Body>
          </Data>
          <Data>
            <Time>2013/11/7 1:56:57</Time>
            <EntityName>Workflow event</EntityName>
            <Body>Loaded</Body>
          </Data>
          <Data>
            <Time>2013/11/7 1:57:14</Time>
            <EntityName>Workflow event</EntityName>
            <Body>Unloaded</Body>
          </Data>
          <Data>
            <Time>2013/11/7 1:57:14</Time>
            <EntityName>Workflow event</EntityName>
            <Body>Persisted</Body>
          </Data>

    Thursday, November 7, 2013 1:59 AM
  • now I find the place why this mistake occurred.

    when the first listen was over, i use WorkflowInstance.Unload function to persistent wf.

    if i explained this function ,the wf works well.

    now I am tring to find what it is the reason .

    final I hope I can re-use the unload function ..

    Thursday, November 7, 2013 3:37 AM
  • finally I found the reason why wf couldn't work well.

    my persistence function doesn't work well.

    when my first examine and approve operation was over,the PersistenceService didn't record this approved operation, so next time I load the wf ,it status still stay on wait for first approved operation.

    that the reason why my second approverd operation doesn't work.

    Now I try to find why persistence service doesn't work well....

    Thursday, November 7, 2013 7:10 AM
  • I got it!!!!

    actually I wrote a mistake on customer persistence service..now it work well!

    Thursday, November 7, 2013 7:46 AM
  • HI,

    In workflow services, persistence is a behavior that can be configured in the
    web.config file like so:

    <!--Set up SQL Instance Store-->
    <sqlWorkflowInstanceStore connectionString="Data Source=.\SQLExpress;Initial Catalog=InstanceStore;
    Integrated Security=True;Asynchronous Processing=True"/>
              
    <!--Set the TimeToUnload to 0 to force the WF to be unloaded. To have a durable delay, the workflow needs to be unloaded-->
    <workflowIdle timeToUnload="0"/>

    For more information, you can refer the sample

    http://msdn.microsoft.com/en-us/magazine/ff646977.aspx

    #Understanding Persistence in Windows Workflow Foundation

    http://blogs.msdn.com/b/kaevans/archive/2008/12/09/understanding-persistence-in-windows-workflow-foundation.aspx?Redirected=true

    Hope it can help you.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 7, 2013 8:07 AM
  • Hi,

    We are happy that your issue has been resolved. And thanks for sharing solution with us.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, November 7, 2013 8:09 AM