I'm attempting to figure the same thing out. The examples on how to fork, join, task.end(), etc are great and easy to follow. But getting it to work in a webapp is taking some time to figure out. I saw this tutorial on the wiki that may be useful to you.
Any of you have developed web application using Struts and JBPM as workflow engine?
If so could you please share me the sample application.
Thanks in Advance
Search the Fine WIki