My workflow is composed of non-java (perl) tasks which are long running and may fail and would send notification of success or failure asyncronously.
I want to know the best way to
a) call out to the service and then enter a wait state
b) recieve a notification from the service on success/failure (JMS?)
c) retry the task on a timeout
The main results of the task are actually written to a netapp so data isn't an issue (and of course the results are written idempotently so retry isn't a problem).
I'm new to J2EE/JBOSS.
async functionality in jBPM can do this for you. It can either be JMS based or jBPM specific (JMS is my prefered way)
Read the docs, look at the testcases (source), search the forums and you will find a lot of detailed info, but most important, try..... you will learn a lot from that.