views:

18

answers:

0

We're using Drools to manage the state of orders that we place with a 3rd party, there can be many orders at once obviously and I was wondering what the best way of keeping track of them is?

We have various events through the lifecycle of the order and the flow waits at each one for a flow event to trigger it into the next state.

Currently we keep a hashmap of the orders and look up the flow thread from that, but it doesn't feel right to me.

How do others keep track of multiple flows when they are waiting for events to move them on to the next state.