OK....
The current flow is..
There are different workflows with respective to different APIs.
We have a java client in our API to call JBPM workflow which is deployed on JBPM server.
If we hit multiple request for the workflow using REST API then workflow runs simultaneously ( or asynchronously).
We don't want that functionality.
What we need is that if we hit multiple request for workflow( may be different or same workflow ) then it should go into the queue and then it will run one by one
So, my requirement is to implement a queue using any JMS which will add request to the queue for consumer.
And I guess this functionality will reside and should be implemented on JBPM side itself.
It should be synchronous that means it will not go for the second request until and unless first request gets success.
As per my understanding ...
Producer - REST API
Queue - JMS queue (should be in JBPM)
Consumer - JBPM/Any other technologies.
Please guide me If I am in wrong direction.