jms works on tibcoAdmin
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
||||
<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/JmsErrorSchema/JmsStatusResponse.xsd"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/tibcoRepository/Resources/JmsErrorSchema/Schema.xsd" schemaLocation="/Resources/schemas/JmsStatusResponse.xsd"/>
|
||||
<pd:name>Processes/jms/JmsDelete.process</pd:name>
|
||||
<pd:startName>JMS Topic Subscriber</pd:startName>
|
||||
<pd:startX>0</pd:startX>
|
||||
@@ -25,7 +25,7 @@
|
||||
<JMSExpiration>0</JMSExpiration>
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<ConnectionReference>/LocalResources/server.delete.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.delete.sharedjmscon</ConnectionReference>
|
||||
<OutDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -40,10 +40,11 @@
|
||||
<pd:inputBindings/>
|
||||
</pd:starter>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endType/>
|
||||
<pd:endX>614</pd:endX>
|
||||
<pd:endY>67</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<DeleteError/>
|
||||
<DeleteError ref="pfx2:response"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1724069617580</pd:targetNamespace>
|
||||
@@ -54,7 +55,7 @@
|
||||
<pd:y>221</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
<fault>localname=xmlDeleteError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
@@ -77,7 +78,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.post.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.post.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -95,7 +96,7 @@
|
||||
<root>
|
||||
<pfx2:response>
|
||||
<pfx2:status>
|
||||
<xsl:value-of select="$Catch/ns1:root/ns1:error"/>
|
||||
<xsl:value-of select="$Catch/xmlDeleteError/message"/>
|
||||
</pfx2:status>
|
||||
<pfx2:isError>
|
||||
<xsl:value-of select="true()"/>
|
||||
@@ -128,7 +129,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.delete.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.delete.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -171,7 +172,8 @@
|
||||
<pd:x>307</pd:x>
|
||||
<pd:y>67</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/author/SqlDELETE.process</processName>
|
||||
<processName>/Processes/xml/author/XmlDELETE.process</processName>
|
||||
<processNameXPath>if ($_globalVariables/pfx3:GlobalVariables/processType='sql') then '/Processes/sql/author/SqlDELETE.process' else '/Processes/xml/author/XmlDELETE.process'</processNameXPath>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
||||
<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/JmsErrorSchema/JmsStatusResponse.xsd"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/tibcoRepository/Resources/JmsErrorSchema/Schema.xsd" schemaLocation="/Resources/schemas/JmsStatusResponse.xsd"/>
|
||||
<pd:name>Processes/jms/JmsGet.process</pd:name>
|
||||
<pd:startName>JMS Queue Receiver</pd:startName>
|
||||
<pd:startX>0</pd:startX>
|
||||
@@ -11,7 +11,7 @@
|
||||
<pd:type>com.tibco.plugin.jms.JMSQueueEventSource</pd:type>
|
||||
<pd:resourceType>ae.activities.JMSQueueEventSource</pd:resourceType>
|
||||
<pd:x>113</pd:x>
|
||||
<pd:y>70</pd:y>
|
||||
<pd:y>66</pd:y>
|
||||
<config>
|
||||
<PermittedMessageType>XML Text</PermittedMessageType>
|
||||
<SessionAttributes>
|
||||
@@ -25,7 +25,7 @@
|
||||
<JMSExpiration>0</JMSExpiration>
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<ConnectionReference>/LocalResources/server.get.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.get.sharedjmscon</ConnectionReference>
|
||||
<OutDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -41,7 +41,7 @@
|
||||
</pd:starter>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endX>536</pd:endX>
|
||||
<pd:endY>70</pd:endY>
|
||||
<pd:endY>66</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1724069617580</pd:targetNamespace>
|
||||
@@ -52,67 +52,10 @@
|
||||
<pd:y>203</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
<fault>localname=xmlGetError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="SendResponse">
|
||||
<pd:type>com.tibco.plugin.jms.JMSQueueSendActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JMSQueueSendActivity</pd:resourceType>
|
||||
<pd:x>403</pd:x>
|
||||
<pd:y>70</pd:y>
|
||||
<config>
|
||||
<PermittedMessageType>XML Text</PermittedMessageType>
|
||||
<SessionAttributes>
|
||||
<transacted>false</transacted>
|
||||
<acknowledgeMode>1</acknowledgeMode>
|
||||
<maxSessions>1</maxSessions>
|
||||
<destination>getResponse</destination>
|
||||
</SessionAttributes>
|
||||
<ConfigurableHeaders>
|
||||
<JMSDeliveryMode>PERSISTENT</JMSDeliveryMode>
|
||||
<JMSExpiration>0</JMSExpiration>
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.get.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-Queue-Receiver/ns:ActivityOutput/JMSHeaders/ns:JMSReplyTo">
|
||||
<destinationQueue>
|
||||
<xsl:value-of select="$JMS-Queue-Receiver/ns:ActivityOutput/JMSHeaders/ns:JMSReplyTo"/>
|
||||
</destinationQueue>
|
||||
</xsl:if>
|
||||
<Body>
|
||||
<root>
|
||||
<xsl:copy-of select="$SqlGET/root/pfx:author"/>
|
||||
<pfx2:response>
|
||||
<pfx2:status>
|
||||
<xsl:value-of select="$SqlGET/root/status"/>
|
||||
</pfx2:status>
|
||||
<pfx2:isError>
|
||||
<xsl:value-of select="false()"/>
|
||||
</pfx2:isError>
|
||||
<pfx2:correlationID>
|
||||
<xsl:value-of select="$JMS-Queue-Receiver/ns:ActivityOutput/JMSHeaders/ns:JMSMessageID"/>
|
||||
</pfx2:correlationID>
|
||||
</pfx2:response>
|
||||
</root>
|
||||
</Body>
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="SendeErrorResponse">
|
||||
<pd:type>com.tibco.plugin.jms.JMSQueueSendActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JMSQueueSendActivity</pd:resourceType>
|
||||
@@ -132,7 +75,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.get.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.get.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -150,7 +93,7 @@
|
||||
<root>
|
||||
<pfx2:response>
|
||||
<pfx2:status>
|
||||
<xsl:value-of select="$Catch/ns1:root/ns1:error"/>
|
||||
<xsl:value-of select="$Catch/xmlGetError/message"/>
|
||||
</pfx2:status>
|
||||
<pfx2:isError>
|
||||
<xsl:value-of select="true()"/>
|
||||
@@ -164,13 +107,71 @@
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="SqlGET">
|
||||
<pd:activity name="SendResponse">
|
||||
<pd:type>com.tibco.plugin.jms.JMSQueueSendActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JMSQueueSendActivity</pd:resourceType>
|
||||
<pd:x>403</pd:x>
|
||||
<pd:y>66</pd:y>
|
||||
<config>
|
||||
<PermittedMessageType>XML Text</PermittedMessageType>
|
||||
<SessionAttributes>
|
||||
<transacted>false</transacted>
|
||||
<acknowledgeMode>1</acknowledgeMode>
|
||||
<maxSessions>1</maxSessions>
|
||||
<destination>getResponse</destination>
|
||||
</SessionAttributes>
|
||||
<ConfigurableHeaders>
|
||||
<JMSDeliveryMode>PERSISTENT</JMSDeliveryMode>
|
||||
<JMSExpiration>0</JMSExpiration>
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.get.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-Queue-Receiver/ns:ActivityOutput/JMSHeaders/ns:JMSReplyTo">
|
||||
<destinationQueue>
|
||||
<xsl:value-of select="$JMS-Queue-Receiver/ns:ActivityOutput/JMSHeaders/ns:JMSReplyTo"/>
|
||||
</destinationQueue>
|
||||
</xsl:if>
|
||||
<Body>
|
||||
<root>
|
||||
<xsl:copy-of select="$XmlGET/root/pfx:author"/>
|
||||
<pfx2:response>
|
||||
<pfx2:status>
|
||||
<xsl:value-of select="$XmlGET/root/status"/>
|
||||
</pfx2:status>
|
||||
<pfx2:isError>
|
||||
<xsl:value-of select="false()"/>
|
||||
</pfx2:isError>
|
||||
<pfx2:correlationID>
|
||||
<xsl:value-of select="$JMS-Queue-Receiver/ns:ActivityOutput/JMSHeaders/ns:JMSMessageID"/>
|
||||
</pfx2:correlationID>
|
||||
</pfx2:response>
|
||||
</root>
|
||||
</Body>
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="XmlGET">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>269</pd:x>
|
||||
<pd:y>70</pd:y>
|
||||
<pd:x>271</pd:x>
|
||||
<pd:y>66</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/author/SqlGET.process</processName>
|
||||
<processName>/Processes/xml/author/XmlGET.process</processName>
|
||||
<processNameXPath>if ($_globalVariables/pfx3:GlobalVariables/processType='sql') then '/Processes/sql/author/SqlGET.process' else '/Processes/xml/author/XmlGET.process'</processNameXPath>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
@@ -182,13 +183,13 @@
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>JMS Queue Receiver</pd:from>
|
||||
<pd:to>SqlGET</pd:to>
|
||||
<pd:to>XmlGET</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>SqlGET</pd:from>
|
||||
<pd:from>XmlGET</pd:from>
|
||||
<pd:to>SendResponse</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
||||
<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/JmsErrorSchema/JmsStatusResponse.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>
|
||||
@@ -18,14 +18,14 @@
|
||||
<transacted>false</transacted>
|
||||
<acknowledgeMode>1</acknowledgeMode>
|
||||
<maxSessions>1</maxSessions>
|
||||
<destination>postRequest</destination>
|
||||
<destination>deleteRequest</destination>
|
||||
</SessionAttributes>
|
||||
<ConfigurableHeaders>
|
||||
<JMSDeliveryMode>PERSISTENT</JMSDeliveryMode>
|
||||
<JMSExpiration>0</JMSExpiration>
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<ConnectionReference>/LocalResources/server.post.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.delete.sharedjmscon</ConnectionReference>
|
||||
<OutDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -52,7 +52,7 @@
|
||||
<pd:y>240</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
<fault>localname=xmlPostError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
@@ -75,7 +75,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.post.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.post.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -118,7 +118,8 @@
|
||||
<pd:x>243</pd:x>
|
||||
<pd:y>64</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/author/SqlPOST.process</processName>
|
||||
<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>
|
||||
@@ -145,7 +146,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.post.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.post.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -163,7 +164,7 @@
|
||||
<root>
|
||||
<pfx2:response>
|
||||
<pfx2:status>
|
||||
<xsl:value-of select="$Catch/ns1:root/ns1:error"/>
|
||||
<xsl:value-of select="$Catch/xmlPostError/message"/>
|
||||
</pfx2:status>
|
||||
<pfx2:isError>
|
||||
<xsl:value-of select="'true'"/>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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: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/JmsErrorSchema/JmsStatusResponse.xsd"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/tibcoRepository/Resources/JmsErrorSchema/Schema.xsd" schemaLocation="/Resources/schemas/JmsStatusResponse.xsd"/>
|
||||
<pd:name>Processes/jms/JmsPut.process</pd:name>
|
||||
<pd:startName>JMS Queue Receiver</pd:startName>
|
||||
<pd:startX>0</pd:startX>
|
||||
@@ -25,7 +25,7 @@
|
||||
<JMSExpiration>0</JMSExpiration>
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<ConnectionReference>/LocalResources/server.put.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.put.sharedjmscon</ConnectionReference>
|
||||
<OutDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -52,7 +52,7 @@
|
||||
<pd:y>225</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
<fault>localname=XMLPutError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
@@ -75,7 +75,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.put.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.put.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -131,7 +131,7 @@
|
||||
<JMSPriority>4</JMSPriority>
|
||||
</ConfigurableHeaders>
|
||||
<DeliveryDelay>0</DeliveryDelay>
|
||||
<ConnectionReference>/LocalResources/server.get.sharedjmscon</ConnectionReference>
|
||||
<ConnectionReference>/LocalResources/jmsConnections/server.get.sharedjmscon</ConnectionReference>
|
||||
<InDataxsdString>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
@@ -149,7 +149,7 @@
|
||||
<root>
|
||||
<pfx2:response>
|
||||
<pfx2:status>
|
||||
<xsl:value-of select="$Catch/ns1:root/ns1:error"/>
|
||||
<xsl:value-of select="$Catch/XMLPutError/message"/>
|
||||
</pfx2:status>
|
||||
<pfx2:isError>
|
||||
<xsl:value-of select="true()"/>
|
||||
@@ -169,7 +169,8 @@
|
||||
<pd:x>279</pd:x>
|
||||
<pd:y>65</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/author/SqlPUT.process</processName>
|
||||
<processName>/Processes/xml/author/XmlPUT.process</processName>
|
||||
<processNameXPath>if ($_globalVariables/pfx3:GlobalVariables/processType='sql') then '/Processes/sql/author/SqlPUT.process' else '/Processes/xml/author/XmlPUT.process'</processNameXPath>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
<pd:starter name="HTTP Receiver">
|
||||
<pd:type>com.tibco.plugin.http.HTTPEventSource</pd:type>
|
||||
<pd:resourceType>httppalette.httpEventSource</pd:resourceType>
|
||||
<pd:x>112</pd:x>
|
||||
<pd:y>349</pd:y>
|
||||
<pd:x>102</pd:x>
|
||||
<pd:y>345</pd:y>
|
||||
<config>
|
||||
<outputMode>String</outputMode>
|
||||
<defaultEncoding>ISO8859_1</defaultEncoding>
|
||||
@@ -38,7 +38,7 @@
|
||||
</pd:starter>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endX>814</pd:endX>
|
||||
<pd:endY>350</pd:endY>
|
||||
<pd:endY>345</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<Schema0>
|
||||
<xsd:element name="root">
|
||||
@@ -52,62 +52,38 @@
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719474540368</pd:targetNamespace>
|
||||
<pd:activity name="Select Database Type">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>262</pd:x>
|
||||
<pd:y>357</pd:y>
|
||||
<pd:activity name="CatchRestError">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>357</pd:x>
|
||||
<pd:y>202</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<processName>/Processes/sql/InitializeDatabase.process</processName>
|
||||
<processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then '/Processes/sql/InitializeDatabase.process' else '/Processes/xml/Xml.process'</processNameXPath>
|
||||
<spawn>false</spawn>
|
||||
<fault>localname=XMLError</fault>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<method>
|
||||
<xsl:value-of select="$HTTP-Receiver/ProcessStarterOutput/Method"/>
|
||||
</method>
|
||||
<data>
|
||||
<xsl:value-of select="if ($HTTP-Receiver/ProcessStarterOutput/Method = 'DELETE' or $HTTP-Receiver/ProcessStarterOutput/Method = 'GET' ) then $HTTP-Receiver/ProcessStarterOutput/RequestURI else $HTTP-Receiver/ProcessStarterOutput/PostData"/>
|
||||
</data>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Send HTTP Response">
|
||||
<pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type>
|
||||
<pd:resourceType>httppalette.httpWebResponse</pd:resourceType>
|
||||
<pd:x>584</pd:x>
|
||||
<pd:y>349</pd:y>
|
||||
<pd:activity name="Log">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>225</pd:x>
|
||||
<pd:y>345</pd:y>
|
||||
<config>
|
||||
<closeConnection>true</closeConnection>
|
||||
<eventSource>HTTP Receiver</eventSource>
|
||||
<Headers>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="StatusLine" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Content-Type" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Set-Cookie" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Pragma" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Location" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</Headers>
|
||||
<role>User</role>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ResponseActivityInput>
|
||||
<asciiContent>
|
||||
<xsl:value-of select="$Render-XML/xmlString"/>
|
||||
</asciiContent>
|
||||
</ResponseActivityInput>
|
||||
<ns:ActivityInput>
|
||||
<message>
|
||||
<xsl:value-of select=""http message Received""/>
|
||||
</message>
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>432</pd:x>
|
||||
<pd:y>349</pd:y>
|
||||
<pd:x>477</pd:x>
|
||||
<pd:y>345</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>true</validateInput>
|
||||
@@ -132,17 +108,6 @@
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="CatchRestError">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>357</pd:x>
|
||||
<pd:y>202</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="RestErrorResponse">
|
||||
<pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type>
|
||||
<pd:resourceType>httppalette.httpWebResponse</pd:resourceType>
|
||||
@@ -169,18 +134,85 @@
|
||||
<pd:inputBindings>
|
||||
<ResponseActivityInput>
|
||||
<asciiContent>
|
||||
<xsl:value-of select="$CatchRestError/ns2:root/ns2:error"/>
|
||||
<xsl:value-of select="$CatchRestError/XMLError/message"/>
|
||||
</asciiContent>
|
||||
</ResponseActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>HTTP Receiver</pd:from>
|
||||
<pd:to>Select Database Type</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:activity name="Select Database Type">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>352</pd:x>
|
||||
<pd:y>352</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/Xml.process</processName>
|
||||
<processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then '/Processes/sql/InitializeDatabase.process' else '/Processes/xml/Xml.process'</processNameXPath>
|
||||
<spawn>false</spawn>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<method>
|
||||
<xsl:value-of select="$HTTP-Receiver/ProcessStarterOutput/Method"/>
|
||||
</method>
|
||||
<data>
|
||||
<xsl:value-of select="if ($HTTP-Receiver/ProcessStarterOutput/Method = 'DELETE' or $HTTP-Receiver/ProcessStarterOutput/Method = 'GET' ) then $HTTP-Receiver/ProcessStarterOutput/RequestURI else $HTTP-Receiver/ProcessStarterOutput/PostData"/>
|
||||
</data>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Send HTTP Response">
|
||||
<pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type>
|
||||
<pd:resourceType>httppalette.httpWebResponse</pd:resourceType>
|
||||
<pd:x>629</pd:x>
|
||||
<pd:y>345</pd:y>
|
||||
<config>
|
||||
<closeConnection>true</closeConnection>
|
||||
<eventSource>HTTP Receiver</eventSource>
|
||||
<Headers>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="StatusLine" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Content-Type" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Set-Cookie" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Pragma" type="xsd:string" minOccurs="0"/>
|
||||
<xsd:element name="Location" type="xsd:string" minOccurs="0"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</Headers>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ResponseActivityInput>
|
||||
<asciiContent>
|
||||
<xsl:value-of select="$Render-XML/xmlString"/>
|
||||
</asciiContent>
|
||||
</ResponseActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>847</pd:x>
|
||||
<pd:y>99</pd:y>
|
||||
<config>
|
||||
<inputStyle>binary</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render-XML-1">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>667</pd:x>
|
||||
<pd:y>52</pd:y>
|
||||
<config>
|
||||
<renderAsText>binary</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Send HTTP Response</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
@@ -216,4 +248,18 @@
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>HTTP Receiver</pd:from>
|
||||
<pd:to>Log</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Log</pd:from>
|
||||
<pd:to>Select Database Type</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
7
Processes/soap/.folder
Normal file
7
Processes/soap/.folder
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Repository:repository xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002">
|
||||
<folder resourceType="ae.designerfolder" name="soap" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false">
|
||||
<description/>
|
||||
<fixedChildren/>
|
||||
</folder>
|
||||
</Repository:repository>
|
||||
98
Processes/soap/SoapDeleteAuthor.process
Normal file
98
Processes/soap/SoapDeleteAuthor.process
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns6="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:ns5="http://www.tibco.com/schemas/httpRequest/Resources/schemas/DeleteResponse.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema1.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:ns1="http://www.demo.com/author" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/DeleteRequest.xsd" xmlns:ns3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/soap/SoapDeleteAuthor.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType wsMsgRef="wsdlPfx:requestDelete"/>
|
||||
<pd:startX>150</pd:startX>
|
||||
<pd:startY>65</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<wsdlPfx:responseDelete>
|
||||
<part1>
|
||||
<ns5:status>
|
||||
<xsl:value-of select="$XmlDELETE/root/status"/>
|
||||
</ns5:status>
|
||||
</part1>
|
||||
</wsdlPfx:responseDelete>
|
||||
</pd:returnBindings>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endType wsMsgRef="wsdlPfx:responseDelete"/>
|
||||
<pd:endX>486</pd:endX>
|
||||
<pd:endY>65</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<DeleteError wsMsgRef="wsdlPfx:ErrorMessage"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1721743176236</pd:targetNamespace>
|
||||
<pd:activity name="XmlDELETE">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>290</pd:x>
|
||||
<pd:y>66</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlDELETE.process</processName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<id>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestDelete/part1/ns4:id"/>
|
||||
</id>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>205</pd:x>
|
||||
<pd:y>181</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>false</catchAll>
|
||||
<fault>localname=xmlDeleteError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>422</pd:x>
|
||||
<pd:y>181</pd:y>
|
||||
<config>
|
||||
<faultName>DeleteError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns3:ActivityInput>
|
||||
<data>
|
||||
<wsdlPfx:ErrorMessage>
|
||||
<part1>
|
||||
<ns6:error>
|
||||
<xsl:value-of select="$Catch/xmlDeleteError/message"/>
|
||||
</ns6:error>
|
||||
</part1>
|
||||
</wsdlPfx:ErrorMessage>
|
||||
</data>
|
||||
</ns3:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>XmlDELETE</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>XmlDELETE</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>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
122
Processes/soap/SoapGetAuthor.process
Normal file
122
Processes/soap/SoapGetAuthor.process
Normal file
@@ -0,0 +1,122 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns6="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:ns5="http://www.demo.com/GetResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pfx="http://xmlns.example.com/1721743175984" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.demo.com/author" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/GetRequest.xsd" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
||||
<xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" schemaLocation="/Resources/schemas/getRequest.xsd"/>
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721743175984"/>
|
||||
<pd:name>Processes/soap/SoapGetAuthor.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType wsMsgRef="wsdlPfx:requestGet"/>
|
||||
<pd:startX>116</pd:startX>
|
||||
<pd:startY>64</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<wsdlPfx:responseGet>
|
||||
<part1>
|
||||
<ns5:author>
|
||||
<xsl:if test="$XmlGET/root/ns2:author/@id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="$XmlGET/root/ns2:author/@id"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<ns5:firstName>
|
||||
<xsl:value-of select="$XmlGET/root/ns2:author/ns2:firstName"/>
|
||||
</ns5:firstName>
|
||||
<ns5:lastName>
|
||||
<xsl:value-of select="$XmlGET/root/ns2:author/ns2:lastName"/>
|
||||
</ns5:lastName>
|
||||
<xsl:if test="$XmlGET/root/ns2:author/ns2:age">
|
||||
<ns5:age>
|
||||
<xsl:value-of select="$XmlGET/root/ns2:author/ns2:age"/>
|
||||
</ns5:age>
|
||||
</xsl:if>
|
||||
<ns5:dateOfBirth>
|
||||
<xsl:value-of select="$XmlGET/root/ns2:author/ns2:dateOfBirth"/>
|
||||
</ns5:dateOfBirth>
|
||||
<xsl:if test="$XmlGET/root/ns2:author/ns2:dateOfDeath">
|
||||
<ns5:dateOfDeath>
|
||||
<xsl:value-of select="$XmlGET/root/ns2:author/ns2:dateOfDeath"/>
|
||||
</ns5:dateOfDeath>
|
||||
</xsl:if>
|
||||
</ns5:author>
|
||||
</part1>
|
||||
</wsdlPfx:responseGet>
|
||||
</pd:returnBindings>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endType wsMsgRef="wsdlPfx:responseGet"/>
|
||||
<pd:endX>547</pd:endX>
|
||||
<pd:endY>66</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<GetError wsMsgRef="wsdlPfx:ErrorMessage"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1721743176122</pd:targetNamespace>
|
||||
<pd:activity name="XmlGET">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>281</pd:x>
|
||||
<pd:y>65</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlGET.process</processName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<id>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestGet/part1/ns4:id"/>
|
||||
</id>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>204</pd:x>
|
||||
<pd:y>234</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=xmlGetError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>431</pd:x>
|
||||
<pd:y>234</pd:y>
|
||||
<config>
|
||||
<faultName>GetError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput>
|
||||
<data>
|
||||
<wsdlPfx:ErrorMessage>
|
||||
<part1>
|
||||
<ns6:error>
|
||||
<xsl:value-of select="$Catch/xmlGetError/message"/>
|
||||
</ns6:error>
|
||||
</part1>
|
||||
</wsdlPfx:ErrorMessage>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>XmlGET</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>XmlGET</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>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
121
Processes/soap/SoapPostAuthor.process
Normal file
121
Processes/soap/SoapPostAuthor.process
Normal file
@@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns5="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.demo.com/author" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/PostResponse.xsd" xmlns:ns3="http://www.demo.com/PostRequest">
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/soap/SoapPostAuthor.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType wsMsgRef="wsdlPfx:requestPOST"/>
|
||||
<pd:startX>146</pd:startX>
|
||||
<pd:startY>71</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<wsdlPfx:responsePOST>
|
||||
<part1>
|
||||
<ns4:status>
|
||||
<xsl:value-of select="$XmlPOST/root/status"/>
|
||||
</ns4:status>
|
||||
</part1>
|
||||
</wsdlPfx:responsePOST>
|
||||
</pd:returnBindings>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endType wsMsgRef="wsdlPfx:responsePOST"/>
|
||||
<pd:endX>529</pd:endX>
|
||||
<pd:endY>73</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<PostError wsMsgRef="wsdlPfx:ErrorMessage"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1721743175988</pd:targetNamespace>
|
||||
<pd:activity name="XmlPOST">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>285</pd:x>
|
||||
<pd:y>70</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlPOST.process</processName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<ns:author>
|
||||
<xsl:if test="$Start/wsdlPfx:requestPOST/part1/ns3:author/@id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns3:author/@id"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<ns:firstName>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:firstName"/>
|
||||
</ns:firstName>
|
||||
<ns:lastName>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:lastName"/>
|
||||
</ns:lastName>
|
||||
<xsl:if test="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:age">
|
||||
<ns:age>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:age"/>
|
||||
</ns:age>
|
||||
</xsl:if>
|
||||
<ns:dateOfBirth>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:dateOfBirth"/>
|
||||
</ns:dateOfBirth>
|
||||
<xsl:if test="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:dateOfDeath">
|
||||
<ns:dateOfDeath>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns3:author/ns3:dateOfDeath"/>
|
||||
</ns:dateOfDeath>
|
||||
</xsl:if>
|
||||
</ns:author>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>236</pd:x>
|
||||
<pd:y>214</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>false</catchAll>
|
||||
<fault>localname=xmlPostError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>431</pd:x>
|
||||
<pd:y>214</pd:y>
|
||||
<config>
|
||||
<faultName>PostError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput>
|
||||
<data>
|
||||
<wsdlPfx:ErrorMessage>
|
||||
<part1>
|
||||
<ns5:error>
|
||||
<xsl:value-of select="$Catch/xmlPostError/message"/>
|
||||
</ns5:error>
|
||||
</part1>
|
||||
</wsdlPfx:ErrorMessage>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>XmlPOST</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>XmlPOST</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>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
117
Processes/soap/SoapPutAuthor.process
Normal file
117
Processes/soap/SoapPutAuthor.process
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns5="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.demo.com/author" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/PutResponse.xsd" xmlns:ns3="http://www.demo.com/PutRequest">
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/soap/SoapPutAuthor.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType wsMsgRef="wsdlPfx:requestPUT"/>
|
||||
<pd:startX>150</pd:startX>
|
||||
<pd:startY>65</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<wsdlPfx:responsePUT>
|
||||
<part1>
|
||||
<ns4:status>
|
||||
<xsl:value-of select="$XmlPUT/root/status"/>
|
||||
</ns4:status>
|
||||
</part1>
|
||||
</wsdlPfx:responsePUT>
|
||||
</pd:returnBindings>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endType wsMsgRef="wsdlPfx:responsePUT"/>
|
||||
<pd:endX>450</pd:endX>
|
||||
<pd:endY>65</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<PutError wsMsgRef="wsdlPfx:ErrorMessage"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1721743176182</pd:targetNamespace>
|
||||
<pd:activity name="XmlPUT">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>258</pd:x>
|
||||
<pd:y>65</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlPUT.process</processName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<ns:author>
|
||||
<xsl:if test="$Start/wsdlPfx:requestPUT/part1/ns3:author/@id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPUT/part1/ns3:author/@id"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<ns:firstName>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPUT/part1/ns3:author/ns3:firstName"/>
|
||||
</ns:firstName>
|
||||
<ns:lastName>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPUT/part1/ns3:author/ns3:lastName"/>
|
||||
</ns:lastName>
|
||||
<ns:age>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPUT/part1/ns3:author/ns3:age"/>
|
||||
</ns:age>
|
||||
<ns:dateOfBirth>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPUT/part1/ns3:author/ns3:dateOfBirth"/>
|
||||
</ns:dateOfBirth>
|
||||
<ns:dateOfDeath>
|
||||
<xsl:value-of select="$Start/wsdlPfx:requestPUT/part1/ns3:author/ns3:dateOfDeath"/>
|
||||
</ns:dateOfDeath>
|
||||
</ns:author>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>222</pd:x>
|
||||
<pd:y>204</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>false</catchAll>
|
||||
<fault>localname=XMLPutError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>356</pd:x>
|
||||
<pd:y>206</pd:y>
|
||||
<config>
|
||||
<faultName>PutError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput>
|
||||
<data>
|
||||
<wsdlPfx:ErrorMessage>
|
||||
<part1>
|
||||
<ns5:error>
|
||||
<xsl:value-of select="$Catch/XMLPutError/message"/>
|
||||
</ns5:error>
|
||||
</part1>
|
||||
</wsdlPfx:ErrorMessage>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>XmlPUT</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>XmlPUT</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>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.demo.com/author">
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.demo.com/author" xmlns:ns1="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:ns4="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns3="http://xmlns.example.com/1721737885605">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/xml/Xml.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
@@ -17,10 +17,34 @@
|
||||
<pd:startY>180</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<xsl:copy-of select="$XmlGetDelete/root/ns2:author"/>
|
||||
<status>
|
||||
<xsl:value-of select="if (boolean($XmlPostPut/root/status)) then $XmlPostPut/root/status else $XmlGetDelete/root/status"/>
|
||||
</status>
|
||||
<xsl:copy-of select="$XmlGet/root/ns2:author"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean($XmlPut/root/status)">
|
||||
<status>
|
||||
<xsl:value-of select="$XmlPut/root/status"/>
|
||||
</status>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($XmlPost/root/status)">
|
||||
<status>
|
||||
<xsl:value-of select="$XmlPost/root/status"/>
|
||||
</status>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($XmlGet/root/status)">
|
||||
<status>
|
||||
<xsl:value-of select="$XmlGet/root/status"/>
|
||||
</status>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($XmlDelete/root/status)">
|
||||
<status>
|
||||
<xsl:value-of select="$XmlDelete/root/status"/>
|
||||
</status>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<status>
|
||||
<xsl:value-of select=""something went wrong""/>
|
||||
</status>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</root>
|
||||
</pd:returnBindings>
|
||||
<pd:endName>End</pd:endName>
|
||||
@@ -34,43 +58,90 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>758</pd:endX>
|
||||
<pd:endY>180</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:endX>823</pd:endX>
|
||||
<pd:endY>177</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<XMLError>
|
||||
<xsd:element name="XMLError">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="message" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</XMLError>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719484154608</pd:targetNamespace>
|
||||
<pd:activity name="XmlPostPut">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>530</pd:x>
|
||||
<pd:y>180</pd:y>
|
||||
<pd:activity name="CatchPutError">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>406</pd:x>
|
||||
<pd:y>478</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlPOST.process</processName>
|
||||
<processNameXPath>concat('/Processes/xml/author/Xml',$Start/root/method ,'.process')</processNameXPath>
|
||||
<fault>localname=XMLPutError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>583</pd:x>
|
||||
<pd:y>694</pd:y>
|
||||
<config>
|
||||
<faultName>XMLError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<ns2:author>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="number($Map-Data/root/id)"/>
|
||||
</xsl:attribute>
|
||||
<ns2:firstName>
|
||||
<xsl:value-of select="$Map-Data/root/firstname"/>
|
||||
</ns2:firstName>
|
||||
<ns2:lastName>
|
||||
<xsl:value-of select="$Map-Data/root/lastname"/>
|
||||
</ns2:lastName>
|
||||
<ns2:age>
|
||||
<xsl:value-of select="number($Map-Data/root/age)"/>
|
||||
</ns2:age>
|
||||
<ns2:dateOfBirth>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-birth"/>
|
||||
</ns2:dateOfBirth>
|
||||
<ns2:dateOfDeath>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-death"/>
|
||||
</ns2:dateOfDeath>
|
||||
</ns2:author>
|
||||
</root>
|
||||
<ns4:ActivityInput>
|
||||
<data>
|
||||
<XMLError>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean($CatchPutError/XMLPutError/message)">
|
||||
<message>
|
||||
<xsl:value-of select="$CatchPutError/XMLPutError/message"/>
|
||||
</message>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($CatchPostError/xmlPostError/message)">
|
||||
<message>
|
||||
<xsl:value-of select="$CatchPostError/xmlPostError/message"/>
|
||||
</message>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($CatchDeleteError/xmlDeleteError/message)">
|
||||
<message>
|
||||
<xsl:value-of select="$CatchDeleteError/xmlDeleteError/message"/>
|
||||
</message>
|
||||
</xsl:when>
|
||||
<xsl:when test="boolean($CatchGetError/xmlGetError/message)">
|
||||
<message>
|
||||
<xsl:value-of select="$CatchGetError/xmlGetError/message"/>
|
||||
</message>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<message>
|
||||
<xsl:value-of select=""something went wrong""/>
|
||||
</message>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</XMLError>
|
||||
</data>
|
||||
</ns4:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Log">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>178</pd:x>
|
||||
<pd:y>180</pd:y>
|
||||
<config>
|
||||
<role>User</role>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns:ActivityInput>
|
||||
<message>
|
||||
<xsl:value-of select="$Start/root/data"/>
|
||||
</message>
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Map Data">
|
||||
@@ -97,16 +168,16 @@
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<firstname>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"firstname":"'), '"')"/>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"firstName":"'), '"')"/>
|
||||
</firstname>
|
||||
<lastname>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"lastname":"'), '"')"/>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"lastName":"'), '"')"/>
|
||||
</lastname>
|
||||
<date-of-birth>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"day-of-birth":"'), '"')"/>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"dateOfBirth":"'), '"')"/>
|
||||
</date-of-birth>
|
||||
<date-of-death>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"day-of-death":"'), '"')"/>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"dateOfDeath":"'), '"')"/>
|
||||
</date-of-death>
|
||||
<id>
|
||||
<xsl:value-of select="if ($Start/root/method = 'POST' or $Start/root/method = 'PUT' ) then substring-before(substring-after($Start/root/data, '"id":"'), '"') else substring-after($Start/root/data, 'id=')"/>
|
||||
@@ -117,30 +188,13 @@
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Log">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>178</pd:x>
|
||||
<pd:y>180</pd:y>
|
||||
<config>
|
||||
<role>User</role>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns:ActivityInput>
|
||||
<message>
|
||||
<xsl:value-of select="$Start/root/data"/>
|
||||
</message>
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="XmlGetDelete">
|
||||
<pd:activity name="XmlDelete">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>527</pd:x>
|
||||
<pd:y>343</pd:y>
|
||||
<pd:x>569</pd:x>
|
||||
<pd:y>145</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlGET.process</processName>
|
||||
<processNameXPath>concat('/Processes/xml/author/Xml',$Start/root/method ,'.process')</processNameXPath>
|
||||
<processName>/Processes/xml/author/XmlDELETE.process</processName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
@@ -150,8 +204,125 @@
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="XmlGet">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>569</pd:x>
|
||||
<pd:y>402</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlGET.process</processName>
|
||||
<processNameXPath/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<id>
|
||||
<xsl:value-of select="number($Map-Data/root/id)"/>
|
||||
</id>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="XmlPost">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>569</pd:x>
|
||||
<pd:y>34</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlPOST.process</processName>
|
||||
<processNameXPath/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<ns2:author>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="number($Map-Data/root/id)"/>
|
||||
</xsl:attribute>
|
||||
<ns2:firstName>
|
||||
<xsl:value-of select="$Map-Data/root/firstname"/>
|
||||
</ns2:firstName>
|
||||
<ns2:lastName>
|
||||
<xsl:value-of select="$Map-Data/root/lastname"/>
|
||||
</ns2:lastName>
|
||||
<ns2:age>
|
||||
<xsl:value-of select="number($Map-Data/root/age)"/>
|
||||
</ns2:age>
|
||||
<ns2:dateOfBirth>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-birth"/>
|
||||
</ns2:dateOfBirth>
|
||||
<ns2:dateOfDeath>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-death"/>
|
||||
</ns2:dateOfDeath>
|
||||
</ns2:author>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="XmlPut">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>569</pd:x>
|
||||
<pd:y>284</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/xml/author/XmlPUT.process</processName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<ns2:author>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="number($Map-Data/root/id)"/>
|
||||
</xsl:attribute>
|
||||
<ns2:firstName>
|
||||
<xsl:value-of select="$Map-Data/root/firstname"/>
|
||||
</ns2:firstName>
|
||||
<ns2:lastName>
|
||||
<xsl:value-of select="$Map-Data/root/lastname"/>
|
||||
</ns2:lastName>
|
||||
<ns2:age>
|
||||
<xsl:value-of select="number($Map-Data/root/age)"/>
|
||||
</ns2:age>
|
||||
<ns2:dateOfBirth>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-birth"/>
|
||||
</ns2:dateOfBirth>
|
||||
<ns2:dateOfDeath>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-death"/>
|
||||
</ns2:dateOfDeath>
|
||||
</ns2:author>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="CatchPostError">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>321</pd:x>
|
||||
<pd:y>562</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=xmlPostError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="CatchDeleteError">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>295</pd:x>
|
||||
<pd:y>684</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=xmlDeleteError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="CatchGetError">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>327</pd:x>
|
||||
<pd:y>812</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=xmlGetError</fault>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>XmlPostPut</pd:from>
|
||||
<pd:from>XmlPost</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
@@ -159,12 +330,12 @@
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Map Data</pd:from>
|
||||
<pd:to>XmlPostPut</pd:to>
|
||||
<pd:xpathDescription>postOrPut</pd:xpathDescription>
|
||||
<pd:to>XmlPost</pd:to>
|
||||
<pd:xpathDescription>Post</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Start/root/method = 'POST' or $Start/root/method = 'PUT'</pd:xpath>
|
||||
<pd:xpath>$Start/root/method = 'POST'</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
@@ -182,18 +353,78 @@
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Map Data</pd:from>
|
||||
<pd:to>XmlGetDelete</pd:to>
|
||||
<pd:xpathDescription>getOrDelete</pd:xpathDescription>
|
||||
<pd:to>XmlGet</pd:to>
|
||||
<pd:xpathDescription>Get</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Start/root/method = 'DELETE' or $Start/root/method = 'GET'</pd:xpath>
|
||||
<pd:xpath>$Start/root/method = 'GET'</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>XmlGetDelete</pd:from>
|
||||
<pd:from>XmlGet</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>Map Data</pd:from>
|
||||
<pd:to>XmlDelete</pd:to>
|
||||
<pd:xpathDescription>Delete</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Start/root/method = 'DELETE'</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Map Data</pd:from>
|
||||
<pd:to>XmlPut</pd:to>
|
||||
<pd:xpathDescription>Put</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Start/root/method = 'PUT'</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>XmlPut</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>XmlDelete</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>CatchPutError</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>CatchPostError</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>CatchDeleteError</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>CatchGetError</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?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:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:ns4="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<pd:ProcessDefinition xmlns:pfx="http://www.demo.com/author" xmlns:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:ns4="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns6="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns5="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
@@ -15,7 +15,7 @@
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>184</pd:startX>
|
||||
<pd:startY>205</pd:startY>
|
||||
<pd:startY>196</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
@@ -35,91 +35,63 @@
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>1072</pd:endX>
|
||||
<pd:endY>205</pd:endY>
|
||||
<pd:endY>196</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<DeleteError wsMsgRef="pfx3:ErrorMessage"/>
|
||||
<DeleteError>
|
||||
<xsd:element name="xmlDeleteError">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="message" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</DeleteError>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719483544323</pd:targetNamespace>
|
||||
<pd:activity name="Read File">
|
||||
<pd:type>com.tibco.plugin.file.FileReadActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileReadActivity</pd:resourceType>
|
||||
<pd:x>373</pd:x>
|
||||
<pd:y>205</pd:y>
|
||||
<pd:activity name="FTP Get">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPGetActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPGetActivityUI</pd:resourceType>
|
||||
<pd:x>349</pd:x>
|
||||
<pd:y>196</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<Timeout>120000</Timeout>
|
||||
<isBinary>false</isBinary>
|
||||
<Overwrite>false</Overwrite>
|
||||
<useProcessData>true</useProcessData>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns4:ReadActivityInputClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
</ns4:ReadActivityInputClass>
|
||||
<FTPGetInputData>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns6:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
</FTPGetInputData>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>514</pd:x>
|
||||
<pd:y>205</pd:y>
|
||||
<pd:activity name="FTP Put">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPPutActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPPutActivityUI</pd:resourceType>
|
||||
<pd:x>949</pd:x>
|
||||
<pd:y>196</pd:y>
|
||||
<config>
|
||||
<inputStyle>text</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
<term ref="pfx:authors"/>
|
||||
<Timeout>120000</Timeout>
|
||||
<FireWall>false</FireWall>
|
||||
<isBinary>false</isBinary>
|
||||
<Append>false</Append>
|
||||
<useProcessData>true</useProcessData>
|
||||
<Overwrite>true</Overwrite>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$Read-File/ns2:ReadActivityOutputTextClass/fileContent/textContent"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Remove Author By Id">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
<pd:x>680</pd:x>
|
||||
<pd:y>213</pd:y>
|
||||
<config>
|
||||
<element ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx:authors>
|
||||
<xsl:copy-of select="$Parse-XML/pfx:authors/pfx:author[@id!= $Start/root/id]"/>
|
||||
</pfx:authors>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>821</pd:x>
|
||||
<pd:y>205</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xsl:copy-of select="$Remove-Author-By-Id/pfx:authors"/>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Write File">
|
||||
<pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType>
|
||||
<pd:x>959</pd:x>
|
||||
<pd:y>205</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<compressFile>None</compressFile>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns2:WriteActivityInputTextClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
<textContent>
|
||||
<FTPPutInputDataASCII>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns6:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
<Data>
|
||||
<xsl:value-of select="$Render-XML/xmlString"/>
|
||||
</textContent>
|
||||
</ns2:WriteActivityInputTextClass>
|
||||
</Data>
|
||||
</FTPPutInputDataASCII>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
@@ -133,31 +105,60 @@
|
||||
<pd:inputBindings>
|
||||
<ns3:ActivityInput>
|
||||
<data>
|
||||
<pfx3:ErrorMessage>
|
||||
<part1>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'could not remove author with given id because it does not exist'"/>
|
||||
</pfx2:error>
|
||||
</part1>
|
||||
</pfx3:ErrorMessage>
|
||||
<xmlDeleteError>
|
||||
<message>
|
||||
<xsl:value-of select=""author with given ID does not exist""/>
|
||||
</message>
|
||||
</xmlDeleteError>
|
||||
</data>
|
||||
</ns3:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>Read File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Read File</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>514</pd:x>
|
||||
<pd:y>196</pd:y>
|
||||
<config>
|
||||
<inputStyle>text</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$FTP-Get/FTPGetOutputASCII/ASCIIData"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Remove Author By Id">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
<pd:x>680</pd:x>
|
||||
<pd:y>203</pd:y>
|
||||
<config>
|
||||
<element ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx:authors>
|
||||
<xsl:copy-of select="$Parse-XML/pfx:authors/pfx:author[@id!= $Start/root/id]"/>
|
||||
</pfx:authors>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>821</pd:x>
|
||||
<pd:y>196</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xsl:copy-of select="$Remove-Author-By-Id/pfx:authors"/>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Parse XML</pd:from>
|
||||
<pd:to>Remove Author By Id</pd:to>
|
||||
@@ -172,20 +173,6 @@
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>Write File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Write File</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>Parse XML</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
@@ -195,4 +182,32 @@
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>not(boolean($Parse-XML/pfx:authors/pfx:author[@id=$Start/root/id]))</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>FTP Get</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Get</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>FTP Put</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Put</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>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.demo.com/author" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
||||
<pd:ProcessDefinition xmlns:pfx="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:pfx2="http://www.demo.com/author" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/xml/author/XmlGET.process</pd:name>
|
||||
@@ -37,7 +37,15 @@
|
||||
<pd:endX>924</pd:endX>
|
||||
<pd:endY>81</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<GETError wsMsgRef="pfx3:ErrorMessage"/>
|
||||
<GETError>
|
||||
<xsd:element name="xmlGetError">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="message" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</GETError>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace>
|
||||
@@ -54,26 +62,10 @@
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent"/>
|
||||
<xsl:value-of select="$FTP-Get/FTPGetOutputASCII/ASCIIData"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Read File">
|
||||
<pd:type>com.tibco.plugin.file.FileReadActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileReadActivity</pd:resourceType>
|
||||
<pd:x>330</pd:x>
|
||||
<pd:y>78</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx:ReadActivityInputClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
</pfx:ReadActivityInputClass>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Get Author By Id">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
@@ -99,17 +91,35 @@
|
||||
<pd:inputBindings>
|
||||
<ns2:ActivityInput>
|
||||
<data>
|
||||
<pfx3:ErrorMessage>
|
||||
<part1>
|
||||
<ns3:error>
|
||||
<xsl:value-of select="'could not get the author with given id, because it does not exist'"/>
|
||||
</ns3:error>
|
||||
</part1>
|
||||
</pfx3:ErrorMessage>
|
||||
<xmlGetError>
|
||||
<message>
|
||||
<xsl:value-of select=""author with given id does not exist""/>
|
||||
</message>
|
||||
</xmlGetError>
|
||||
</data>
|
||||
</ns2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="FTP Get">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPGetActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPGetActivityUI</pd:resourceType>
|
||||
<pd:x>312</pd:x>
|
||||
<pd:y>76</pd:y>
|
||||
<config>
|
||||
<Timeout>120000</Timeout>
|
||||
<isBinary>false</isBinary>
|
||||
<Overwrite>false</Overwrite>
|
||||
<useProcessData>true</useProcessData>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<FTPGetInputData>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns1:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
</FTPGetInputData>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Parse XML</pd:from>
|
||||
<pd:to>Get Author By Id</pd:to>
|
||||
@@ -117,20 +127,6 @@
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Read File</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>Read File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Get Author By Id</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
@@ -147,4 +143,18 @@
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>otherwise</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>FTP Get</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Get</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?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:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns3="http://www.tibco.com/namespaces/tnt/plugins/file/v2">
|
||||
<pd:ProcessDefinition xmlns:pfx="http://www.demo.com/author" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns3="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns5="http://www.tibco.com/pe/EngineTypes" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/author.xsd"/>
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/xml/author/XmlPOST.process</pd:name>
|
||||
@@ -13,8 +13,8 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>51</pd:startX>
|
||||
<pd:startY>212</pd:startY>
|
||||
<pd:startX>132</pd:startX>
|
||||
<pd:startY>237</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
@@ -33,51 +33,26 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>940</pd:endX>
|
||||
<pd:endY>218</pd:endY>
|
||||
<pd:endX>1141</pd:endX>
|
||||
<pd:endY>237</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<PostError wsMsgRef="pfx3:ErrorMessage"/>
|
||||
<PostError>
|
||||
<xsd:element name="xmlPostError">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="message" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</PostError>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace>
|
||||
<pd:activity name="Read File">
|
||||
<pd:type>com.tibco.plugin.file.FileReadActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileReadActivity</pd:resourceType>
|
||||
<pd:x>194</pd:x>
|
||||
<pd:y>212</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns3:ReadActivityInputClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
</ns3:ReadActivityInputClass>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>340</pd:x>
|
||||
<pd:y>215</pd:y>
|
||||
<config>
|
||||
<inputStyle>text</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Add Author">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
<pd:x>509</pd:x>
|
||||
<pd:y>216</pd:y>
|
||||
<pd:x>710</pd:x>
|
||||
<pd:y>237</pd:y>
|
||||
<config>
|
||||
<element ref="pfx:authors"/>
|
||||
</config>
|
||||
@@ -88,11 +63,125 @@
|
||||
</pfx:authors>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Add Authors Template">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>393</pd:x>
|
||||
<pd:y>370</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="FTP Get">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPGetActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPGetActivityUI</pd:resourceType>
|
||||
<pd:x>393</pd:x>
|
||||
<pd:y>237</pd:y>
|
||||
<config>
|
||||
<Timeout>120000</Timeout>
|
||||
<isBinary>false</isBinary>
|
||||
<Overwrite>false</Overwrite>
|
||||
<useProcessData>true</useProcessData>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<FTPGetInputData>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns1:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
</FTPGetInputData>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="FTP Put">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPPutActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPPutActivityUI</pd:resourceType>
|
||||
<pd:x>1005</pd:x>
|
||||
<pd:y>237</pd:y>
|
||||
<config>
|
||||
<Timeout>120000</Timeout>
|
||||
<FireWall>false</FireWall>
|
||||
<isBinary>false</isBinary>
|
||||
<Append>false</Append>
|
||||
<useProcessData>true</useProcessData>
|
||||
<Overwrite>true</Overwrite>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<FTPPutInputDataASCII>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns1:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
<Data>
|
||||
<xsl:value-of select="$Render-XML/xmlString"/>
|
||||
</Data>
|
||||
</FTPPutInputDataASCII>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>544</pd:x>
|
||||
<pd:y>81</pd:y>
|
||||
<config>
|
||||
<faultName>PostError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx2:ActivityInput>
|
||||
<data>
|
||||
<xmlPostError>
|
||||
<message>
|
||||
<xsl:value-of select=""auhtor with given id already exist""/>
|
||||
</message>
|
||||
</xmlPostError>
|
||||
</data>
|
||||
</pfx2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="InitializeFile">
|
||||
<pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType>
|
||||
<pd:x>709</pd:x>
|
||||
<pd:y>363</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<compressFile>None</compressFile>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns:WriteActivityInputTextClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="$_globalVariables/ns1:GlobalVariables/XMLDatabasePath"/>
|
||||
</fileName>
|
||||
<textContent>
|
||||
<xsl:value-of select="$Add-Authors-Template/xmlString"/>
|
||||
</textContent>
|
||||
</ns:WriteActivityInputTextClass>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>541</pd:x>
|
||||
<pd:y>237</pd:y>
|
||||
<config>
|
||||
<inputStyle>text</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$FTP-Get/FTPGetOutputASCII/ASCIIData"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>669</pd:x>
|
||||
<pd:y>216</pd:y>
|
||||
<pd:x>870</pd:x>
|
||||
<pd:y>237</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
@@ -102,96 +191,6 @@
|
||||
<xsl:copy-of select="$Add-Author/pfx:authors"/>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Write File">
|
||||
<pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType>
|
||||
<pd:x>802</pd:x>
|
||||
<pd:y>216</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<compressFile>None</compressFile>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns:WriteActivityInputTextClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
<textContent>
|
||||
<xsl:value-of select="$Render-XML/xmlString"/>
|
||||
</textContent>
|
||||
</ns:WriteActivityInputTextClass>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Add Authors Template">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>192</pd:x>
|
||||
<pd:y>348</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings/>
|
||||
</pd:activity>
|
||||
<pd:activity name="InitializeFile">
|
||||
<pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType>
|
||||
<pd:x>508</pd:x>
|
||||
<pd:y>341</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<compressFile>None</compressFile>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns:WriteActivityInputTextClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
<textContent>
|
||||
<xsl:value-of select="$Add-Authors-Template/xmlString"/>
|
||||
</textContent>
|
||||
</ns:WriteActivityInputTextClass>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>343</pd:x>
|
||||
<pd:y>59</pd:y>
|
||||
<config>
|
||||
<faultName>PostError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx2:ActivityInput>
|
||||
<data>
|
||||
<pfx3:ErrorMessage>
|
||||
<part1>
|
||||
<ns4:error>
|
||||
<xsl:value-of select="'could not add author with given id because this id is already in use'"/>
|
||||
</ns4:error>
|
||||
</part1>
|
||||
</pfx3:ErrorMessage>
|
||||
</data>
|
||||
</pfx2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>Read File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Read File</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:xpathDescription>fileNotEmpty</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>string-length($Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent)>0</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Parse XML</pd:from>
|
||||
<pd:to>Add Author</pd:to>
|
||||
@@ -206,27 +205,6 @@
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>Write File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Write File</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>Read File</pd:from>
|
||||
<pd:to>Add Authors Template</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>otherwise</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Add Authors Template</pd:from>
|
||||
<pd:to>InitializeFile</pd:to>
|
||||
@@ -250,4 +228,41 @@
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>boolean($Parse-XML/pfx:authors/pfx:author[@id=$Start/root/pfx:author/@id])</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>FTP Get</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Get</pd:from>
|
||||
<pd:to>Add Authors Template</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>otherwise</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Get</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:xpathDescription>FileNotEmpty</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>string-length($FTP-Get/FTPGetOutputASCII/ASCIIData)>2</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>FTP Put</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Put</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>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?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:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx4="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
|
||||
<pd:ProcessDefinition xmlns:pfx="http://www.demo.com/author" xmlns:pfx2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx4="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/ErrorSchema.xsd2" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/author.xsd"/>
|
||||
<wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/xml/author/XmlPUT.process</pd:name>
|
||||
@@ -14,7 +14,7 @@
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>35</pd:startX>
|
||||
<pd:startY>148</pd:startY>
|
||||
<pd:startY>142</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
@@ -34,93 +34,63 @@
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>849</pd:endX>
|
||||
<pd:endY>147</pd:endY>
|
||||
<pd:endY>142</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<PutError wsMsgRef="pfx4:ErrorMessage"/>
|
||||
<PutError>
|
||||
<xsd:element name="XMLPutError">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="message" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</PutError>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace>
|
||||
<pd:activity name="Read File">
|
||||
<pd:type>com.tibco.plugin.file.FileReadActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileReadActivity</pd:resourceType>
|
||||
<pd:x>193</pd:x>
|
||||
<pd:y>147</pd:y>
|
||||
<pd:activity name="FTP Get">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPGetActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPGetActivityUI</pd:resourceType>
|
||||
<pd:x>181</pd:x>
|
||||
<pd:y>142</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<Timeout>120000</Timeout>
|
||||
<isBinary>false</isBinary>
|
||||
<Overwrite>false</Overwrite>
|
||||
<useProcessData>true</useProcessData>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns2:ReadActivityInputClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
</ns2:ReadActivityInputClass>
|
||||
<FTPGetInputData>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns1:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
</FTPGetInputData>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>340</pd:x>
|
||||
<pd:y>148</pd:y>
|
||||
<pd:activity name="FTP Put">
|
||||
<pd:type>com.tibco.plugin.ftp.FTPPutActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FTPPutActivityUI</pd:resourceType>
|
||||
<pd:x>727</pd:x>
|
||||
<pd:y>142</pd:y>
|
||||
<config>
|
||||
<inputStyle>text</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
<term ref="pfx:authors"/>
|
||||
<Timeout>120000</Timeout>
|
||||
<FireWall>false</FireWall>
|
||||
<isBinary>false</isBinary>
|
||||
<Append>false</Append>
|
||||
<useProcessData>true</useProcessData>
|
||||
<Overwrite>true</Overwrite>
|
||||
<SharedUserData>/LocalResources/FTP Connection.sharedftp</SharedUserData>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Update Author With Id">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
<pd:x>465</pd:x>
|
||||
<pd:y>155</pd:y>
|
||||
<config>
|
||||
<element ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx:authors>
|
||||
<xsl:copy-of select="$Start/root/pfx:author"/>
|
||||
<xsl:variable name="var" select="$Start/root/pfx:author/@id"/>
|
||||
<xsl:copy-of select="$Parse-XML/pfx:authors/pfx:author[@id!=$var]"/>
|
||||
</pfx:authors>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>598</pd:x>
|
||||
<pd:y>149</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xsl:copy-of select="$Update-Author-With-Id/pfx:authors"/>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Write File">
|
||||
<pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType>
|
||||
<pd:x>725</pd:x>
|
||||
<pd:y>150</pd:y>
|
||||
<config>
|
||||
<encoding>text</encoding>
|
||||
<compressFile>None</compressFile>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns:WriteActivityInputTextClass>
|
||||
<fileName>
|
||||
<xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/>
|
||||
</fileName>
|
||||
<textContent>
|
||||
<FTPPutInputDataASCII>
|
||||
<RemoteFileName>
|
||||
<xsl:value-of select="$_globalVariables/ns1:GlobalVariables/XMLDatabasePath"/>
|
||||
</RemoteFileName>
|
||||
<Data>
|
||||
<xsl:value-of select="$Render-XML/xmlString"/>
|
||||
</textContent>
|
||||
</ns:WriteActivityInputTextClass>
|
||||
</Data>
|
||||
</FTPPutInputDataASCII>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Generate Error">
|
||||
@@ -134,31 +104,62 @@
|
||||
<pd:inputBindings>
|
||||
<pfx3:ActivityInput>
|
||||
<data>
|
||||
<pfx4:ErrorMessage>
|
||||
<part1>
|
||||
<ns3:error>
|
||||
<xsl:value-of select="'could not update author with given id becuase it does not exist'"/>
|
||||
</ns3:error>
|
||||
</part1>
|
||||
</pfx4:ErrorMessage>
|
||||
<XMLPutError>
|
||||
<message>
|
||||
<xsl:value-of select=""author with given id does not exist""/>
|
||||
</message>
|
||||
</XMLPutError>
|
||||
</data>
|
||||
</pfx3:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>Read File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Read File</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:activity name="Parse XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType>
|
||||
<pd:x>340</pd:x>
|
||||
<pd:y>142</pd:y>
|
||||
<config>
|
||||
<inputStyle>text</inputStyle>
|
||||
<xsdVersion>default</xsdVersion>
|
||||
<validateOutput>true</validateOutput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xmlString>
|
||||
<xsl:value-of select="$FTP-Get/FTPGetOutputASCII/ASCIIData"/>
|
||||
</xmlString>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>601</pd:x>
|
||||
<pd:y>142</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>false</validateInput>
|
||||
<term ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<xsl:copy-of select="$Update-Author-With-Id/pfx:authors"/>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Update Author With Id">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
<pd:x>465</pd:x>
|
||||
<pd:y>149</pd:y>
|
||||
<config>
|
||||
<element ref="pfx:authors"/>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx:authors>
|
||||
<xsl:copy-of select="$Start/root/pfx:author"/>
|
||||
<xsl:variable name="var" select="$Start/root/pfx:author/@id"/>
|
||||
<xsl:copy-of select="$Parse-XML/pfx:authors/pfx:author[@id!=$var]"/>
|
||||
</pfx:authors>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Parse XML</pd:from>
|
||||
<pd:to>Update Author With Id</pd:to>
|
||||
@@ -173,20 +174,6 @@
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>Write File</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Write File</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>Parse XML</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
@@ -196,4 +183,32 @@
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>not(boolean($Parse-XML/pfx:authors/pfx:author[@id=$Start/root/pfx:author/@id]))</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>FTP Get</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Get</pd:from>
|
||||
<pd:to>Parse XML</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>FTP Put</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>FTP Put</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>
|
||||
Reference in New Issue
Block a user