The system.workflow interface provides access to workflow functions.
system.workflow
The most commonly used functions include:
system.workflow.openJob()
system.workflow.openTaskAndGotoForm()
system.workflow.completeTask()
system.workflow.openJobAndCompleteFirstTask()
The Workflow Extended API tutorial details additional workflow functions.