提出问题提出问题
 

问题Setting Initiator In Comments

  • 2009年7月2日 14:44wexford 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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".
    • 已编辑wexford 2009年7月2日 14:45re-phrased
    •  

全部回复

  • 2009年7月2日 21:19David Mann [MVP]MVP, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    VS Wfs always run as SYSTEM.  You can do impersonation or RunWithElevatedPrivileges in code if you need to.
  • 2009年7月6日 9:39wexford 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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.