Process Definition deployment in DB without .bpmn file

Hello all
Looking for pointers on how to deploy a process definition to the database without requiring a local bpmn file. Is this a supported approach?

Thanks
Sanjay

You can use the deployment REST API and send it the raw XML.
That is what we do.