117 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			117 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?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> | 
