paed01 / bpmn-engine

BPMN 2.0 execution engine. Open source javascript workflow engine.
MIT License
893 stars 168 forks source link

What is the DB support to use along with the BPMN Engine #164

Closed RameshRM closed 1 year ago

RameshRM commented 1 year ago

I am planning to use this in prod setup, i am not finding the DB Support to store the state, can you point to the relevant docs

paed01 commented 1 year ago

Check docs Api/getState.

Save and recover state in a database of your choice.

RameshRM commented 1 year ago

Sorry let me clarify, getState retrievees the state from the BPMN Engine, got that, Which DBs are supported, how is the DB client wired up ? can you share some light on that ?

paed01 commented 1 year ago

At Onify we use elasticsearch and postgres. We select different properties from the state as columns and store the entire state as a blob.

paed01 commented 1 year ago

The engine is built for executing bpmn-schemas, so there is no built in support for DB. Separation of concern.