Microsoft Developer Network > Página Inicial dos Fóruns > SharePoint - Workflow > OnWorkflowItemChanged not receiving events.
Fazer uma PerguntaFazer uma Pergunta
 

PerguntaOnWorkflowItemChanged not receiving events.

  • segunda-feira, 21 de julho de 2008 12:33ONO-M Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    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 !

Todas as Respostas

  • segunda-feira, 21 de julho de 2008 13:03ONO-M Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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 ?


  • quarta-feira, 7 de janeiro de 2009 19:28DensonHamilton Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    check your workflow correlation tokens
  • quarta-feira, 7 de janeiro de 2009 19:29DensonHamilton Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    I have heard that the OnWorkflowItemChanged must be in a loop
  • quarta-feira, 24 de junho de 2009 10:27rikhullar Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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.
  • quarta-feira, 24 de junho de 2009 11:41Serge Luca [MVP]MVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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
  • quinta-feira, 25 de junho de 2009 5:44rikhullar Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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.
  • quinta-feira, 2 de julho de 2009 9:32rikhullar Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    ANy update on this???
    I need to get this resolved so that i can move forward.
  • quinta-feira, 2 de julho de 2009 9:37Serge Luca [MVP]MVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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
  • quinta-feira, 2 de julho de 2009 9:50rikhullar Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    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.