From abcc5213bec0a64964c6fe211579a46c9947f114 Mon Sep 17 00:00:00 2001 From: Lvbo163 Date: Thu, 28 Sep 2017 14:21:20 +0800 Subject: 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 --- .../resources/bpmn-templates/bpmn_element_endEvent_template.xml | 2 ++ .../resources/bpmn-templates/bpmn_element_startEvent_template.xml | 8 ++++++++ .../src/main/resources/bpmn-templates/bpmn_template.xml | 7 +++++++ .../src/test/resources/workflow/template-test.bpmn20.xml | 2 ++ 4 files changed, 19 insertions(+) create mode 100644 sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml create mode 100644 sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml (limited to 'sdc-workflow-designer-server/src') 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 @@ + + 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 @@ + + + #foreach( $param in ${element.parameters} ) + + #end + + 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"> + + #foreach( $element in $process.elementList) + #parse( + "${templatePath}bpmn_element_${element.type}_template.xml" + ) + #end + 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"> + + -- cgit 1.2.3-korg