213 lines
		
	
	
		
			8.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			213 lines
		
	
	
		
			8.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <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"/>
 | |
|     <pd:name>Processes/xml/author/XmlDELETE.process</pd:name>
 | |
|     <pd:startName>Start</pd:startName>
 | |
|     <pd:startType>
 | |
|         <xsd:element name="root">
 | |
|             <xsd:complexType>
 | |
|                 <xsd:sequence>
 | |
|                     <xsd:element name="id" type="xsd:int"/>
 | |
|                 </xsd:sequence>
 | |
|             </xsd:complexType>
 | |
|         </xsd:element>
 | |
|     </pd:startType>
 | |
|     <pd:startX>184</pd:startX>
 | |
|     <pd:startY>196</pd:startY>
 | |
|     <pd:returnBindings>
 | |
|         <root>
 | |
|             <status>
 | |
|                 <xsl:value-of select="'author deleted'"/>
 | |
|             </status>
 | |
|         </root>
 | |
|     </pd:returnBindings>
 | |
|     <pd:endName>End</pd:endName>
 | |
|     <pd:endType>
 | |
|         <xsd:element name="root">
 | |
|             <xsd:complexType>
 | |
|                 <xsd:sequence>
 | |
|                     <xsd:element ref="pfx:author" minOccurs="0"/>
 | |
|                     <xsd:element name="status" type="xsd:string"/>
 | |
|                 </xsd:sequence>
 | |
|             </xsd:complexType>
 | |
|         </xsd:element>
 | |
|     </pd:endType>
 | |
|     <pd:endX>1072</pd:endX>
 | |
|     <pd:endY>196</pd:endY>
 | |
|     <pd:errorSchemas>
 | |
|         <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="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>
 | |
|             <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/ns6: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>949</pd:x>
 | |
|         <pd:y>196</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/ns6: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>515</pd:x>
 | |
|         <pd:y>390</pd:y>
 | |
|         <config>
 | |
|             <faultName>DeleteError</faultName>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <ns3:ActivityInput>
 | |
|                 <data>
 | |
|                     <xmlDeleteError>
 | |
|                         <message>
 | |
|                             <xsl:value-of select=""author with given ID does not exist""/>
 | |
|                         </message>
 | |
|                     </xmlDeleteError>
 | |
|                 </data>
 | |
|             </ns3:ActivityInput>
 | |
|         </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>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>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>otherwise</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>Remove Author By Id</pd:from>
 | |
|         <pd:to>Render XML</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>
 | |
|         <pd:xpathDescription>author with given id does not exist</pd:xpathDescription>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <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> | 
