> i need to create the BPMN and the BPMN_diagram files by writing. My
> problem is how can generate IDs of the created process.
You don't need to with the generation API. See my previous message. Also
take a look at the sample that generates BPMN from a BPEL file for an
example of use of the generation API: