I'm not sure if this is exactly what you are looking for but I have a simple web app which runs a JBPM process attached here: https://community.jboss.org/thread/217311?tstart=0
It depends on having jboss and jbpm installed via the jbpm-installer and having the process deployed to Guvnor.
HTH