There are several tecniques, depending on what do you want to achieve, for that reason, you need to be more specific on what your requirements are. We can solve them one at the time depending on your requirements for each of them. Remember that jBPM is pure java, so the same principles applies like in any other application that uses a Database and handle stateful data.
Cheers