diff options
author | vempo <vitaliy.emporopulo@amdocs.com> | 2018-07-24 17:34:04 +0300 |
---|---|---|
committer | vempo <vitaliy.emporopulo@amdocs.com> | 2018-07-25 11:39:10 +0300 |
commit | a52d50e788792a63e97a9176ab319d53db7a2853 (patch) | |
tree | b1c2222cacf4b8192aea16d1e0315b1f005c5347 /deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates | |
parent | 3c2665debb400aef7f0ed9e235698d2ff9f859db (diff) |
Replaced old implementation at root
Old project files and directories has been moved
under 'deprecated-workflow-designer'. The old project
is not built by the CI anymore, but can be still built manually.
New modules/directories have been moved up and integrated with
the CI system.
Change-Id: I1528c792bcbcce9e50bfc294a1328a20e72c91cf
Issue-ID: SDC-1559
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates')
13 files changed, 118 insertions, 0 deletions
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml new file mode 100644 index 00000000..ad9f9fe2 --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_dataObject_template.xml @@ -0,0 +1,5 @@ + <dataObject id="${dataObject.id}" name="${dataObject.name}"> + <extensionElements> + <activiti:value><![CDATA[${dataObject.value}]]></activiti:value> + </extensionElements> + </dataObject>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_endEvent_template.xml new file mode 100644 index 00000000..4ad64f12 --- /dev/null +++ b/deprecated-workflow-designer/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>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml new file mode 100644 index 00000000..aecfbdfd --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorEndEvent_template.xml @@ -0,0 +1,3 @@ + <endEvent id="${element.id}" name="${element.name}"> + <errorEventDefinition errorRef="${element.parameter.value}" /> + </endEvent>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml new file mode 100644 index 00000000..d73ee333 --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_errorStartEvent_template.xml @@ -0,0 +1,3 @@ + <startEvent id="${element.id}" name="${element.name}"> + <errorEventDefinition errorRef="${element.parameter.value}" /> + </startEvent>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml new file mode 100644 index 00000000..68fc388e --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_exclusiveGateway_template.xml @@ -0,0 +1 @@ + <exclusiveGateway id="${element.id}" name="${element.name}"></exclusiveGateway>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml new file mode 100644 index 00000000..5c4739f5 --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml @@ -0,0 +1,13 @@ + <intermediateCatchEvent id="${element.id}" name="${element.name}"> + <timerEventDefinition> +#if (${element.timerEventDefinition.timeDuration}) + <timeDuration><![CDATA[${element.timerEventDefinition.timeDuration}]]></timeDuration> +#end +#if (${element.timerEventDefinition.timeDate}) + <timeDate><![CDATA[${element.timerEventDefinition.timeDate}]]></timeDate> +#end +#if (${element.timerEventDefinition.timeCycle}) + <timeCycle><![CDATA[${element.timerEventDefinition.timeCycle}]]></timeCycle> +#end + </timerEventDefinition> + </intermediateCatchEvent>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml new file mode 100644 index 00000000..b3e5164b --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_parallelGateway_template.xml @@ -0,0 +1 @@ +<parallelGateway id="${element.id}" name="${element.name}"></parallelGateway>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml new file mode 100644 index 00000000..7d3ace10 --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_restTask_template.xml @@ -0,0 +1,33 @@ + <serviceTask id="${element.id}" name="${element.name}" + activiti:class="${element.handler}"> + <extensionElements> + <activiti:field name="url"> + <activiti:string><![CDATA[$!{element.baseUrl}]]></activiti:string> + </activiti:field> + <activiti:field name="name"> + <activiti:string><![CDATA[$!{element.serviceName}]]></activiti:string> + </activiti:field> + <activiti:field name="version"> + <activiti:string><![CDATA[$!{element.serviceVersion}]]></activiti:string> + </activiti:field> + <activiti:field name="path"> + <activiti:string><![CDATA[$!{element.path}]]></activiti:string> + </activiti:field> + <activiti:field name="method"> + <activiti:string><![CDATA[$!{element.method}]]></activiti:string> + </activiti:field> +#if (${element.produces}) + <activiti:field name="accept"> + <activiti:string><![CDATA[${element.produces}]]></activiti:string> + </activiti:field> +#end +#if (${element.consumes}) + <activiti:field name="contentType"> + <activiti:string><![CDATA[${element.consumes}]]></activiti:string> + </activiti:field> +#end + <activiti:field name="parameters"> + <activiti:string><![CDATA[${element.parameters}]]></activiti:string> + </activiti:field> + </extensionElements> + </serviceTask>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml new file mode 100644 index 00000000..cd29ecdf --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_scriptTask_template.xml @@ -0,0 +1,3 @@ + <scriptTask id="${element.id}" name="${element.name}" scriptFormat="${element.scriptFormat}" activiti:autoStoreVariables="false"> + <script><![CDATA[${element.script}]]></script> + </scriptTask>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml new file mode 100644 index 00000000..eb11df2e --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_serviceTask_template.xml @@ -0,0 +1,14 @@ + <serviceTask id="${element.id}" name="${element.name}" activiti:class="${element.className}"> + <extensionElements> +#foreach( $input in ${element.inputs} ) + <activiti:field name="${input.name}"> + <activiti:string><![CDATA[${input.value}]]></activiti:string> + </activiti:field> +#end +#foreach( $output in ${element.outputs} ) + <activiti:field name="${output.name}"> + <activiti:string><![CDATA[${output.value}]]></activiti:string> + </activiti:field> +#end + </extensionElements> + </serviceTask>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml new file mode 100644 index 00000000..15f13042 --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_startEvent_template.xml @@ -0,0 +1,7 @@ + <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>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml new file mode 100644 index 00000000..d103997c --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_sequenceFlow_template.xml @@ -0,0 +1,5 @@ + <sequenceFlow id="${sequenceFlow.id}" sourceRef="${sequenceFlow.sourceRef}" targetRef="${sequenceFlow.targetRef}"> +#if(${sequenceFlow.condition} && ${sequenceFlow.condition} != '') + <conditionExpression xsi:type="tFormalExpression"><![CDATA[${sequenceFlow.condition}]]></conditionExpression> +#end + </sequenceFlow>
\ No newline at end of file diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml new file mode 100644 index 00000000..b2c7a310 --- /dev/null +++ b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_template.xml @@ -0,0 +1,28 @@ +#set( $bpelvar = "$bpelvar" ) +<?xml version="1.0" encoding="UTF-8"?> +<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" + xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" + xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" + expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test"> + <process id="${process.id}" isExecutable="true"> + <!-- dataObjects --> +#foreach( $dataObject in $process.dataObjectList) +#parse("${templatePath}bpmn_dataObject_template.xml") + +#end + + <!-- Perform bpmn elements --> +#foreach( $element in $process.elementList) +#parse("${templatePath}bpmn_element_${element.type}_template.xml") + +#end + + <!-- Perform bpmn sequence flow --> +#foreach( $sequenceFlow in $process.sequenceFlowList) +#parse("${templatePath}bpmn_sequenceFlow_template.xml") + +#end + + </process> +</definitions> |