I am referring to products like Activiti, Camuda and light weight javascript implementation like bpmn-engine
https://www.npmjs.com/package/bpmn-engine.
Give an example of Activiti, designer could define the workflow with standard BPMN models, triggered by email/timer/etc, and transit to different tasks such as user input form, scripts and external functions. However, existing BPMN engines scalability would be limited by backend database and trigger types may not include firebase triggers, and function extension won't be as convenient as firebase deployment.
With all firebase features, I can see the potential to build a more scalable and extensible while lighter services than what above products offer.