Files
tibcoRepository/Processes/soap/SoapGetAuthor.process
2024-09-03 13:10:21 +02:00

122 lines
5.6 KiB
XML

<?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>