[jboss-user] [jBPM] - Re: jBPM5, Oryx and global elements required by serviceTask
vsp
do-not-reply at jboss.com
Fri Jan 21 10:38:42 EST 2011
vsp [http://community.jboss.org/people/vsp] created the discussion
"Re: jBPM5, Oryx and global elements required by serviceTask"
To view the discussion, visit: http://community.jboss.org/message/582387#582387
--------------------------------------------------------------
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 http://www.w3.org/1999/XSL/Transform"
xmlns:ns2=" http://schema.omg.org/spec/BPMN/2.0 http://schema.omg.org/spec/BPMN/2.0"
xmlns:bpmndi=" http://bpmndi.org 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
[http://community.jboss.org/message/582387#582387]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110121/90c466de/attachment-0001.html
More information about the jboss-user
mailing list