'In BPMN JS how to get process ID and process name

In addition to parsing XML, can I get the ID and name of the process through the API of BPMN?

At present, it is realized in the following ways.

Parse XML to get process name;Convert XML to JSON to get process name



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source