Can I recieve diagram of process (BPMN) through API?

I need to recieve diagram of process using Bonita’s API. Is it possible?

Diagrams only exist in Studio so no.

However if you interrogate the ProcessDefinition through API and/or REST this might give you the information you need.

regards
Seán

PS: As this reply answers your question, please mark as resolved.

Why would you want to do this?

I want to do this because we need to receive process diagram on BPM portal and note on diagram current state (task).

This is a feature of the Subscription Model and is not available in Community.

That being said I can imagine a scenario whereby for a case you could do the following (in pseudo code):

get case getActivities (API) getArchivedActivityInstances (API)

then sort them into order and create your own HTML that can display an SVG diagram of the process.

reference here

regards
Seán

PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved.