We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-created component automatically completes the first step in workflow, which then sends the workflow down a path to exit workflow.
The problem I now have is that this only works when the user doing the original creation is a system admin, with workflow privileges. When they are not, the item stays in workflow.
I think I can get around this by doing the auto-creation by impersonating the system account, which then would have the priveledges, but can't work out how to write it. Event code is in VB.Net, using Tridion 2009 SP1