JBoss Community

Re: jBPM5, Oryx and global elements required by serviceTask

created by vsp in jBPM - View the full discussion

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"/>

Reply to this message by going to Community

Start a new discussion in jBPM at Community