Skip to content

Commit d6fd807

Browse files
author
matthias.weidlich
committed
update on xpdl export
git-svn-id: http://oryx-editor.googlecode.com/svn/trunk@1020 d672c736-503d-0410-a38a-9366997c882b
1 parent e3e2218 commit d6fd807

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

src/xslt/BPMN2XPDL.xslt

+29-2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,25 @@
7878
</xpdl:Object>
7979
</xsl:template>
8080

81+
<!-- **************************** Template for determing containing lane recursively ****************** -->
82+
<xsl:template name="getParentLane">
83+
<xsl:param name="node" />
84+
<xsl:variable name="parentRef" select="$node/a[@rel='raziel-parent']" />
85+
<xsl:variable name="parent" select="/div[@class='processdata']/div[@id=concat('#',$parentRef)]" />
86+
<xsl:choose>
87+
<xsl:when test="$parent/span[@class='oryx-type']='http://b3mn.org/stencilset/bpmn1.1#Lane'">
88+
<xsl:value-of select="$parent/@id"/>
89+
</xsl:when>
90+
<xsl:otherwise>
91+
<xsl:call-template name="getParentLane">
92+
<xsl:with-param name="node" select="$parent"/>
93+
</xsl:call-template>
94+
</xsl:variable>
95+
</xsl:otherwise>
96+
</xsl:choose>
97+
</xsl:template>
98+
99+
81100
<!-- **************************** Template for NodeGraphicsInfo element ****************** -->
82101
<xsl:template name="nodeGraphicsInfos">
83102
<xsl:param name="node" />
@@ -462,10 +481,15 @@
462481
<xsl:for-each select="$Pools">
463482
<!-- <xsl:variable name="id" select="span[@class='oryx-id']" /> -->
464483
<xsl:variable name="id" select="@id" />
465-
<xpdl:Pool
484+
<!-- <xpdl:Pool
466485
Id="{$id}"
467486
Name="{span[@class='oryx-name']}"
468487
Process="{span[@class='oryx-processRef']}"
488+
BoundaryVisible="{span[@class='oryx-boundaryvisible']}"> -->
489+
<xpdl:Pool
490+
Id="{$id}"
491+
Name="{span[@class='oryx-name']}"
492+
Process="{concat($id,'_process')}"
469493
BoundaryVisible="{span[@class='oryx-boundaryvisible']}">
470494
<xsl:variable name="participantRef" select="span[@class='oryx-participantRef']" />
471495
<xsl:if test="string-length(normalize-space($participantRef))>0">
@@ -609,8 +633,11 @@
609633
<xsl:variable name="enableInstanceCompensation" select="span[@class='oryx-enableinstancecompensation']"/>
610634
<xsl:variable name="queryLanguage" select="span[@class='oryx-querylanguage']"/>
611635
<xsl:variable name="expressionLanguage" select="span[@class='oryx-expressionlanguage']"/>
612-
<xpdl:WorkflowProcess
636+
<!-- <xpdl:WorkflowProcess
613637
Id="{span[@class='oryx-processRef']}"
638+
Name="{span[@class='oryx-processName']}"> -->
639+
<xpdl:WorkflowProcess
640+
Id="{concat(@id,'_process')}"
614641
Name="{span[@class='oryx-processName']}">
615642
<xsl:if test="string-length(normalize-space($suppressJoinFailure))>0">
616643
<xsl:attribute name="SuppressJoinFailure">

0 commit comments

Comments
 (0)