Sample Java application with activiti workflow

is there any sample web application with activiti workflow configured. i have a web application where a form requries two levels of approval . How to configure activiti in Java application.I understood the bpmn . But it would be great if i get any sample