diff options
author | 2017-12-14 14:43:59 +0800 | |
---|---|---|
committer | 2017-12-14 14:43:59 +0800 | |
commit | c4e228b35d31f095f82eef54e8391762d59a3d3d (patch) | |
tree | 8d7a781b6f3871192e5f2422721da9218eeabf2c /sdc-workflow-designer-server/src/main/resources | |
parent | 6730f94e26a84c78c3225d05f66b5347c19c613f (diff) |
code format
code format for workflow converter
Issue-ID: SDC-753
Change-Id: If1a128265c263761d0fa5030c0a96a74912a3a6a
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-server/src/main/resources')
4 files changed, 18 insertions, 2 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 index 3735709c..223542c4 100644 --- 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 @@ -1,2 +1,3 @@ +
<endEvent id="${element.id}" name="${element.name}">
</endEvent>
diff --git a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml index ee2365ec..cb952098 100644 --- a/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml +++ b/sdc-workflow-designer-server/src/main/resources/bpmn-templates/bpmn_element_intermediateCatchEvent_template.xml @@ -1,6 +1,14 @@ <intermediateCatchEvent id="${element.id}" name="${element.name}">
<timerEventDefinition>
- <timeDuration><![CDATA[${element.timerEventDefinition.timeDuration}]]></timeDuration>
- </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>
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 index 38489b0e..18053155 100644 --- 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 @@ -1,3 +1,4 @@ +
<startEvent id="${element.id}" name="${element.name}">
<extensionElements>
#foreach( $param in ${element.parameters} )
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 3cb11250..66a5f1a7 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 @@ -20,6 +20,12 @@ )
#end
+ <!-- Perform bpmn sequence flow -->
+ #foreach( $sequenceFlow in $process.sequenceFlowList)
+ #parse(
+ "${templatePath}bpmn_sequenceFlow_template.xml"
+ )
+ #end
</process>
</definitions>
|