Is there any API that can be used in a program to generate a BPM process?