Microsoft 开发人员网络 > 论坛主页 > SharePoint - Workflow > OnWorkflowItemChanged not receiving events.
提出问题提出问题
 

问题OnWorkflowItemChanged not receiving events.

  • 2008年7月21日 12:33ONO-M 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    I've designed a simple WSS3.0 sequential WF (it happens the same with statemachine WF)
    for document review.

    When instantiated the WF writes a task containing a link to a custom form (that has been deployed through another feature), then a ListenActivity follows, waiting for the item to change by the mentioned form (i modify a property named Review).

    The correlation token for the OnWorkflowItemChanged activity is the same with the token for OnWorkflowActivated activity.

    When ran, i can see the task, i click the link and modify the Review property on the Item, but the event is never received. The delay on the other branch of the listen activity is big enough not to interfeere.

    What am i doing wrong here ?
    Thank you !

全部回复

  • 2008年7月21日 13:03ONO-M 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Some more info on this:
    It seems that if i change the property manually the workflow kicks off. But if i do it by the custom developed form it does not.

    I made sure the custom form changes the property - so what can it be ?


  • 2009年1月7日 19:28DensonHamilton 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    check your workflow correlation tokens
  • 2009年1月7日 19:29DensonHamilton 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I have heard that the OnWorkflowItemChanged must be in a loop
  • 2009年6月24日 10:27rikhullar 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi,
    I am facing same issue. I have a WPF client. One more observation is It gets the vent first time after i reset iis server i.e sharepoint services.
    After that i stop getting any new onWorkflowItemChanged event. However its working perfectly if i do it with sharepoint web client.
  • 2009年6月24日 11:41Serge Luca [MVP]MVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    I've just recreated a workflow with an onWorkflowItemChanged activity; the event fired when I update the list item manually, but not when I use the Object Model; it is an old bug that must be reported to the Sharepoint team; I'm using sp 2.
    Serge Luca; blog: http://www.redwood.be
  • 2009年6月25日 5:44rikhullar 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Is there any workaround to this??
    As this is like i can't have a UI for my SharePointWorkflow. I am also using Win2k3 with SP2.
  • 2009年7月2日 9:32rikhullar 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    ANy update on this???
    I need to get this resolved so that i can move forward.
  • 2009年7月2日 9:37Serge Luca [MVP]MVP用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    instead of using the Object Model, you may try to use the Web Services, according to this thread ("read this It works fine if I use the Lists web service to update the item...").

    Serge Luca
    Serge Luca; blog: http://www.redwood.be
  • 2009年7月2日 9:50rikhullar 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hmm can try this, But in this case objects are recieved as XML nodes and will need parsing for the same.
    Need to do more effort for the same task, Well i guess there is no other way out.