| Make sure you look at the getting started page |
The Ad hoc Workflows API enables other confluence plugins to interact with Ad hoc Workflows to enquiry and manipulate states, task and approvals information and to get notification of workflows events.
You can look at the javadocs and the Open Source Workflow Utilities Plugin to see how it is used.
Ready to go? Have a look at the Getting Starter page.
Object Model
All the workflow information is associated to Pages and Blog posts. The higher level entity is a State, which can be assigned, and contains Tasks, Approvals and Rejections.

Javadocs
Have a look at the javadocs.
Reference Implementation
The Workflow Utilities Plugin is an Open Source plugin which you can use as an example on how to integrate your plugin.
Labels:
None