Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Extended to migrate a state node to a service task in bpmn2.
Browse files Browse the repository at this point in the history
  • Loading branch information
eschabell committed Jan 25, 2011
1 parent e64cb92 commit b2c4b98
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/main/resources/jpdl3-bpmn2.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="jpdl:state">
<serviceTask>
<xsl:attribute name="name">
<xsl:value-of select="@name" />
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="@name" />
</xsl:attribute>
</serviceTask>

<xsl:apply-templates/>
</xsl:template>

<xsl:template match="jpdl:transition">
<sequenceFlow>
<xsl:attribute name="id">
Expand All @@ -88,8 +101,6 @@
</sequenceFlow>
</xsl:template>

<!-- TODO: Include templates for the missing jPDL elements. -->

<!-- Strip the white space from the result. -->
<xsl:template match="text()">
<xsl:value-of select="normalize-space()" />
Expand Down

0 comments on commit b2c4b98

Please sign in to comment.