blob: 23916093c2e2fce9629ef01c3928f7558cd059ca [file] [log] [blame]
seshukmcb4f8702018-08-21 20:49:19 +08001.. 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.
4
5BPMN Project Structure
6=======================
7
8BPMN main process flow
9----------------------
10
11A BPMN main process flow is a top-level flow. All main process flows are under the src/main/resources/process folder.
12
13CreateVfModuleVolumeInfraV1 is a main process flow.
14
seshukmfe525992018-09-11 10:14:30 +080015.. image:: ../images/bpmn_project_structure_1.png
seshukmcb4f8702018-08-21 20:49:19 +080016
17Open BPMN files with the camunda modeler (standalone application). To launch the modeler from eclipse, right-clickopen-withOtherBrowse. Select Check the boxes on the dialog so that eclipse will open all .bpmn files with the camunda-modeler executable.
18
19BPMN subprocess flow
20---------------------
21
22A 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.
23
24The CreateVfModuleVolumeInfraV1 process flow is delivered with two custom subflows: DoCreateVfModuleVolumeV2 and DoCreateVfModuleVolumeRollback.
25
seshukmfe525992018-09-11 10:14:30 +080026.. image:: ../images/bpmn_project_structure_2.png
seshukmcb4f8702018-08-21 20:49:19 +080027
28Groovy scripts
29---------------
30
31There is one groovy script for each BPMN file. Groovy scripts are invoked by script tasks within the BPMN flows.
32
seshukmfe525992018-09-11 10:14:30 +080033.. image:: ../images/bpmn_project_structure_3.png
seshukmcb4f8702018-08-21 20:49:19 +080034
35Unit Tests
36-----------
37
38Normally, we create a unit test class for every flow. This one is missing a unit test for its rollback flow.
39
seshukmfe525992018-09-11 10:14:30 +080040.. image:: ../images/bpmn_project_structure_4.png
seshukmcb4f8702018-08-21 20:49:19 +080041
42Unit Test Resource Files
43------------------------
44
45Any files needed by the unit tests are kept under the src/test/resources/__files folder.
46
seshukmfe525992018-09-11 10:14:30 +080047.. image:: ../images/bpmn_project_structure_5.png