1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2017 Huawei Technologies Co., Ltd.
6 =======================
11 A BPMN main process flow is a top-level flow. All main process flows are under the src/main/resources/process folder.
13 CreateVfModuleVolumeInfraV1 is a main process flow.
15 .. image:: ../images/bpmn_project_structure_1.png
17 Open BPMN files with the camunda modeler (standalone application). To launch the modeler from eclipse, right-click→open-with→Other→Browse. Select Check the boxes on the dialog so that eclipse will open all .bpmn files with the camunda-modeler executable.
22 A BPMN subprocess flow is meant to be invoked by other flows (either main process flows or other subprocess flows). All subprocess flows are under the src/main/resources/subprocess folder.
24 The CreateVfModuleVolumeInfraV1 process flow is delivered with two custom subflows: DoCreateVfModuleVolumeV2 and DoCreateVfModuleVolumeRollback.
26 .. image:: ../images/bpmn_project_structure_2.png
31 There is one groovy script for each BPMN file. Groovy scripts are invoked by script tasks within the BPMN flows.
33 .. image:: ../images/bpmn_project_structure_3.png
38 Normally, we create a unit test class for every flow. This one is missing a unit test for its rollback flow.
40 .. image:: ../images/bpmn_project_structure_4.png
42 Unit Test Resource Files
43 ------------------------
45 Any files needed by the unit tests are kept under the src/test/resources/__files folder.
47 .. image:: ../images/bpmn_project_structure_5.png