diff options
Diffstat (limited to 'sdc-workflow-designer-server/src')
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>
|