add data in BDM from controller

I have requirement to call external API to get data back in my init process form. For some reason, I can not use connector. So I build custom widget to call API in controller. When I get data back in controller, I need to add data in BDM. Is there a way to do this?

Thanks!

I understand that you are trying to send data from a form to a process and then store it as a business variable. For this, you need to leverage contracts in your process, you can check the official documentation to get started.