Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
I just wanted to make quick post about starting the workflow from code. You might want to use this stuff in your eventhandlers for starting workflows automatically in some weird scenarios. But no more explaining since this is pretty straightforward. Here's the code:
|
|
In my example I start approval workflow. So I'll get my SPUser who will be set to CC in the workflow and then find the right workflow association. It's important to understand that the workflow needs to be correctly set in that list... without it this stuff won't work. You can test it by starting workflow manually and see if it's working.
It was quick post about working eventhandlers and workflows... those are pretty important part of MOSS 2007.
Anyways... happy hacking!
J