I was wondering whether it's possible to execute Sitecore workflow actions via the API. I can't use the approach from here: http://sdn.sitecore.net/Snippets/Workflow/Change%20the%20Workflow%20State%20on%20an%20Item%20via%20API.aspx (execute command that will trigger state change).
What I want is to programmatically create an item, and then set workflow state to "Awaiting for approval" for example, even if there is no command that has "Next Step" set to it.
Ideally, it would be something like
foreach (var action in awaitingForApprovalState.Actions)
{
action.Execute();
}