Common context in workflows

A have a bunch of workflows which should be run based on some rules. For example workflows for the same object should be run only one at a time (queue).
Is there a shared context visible in all workflow?
Is this context stored in database?
(I could use singleton bean, but beans are not shared across multiple instance of microservice with Flowable embedded)
How can I model some form of queues for workflows?