Revision history:
Introduced in QPR 2026.1
Exports BPMN 2 xml from given diagram level.
Synopsis:
PGModel.ExportBPMN2(DiagramId, Parameters, out BPMNxml, out Log)
Parameters:
DiagramId: Integer or String. The id number or symbol of the diagram to be exported. Use 0 to export the main level.
Parameters: String. A semicolon separated list of parameters. Currently supported parameters are:
•ALLINFORMATIONITEMS: Boolean. If true or 1, all information items are exported. If false or 0, no information items are exported.
BPMNxml: out String. The BPMN xml string is returned in this parameter.
Log: out array of String. The export log is returned in this parameter.
Required Rights:
System or model administrator.
Return Values:
Below are listed the return values that this function can return:
RV_SUCCESS
RV_ELEMENT_NOT_FOUND
RV_ELEMENT_IS_NOT_SUBPROCESS
RV_ACCESS_DENIED
RV_DIAGRAM_IS_NOT_BPMN
RV_MODEL_IS_NOT_BPMN
RV_DIAGRAM_INSTANCES_ARE_NOT_SUPPORTED
RV_INCORRECT_ELEMENT_TYPE
Example Procedure:
iResult = PGModel.ExportBPMN2(0, "ALLINFORMATIONITEMS=1", oBPMNxml, oLog)