216 lines
9.7 KiB
XML
216 lines
9.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.tibco.com/schemas/tibcoRepository/Resources/JmsErrorSchema/Schema.xsd" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:pfx3="http://www.tibco.com/pe/DeployedVarsType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
|
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/author.xsd"/>
|
|
<xsd:import namespace="http://www.tibco.com/schemas/tibcoRepository/Resources/JmsErrorSchema/Schema.xsd" schemaLocation="/Resources/schemas/JmsStatusResponse.xsd"/>
|
|
<pd:name>Processes/jms/JmsPost.process</pd:name>
|
|
<pd:startName>JMS Topic Subscriber</pd:startName>
|
|
<pd:startX>0</pd:startX>
|
|
<pd:startY>0</pd:startY>
|
|
<pd:returnBindings/>
|
|
<pd:starter name="JMS Topic Subscriber">
|
|
<pd:type>com.tibco.plugin.jms.JMSTopicEventSource</pd:type>
|
|
<pd:resourceType>ae.activities.JMSTopicEventSource</pd:resourceType>
|
|
<pd:x>72</pd:x>
|
|
<pd:y>71</pd:y>
|
|
<config>
|
|
<PermittedMessageType>XML Text</PermittedMessageType>
|
|
<SessionAttributes>
|
|
<transacted>false</transacted>
|
|
<acknowledgeMode>1</acknowledgeMode>
|
|
<maxSessions>1</maxSessions>
|
|
<destination>deleteRequest</destination>
|
|
</SessionAttributes>
|
|
<ConfigurableHeaders>
|
|
<JMSDeliveryMode>PERSISTENT</JMSDeliveryMode>
|
|
<JMSExpiration>0</JMSExpiration>
|
|
<JMSPriority>4</JMSPriority>
|
|
</ConfigurableHeaders>
|
|
<ConnectionReference>/LocalResources/jmsConnections/server.delete.sharedjmscon</ConnectionReference>
|
|
<OutDataxsdString>
|
|
<xsd:element name="root">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element ref="pfx:author" minOccurs="0"/>
|
|
<xsd:element name="id" type="xsd:int"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</OutDataxsdString>
|
|
</config>
|
|
<pd:inputBindings/>
|
|
</pd:starter>
|
|
<pd:endName>End</pd:endName>
|
|
<pd:endX>546</pd:endX>
|
|
<pd:endY>64</pd:endY>
|
|
<pd:errorSchemas/>
|
|
<pd:processVariables/>
|
|
<pd:targetNamespace>http://xmlns.example.com/1724069617580</pd:targetNamespace>
|
|
<pd:activity name="Catch">
|
|
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
|
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
|
<pd:x>243</pd:x>
|
|
<pd:y>240</pd:y>
|
|
<pd:handler>true</pd:handler>
|
|
<config>
|
|
<fault>localname=xmlPostError</fault>
|
|
</config>
|
|
<pd:inputBindings/>
|
|
</pd:activity>
|
|
<pd:activity name="SendResponse">
|
|
<pd:type>com.tibco.plugin.jms.JMSTopicPublishActivity</pd:type>
|
|
<pd:resourceType>ae.activities.JMSTopicPublishActivity</pd:resourceType>
|
|
<pd:x>398</pd:x>
|
|
<pd:y>64</pd:y>
|
|
<config>
|
|
<PermittedMessageType>XML Text</PermittedMessageType>
|
|
<SessionAttributes>
|
|
<transacted>false</transacted>
|
|
<acknowledgeMode>1</acknowledgeMode>
|
|
<maxSessions>1</maxSessions>
|
|
<destination/>
|
|
</SessionAttributes>
|
|
<ConfigurableHeaders>
|
|
<JMSDeliveryMode>PERSISTENT</JMSDeliveryMode>
|
|
<JMSExpiration>0</JMSExpiration>
|
|
<JMSPriority>4</JMSPriority>
|
|
</ConfigurableHeaders>
|
|
<DeliveryDelay>0</DeliveryDelay>
|
|
<ConnectionReference>/LocalResources/jmsConnections/server.post.sharedjmscon</ConnectionReference>
|
|
<InDataxsdString>
|
|
<xsd:element name="root">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element ref="pfx:author" minOccurs="0"/>
|
|
<xsd:element ref="pfx2:response"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</InDataxsdString>
|
|
</config>
|
|
<pd:inputBindings>
|
|
<ns:ActivityInput>
|
|
<xsl:if test="$JMS-Topic-Subscriber/ns:ActivityOutput/JMSHeaders/ns:JMSReplyTo">
|
|
<destinationTopic>
|
|
<xsl:value-of select="$JMS-Topic-Subscriber/ns:ActivityOutput/JMSHeaders/ns:JMSReplyTo"/>
|
|
</destinationTopic>
|
|
</xsl:if>
|
|
<Body>
|
|
<root>
|
|
<pfx2:response>
|
|
<pfx2:status>
|
|
<xsl:value-of select="$SqlPOST/root/status"/>
|
|
</pfx2:status>
|
|
<pfx2:isError>
|
|
<xsl:value-of select="'false'"/>
|
|
</pfx2:isError>
|
|
<pfx2:correlationID>
|
|
<xsl:value-of select="$JMS-Topic-Subscriber/ns:ActivityOutput/JMSHeaders/ns:JMSMessageID"/>
|
|
</pfx2:correlationID>
|
|
</pfx2:response>
|
|
</root>
|
|
</Body>
|
|
</ns:ActivityInput>
|
|
</pd:inputBindings>
|
|
</pd:activity>
|
|
<pd:activity name="SqlPOST">
|
|
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
|
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
|
<pd:x>243</pd:x>
|
|
<pd:y>64</pd:y>
|
|
<config>
|
|
<processName>/Processes/xml/author/XmlPOST.process</processName>
|
|
<processNameXPath>if ($_globalVariables/pfx3:GlobalVariables/processType='sql') then '/Processes/sql/author/SqlPOST.process' else '/Processes/xml/author/XmlPOST.process'</processNameXPath>
|
|
</config>
|
|
<pd:inputBindings>
|
|
<root>
|
|
<xsl:copy-of select="$JMS-Topic-Subscriber/ns:ActivityOutput/Body/root/pfx:author"/>
|
|
</root>
|
|
</pd:inputBindings>
|
|
</pd:activity>
|
|
<pd:activity name="SendResponse-1">
|
|
<pd:type>com.tibco.plugin.jms.JMSTopicPublishActivity</pd:type>
|
|
<pd:resourceType>ae.activities.JMSTopicPublishActivity</pd:resourceType>
|
|
<pd:x>411</pd:x>
|
|
<pd:y>239</pd:y>
|
|
<config>
|
|
<PermittedMessageType>XML Text</PermittedMessageType>
|
|
<SessionAttributes>
|
|
<transacted>false</transacted>
|
|
<acknowledgeMode>1</acknowledgeMode>
|
|
<maxSessions>1</maxSessions>
|
|
<destination>postResponse</destination>
|
|
</SessionAttributes>
|
|
<ConfigurableHeaders>
|
|
<JMSDeliveryMode>PERSISTENT</JMSDeliveryMode>
|
|
<JMSExpiration>0</JMSExpiration>
|
|
<JMSPriority>4</JMSPriority>
|
|
</ConfigurableHeaders>
|
|
<DeliveryDelay>0</DeliveryDelay>
|
|
<ConnectionReference>/LocalResources/jmsConnections/server.post.sharedjmscon</ConnectionReference>
|
|
<InDataxsdString>
|
|
<xsd:element name="root">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element ref="pfx:author" minOccurs="0"/>
|
|
<xsd:element ref="pfx2:response"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</InDataxsdString>
|
|
</config>
|
|
<pd:inputBindings>
|
|
<ns:ActivityInput>
|
|
<Body>
|
|
<root>
|
|
<pfx2:response>
|
|
<pfx2:status>
|
|
<xsl:value-of select="$Catch/xmlPostError/message"/>
|
|
</pfx2:status>
|
|
<pfx2:isError>
|
|
<xsl:value-of select="'true'"/>
|
|
</pfx2:isError>
|
|
<pfx2:correlationID>
|
|
<xsl:value-of select="$JMS-Topic-Subscriber/ns:ActivityOutput/JMSHeaders/ns:JMSMessageID"/>
|
|
</pfx2:correlationID>
|
|
</pfx2:response>
|
|
</root>
|
|
</Body>
|
|
</ns:ActivityInput>
|
|
</pd:inputBindings>
|
|
</pd:activity>
|
|
<pd:transition>
|
|
<pd:from>JMS Topic Subscriber</pd:from>
|
|
<pd:to>SqlPOST</pd:to>
|
|
<pd:lineType>Default</pd:lineType>
|
|
<pd:lineColor>-16777216</pd:lineColor>
|
|
<pd:conditionType>always</pd:conditionType>
|
|
</pd:transition>
|
|
<pd:transition>
|
|
<pd:from>SqlPOST</pd:from>
|
|
<pd:to>SendResponse</pd:to>
|
|
<pd:lineType>Default</pd:lineType>
|
|
<pd:lineColor>-16777216</pd:lineColor>
|
|
<pd:conditionType>always</pd:conditionType>
|
|
</pd:transition>
|
|
<pd:transition>
|
|
<pd:from>SendResponse</pd:from>
|
|
<pd:to>End</pd:to>
|
|
<pd:lineType>Default</pd:lineType>
|
|
<pd:lineColor>-16777216</pd:lineColor>
|
|
<pd:conditionType>always</pd:conditionType>
|
|
</pd:transition>
|
|
<pd:transition>
|
|
<pd:from>Catch</pd:from>
|
|
<pd:to>SendResponse-1</pd:to>
|
|
<pd:lineType>Default</pd:lineType>
|
|
<pd:lineColor>-16777216</pd:lineColor>
|
|
<pd:conditionType>always</pd:conditionType>
|
|
</pd:transition>
|
|
<pd:transition>
|
|
<pd:from>SendResponse-1</pd:from>
|
|
<pd:to>End</pd:to>
|
|
<pd:lineType>Default</pd:lineType>
|
|
<pd:lineColor>-16777216</pd:lineColor>
|
|
<pd:conditionType>always</pd:conditionType>
|
|
</pd:transition>
|
|
</pd:ProcessDefinition> |