logo search
требования / Zadanie_na_kursovuyu_i_laboratornye_raboty / Методология программной инженерии (курсовая и лабораторные работы) / BPMN2

15.3.1 Document Structure

A domain-specific set of model elements is interchanged in one or more BPMN files. The root element of each file MUST be <bpmn:definitions>. The set of files MUST be self-contained, i.e., all definitions that are used in a file MUST be imported directly or indirectly using the <bpmn:import> element.

Each file MUST declare a “targetNamespace” that MAY differ between multiple files of one model.

BPMN files MAY import non-BPMN files (such as XSDs and WSDLs) if the contained elements use external definitions.

Example:

main.bpmn

<?xml version="1.0" encoding="UTF-8"?>

<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL” targetNamespace="sample1.main" xmlns:main="sample1.main" xmlns:s1="sample1.semantic1"> <bpmn:import location="semantic1.bpmn" namespace="sample1.semantic1"

importType="http://www.omg.org/spec/BPMN/20100524/MODEL” /> <bpmn:import location="diagram1.bpmn" namespace="sample1.diagram1"