Microsoft Developer Network > Página principal de foros > SharePoint - Workflow > Very basic workflow cycles over and over and over
Formular una preguntaFormular una pregunta
 

RespondidaVery basic workflow cycles over and over and over

  • martes, 30 de junio de 2009 14:26Dave Pyett Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Afternoon all!

    I have created a very basic workflow that runs against a custom list when a item is changed.  This workflow is designed to finalise a change request through a column called Change Status (which cannot be edited by the end users):

    If 'Documented' = No
    Stop workflow and log to history
    Else
    Set Change Status to 'Completed'
    Email assignee with details
    Stop workflow and log to history.

    'Documented' is a simple drop down choice field with Yes|No as the options.

    When I edit an item and select Yes to the Documented field, the workflow kicks in and sends the email.  It then sends another email and another and another............until I manually delete the item by which time, I usually have a hundred or more emails sitting in my inbox.

    I would have thought with the lines (Stop workflow...) it would only ever send 1 email but this is not the case.

    Any ideas?  I'm probably missing something simple here.

    Using: WSS 3.0 and SharePoint Designer 2007
    SharePoint Administrator | SharePoint Fan http://davepyett.wordpress.com - Follow me on twitter: twitter.com/dpyett

Respuestas

  • martes, 30 de junio de 2009 21:16Stunpals Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Respondida

    Could you not set the WF to start on creation and then use the Action - Wait for Field to change on current item? You then set the value you are waiting for. This way the WF starts only one time and your user only gets 1 email.

    • Marcado como respuestaDave Pyett jueves, 02 de julio de 2009 8:55
    •  

Todas las respuestas