Of course you can do it, but you will need to glue all the components using the APIs. You will need to embed the web designer into your application and write the mechanisms to store the process defintion somewhere where your application can pick it up and via APIs start it .
Cheers