diff options
author | Lvbo163 <lv.bo163@zte.com.cn> | 2017-09-28 14:21:20 +0800 |
---|---|---|
committer | Lvbo163 <lv.bo163@zte.com.cn> | 2017-09-28 14:28:28 +0800 |
commit | abcc5213bec0a64964c6fe211579a46c9947f114 (patch) | |
tree | 6b24c314889b4c26c221387c6d6b087a5b8b2043 | |
parent | 1061c1fd447e4fe341cc3ade66556d82f9f77d22 (diff) |
add start and end event template
Add bpmn element start and end event template-test.bpmn20.xml
Issue-ID: SDC-414
Change-Id: I9fd2d610f7a4f21a0f88c3842a4c44f0e7762c7f
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
4 files changed, 19 insertions, 0 deletions
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml new file mode 100644 index 00000000..3735709c --- /dev/null +++ b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml @@ -0,0 +1,2 @@ +<endEvent id="${element.id}" name="${element.name}">
+</endEvent>
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml new file mode 100644 index 00000000..38489b0e --- /dev/null +++ b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml @@ -0,0 +1,8 @@ +<startEvent id="${element.id}" name="${element.name}">
+ <extensionElements>
+ #foreach( $param in ${element.parameters} )
+ <activiti:formProperty id="${param.name}"
+ name="${param.name}" default="${param.value}" type="string"></activiti:formProperty>
+ #end
+ </extensionElements>
+</startEvent>
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml index 7783ece8..c2125138 100644 --- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml +++ b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml @@ -7,6 +7,13 @@ targetNamespace="http://www.activiti.org/test">
<process id="${process.id}" isExecutable="true">
+ <!-- Perform bpmn elements -->
+ #foreach( $element in $process.elementList)
+ #parse(
+ "${templatePath}bpmn_element_${element.type}_template.xml"
+ )
+ #end
+
</process>
</definitions>
diff --git a/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml b/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml index e7084c6f..20766b8d 100644 --- a/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml +++ b/sdc-workflow-designer-server/src/test/resources/workflow/template-test.bpmn20.xml @@ -7,6 +7,8 @@ targetNamespace="http://www.activiti.org/test">
<process id="templateTest" isExecutable="true">
+ <!-- Perform bpmn elements -->
+
</process>
</definitions>
|