-
1. jBPM5, Oryx and global elements required by serviceTask
tomathome Jan 21, 2011 4:01 AM (in response to vsp)Can you plase short describe how exacly you tranform the Oryx comaptible files into the jbpmn compatible? Maybe you could show the xslt file. I have the problem, that the by oryx created files will not be accepted by drools guvnor.
-
2. Re: jBPM5, Oryx and global elements required by serviceTask
vsp Jan 21, 2011 10:38 AM (in response to tomathome)tomathome,
I'm no sure how this will help you with the guvnor issue, but here's the relevant portion of my XSLT file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns2="http://schema.omg.org/spec/BPMN/2.0"
xmlns:bpmndi="http://bpmndi.org">
<xsl:output name="oryx2jbpm" method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/ns2:definitions/ns2:process">
<itemDefinition id="inMessageType" itemKind="Information" structureRef="java.lang.String" />
<message id="inputMessage" name="input Message" itemRef="inMessageType"/>
<interface id="MyWebServicePort" name="my.namespace.for.the.service.port.MyPort">
<operation id="myOperationId" name="opOperation">
<inMessageRef>inputMessage</inMessageRef>
</operation>
</interface>
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Once I apply this to the Oryx-produced BPMN, i can use service tasks like this:
<serviceTask operationRef="myOperationId" implementation="webService" name="my service task 1" id="myServiceTask1"/>