Formular una preguntaFormular una pregunta
 

PreguntaSetting Initiator In Comments

  • jueves, 02 de julio de 2009 14:44wexford Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    How do I set the initiator in the comments of a custom workflow (built in VS 2008)?

    I can set other items with the Executor property but the Initiation of the workflow is always set to "System".
    • Editadowexford jueves, 02 de julio de 2009 14:45re-phrased
    •  

Todas las respuestas

  • jueves, 02 de julio de 2009 21:19David Mann [MVP]MVP, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    VS Wfs always run as SYSTEM.  You can do impersonation or RunWithElevatedPrivileges in code if you need to.
  • lunes, 06 de julio de 2009 9:39wexford Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    David thank you for replying.

    Do you have an example?

    In other parts of the workflow I can set the User ID in the Workflow history (e.g. updating an assigned Task) to be a user name other than System but for the Initiation of the workflow there seems to be no way to set the User ID.