MSDN > 論壇首頁 > 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日 下午 01: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日 下午 07:28DensonHamilton 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    check your workflow correlation tokens
  • 2009年1月7日 下午 07: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日 上午 05: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日 上午 09:32rikhullar 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    ANy update on this???
    I need to get this resolved so that i can move forward.
  • 2009年7月2日 上午 09: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日 上午 09: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.