aboutsummaryrefslogtreecommitdiffstats
path: root/docs/developer_info/BPMN_Project_Structure.rst
diff options
context:
space:
mode:
authorseshukm <seshu.kumar.m@huawei.com>2018-08-30 18:47:37 +0800
committerSeshu Kumar M <seshu.kumar.m@huawei.com>2018-08-30 13:22:33 +0000
commit9d632ce8fe51bc7ebda2c58971e8d3b7ca78138c (patch)
tree946f4b173cc29d877ad3ce481ca475384ba85fb1 /docs/developer_info/BPMN_Project_Structure.rst
parentec230e7dddc0835b280cdefda41816113695124a (diff)
Fix the readthedocs
Fix to Increase the modularity of the developer info in readthedocs Issue-ID: SO-675 Change-Id: I9ade5a64c2c60207c38d63f44a583677924b8dd9 Signed-off-by: seshukm <seshu.kumar.m@huawei.com>
Diffstat (limited to 'docs/developer_info/BPMN_Project_Structure.rst')
-rw-r--r--docs/developer_info/BPMN_Project_Structure.rst47
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/developer_info/BPMN_Project_Structure.rst b/docs/developer_info/BPMN_Project_Structure.rst
new file mode 100644
index 0000000000..209ec727c3
--- /dev/null
+++ b/docs/developer_info/BPMN_Project_Structure.rst
@@ -0,0 +1,47 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. Copyright 2017 Huawei Technologies Co., Ltd.
+
+BPMN Project Structure
+=======================
+
+BPMN main process flow
+----------------------
+
+A BPMN main process flow is a top-level flow. All main process flows are under the src/main/resources/process folder.
+
+CreateVfModuleVolumeInfraV1 is a main process flow.
+
+.. image:: images/bpmn_project_structure_1.png
+
+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.
+
+BPMN subprocess flow
+---------------------
+
+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.
+
+The CreateVfModuleVolumeInfraV1 process flow is delivered with two custom subflows: DoCreateVfModuleVolumeV2 and DoCreateVfModuleVolumeRollback.
+
+.. image:: images/bpmn_project_structure_2.png
+
+Groovy scripts
+---------------
+
+There is one groovy script for each BPMN file. Groovy scripts are invoked by script tasks within the BPMN flows.
+
+.. image:: images/bpmn_project_structure_3.png
+
+Unit Tests
+-----------
+
+Normally, we create a unit test class for every flow. This one is missing a unit test for its rollback flow.
+
+.. image:: images/bpmn_project_structure_4.png
+
+Unit Test Resource Files
+------------------------
+
+Any files needed by the unit tests are kept under the src/test/resources/__files folder.
+
+.. image:: images/bpmn_project_structure_5.png \ No newline at end of file