both are 'valid', but you can also look at jBPM 3.2.3. Preliminary support for webservices is there. But you have the overhead of webservices without the advantage of transactions like with ejb