Any Java API similar to Camunda

Looking for a Java API that would allow me to generate a BPM process definition and save to DB instead of file. Similar to