Revision history:
Introduced in QPR 2026.1
Imports given BPMN xml to given diagram level.
Synopsis:
PGModel.ImportBPMN2(DiagramId, BPMNxml, Parameters, out Log)
Parameters:
DiagramId: Integer or String. The id number or symbol of the diagram where the BPMN is imported to. Use 0 to import to the main level. The existing diagram content is cleared.
BPMNxml: String. The BPMN xml string to be imported.
Parameters: String. A semicolon separated list of parameters. There are no supported parameters currently.
Log: out array of String. The import log is returned in this parameter. Currently always empty.
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.ImportBPMN2(0, BPMNxml, "", oLog)