239 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			239 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
 | |
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/author.xsd"/>
 | |
|     <pd:name>Processes/sql/author/SqlGET.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>152</pd:startX>
 | |
|     <pd:startY>111</pd:startY>
 | |
|     <pd:returnBindings>
 | |
|         <root>
 | |
|             <pfx:author>
 | |
|                 <xsl:if test="$GetAuthor/resultSet/Record[1]/id">
 | |
|                     <xsl:attribute name="id">
 | |
|                         <xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/>
 | |
|                     </xsl:attribute>
 | |
|                 </xsl:if>
 | |
|                 <pfx:firstName>
 | |
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/>
 | |
|                 </pfx:firstName>
 | |
|                 <pfx:lastName>
 | |
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/>
 | |
|                 </pfx:lastName>
 | |
|                 <pfx:age>
 | |
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/>
 | |
|                 </pfx:age>
 | |
|                 <pfx:dateOfBirth>
 | |
|                     <xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth,"T")"/>
 | |
|                 </pfx:dateOfBirth>
 | |
|                 <pfx:dateOfDeath>
 | |
|                     <xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death,"T")"/>
 | |
|                 </pfx:dateOfDeath>
 | |
|             </pfx:author>
 | |
|             <status>
 | |
|                 <xsl:value-of select="'author received'"/>
 | |
|             </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>726</pd:endX>
 | |
|     <pd:endY>108</pd:endY>
 | |
|     <pd:errorSchemas>
 | |
|         <AuthorNotFound>
 | |
|             <xsd:element name="root">
 | |
|                 <xsd:complexType>
 | |
|                     <xsd:sequence>
 | |
|                         <xsd:element name="AuthorID" type="xsd:int"/>
 | |
|                     </xsd:sequence>
 | |
|                 </xsd:complexType>
 | |
|             </xsd:element>
 | |
|         </AuthorNotFound>
 | |
|     </pd:errorSchemas>
 | |
|     <pd:processVariables/>
 | |
|     <pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
 | |
|     <pd:activity name="GetAuthor">
 | |
|         <pd:type>com.tibco.plugin.jdbc.JDBCQueryActivity</pd:type>
 | |
|         <pd:resourceType>ae.activities.JDBCQueryActivity</pd:resourceType>
 | |
|         <pd:x>463</pd:x>
 | |
|         <pd:y>109</pd:y>
 | |
|         <config>
 | |
|             <timeout>10</timeout>
 | |
|             <commit>false</commit>
 | |
|             <maxRows>100</maxRows>
 | |
|             <emptyStrAsNil>false</emptyStrAsNil>
 | |
|             <jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig>
 | |
|             <statement>select * from author where id=?</statement>
 | |
|             <Prepared_Param_DataType>
 | |
|                 <parameter>
 | |
|                     <parameterName>id</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|             </Prepared_Param_DataType>
 | |
|             <oraObjects/>
 | |
|             <oraTables/>
 | |
|             <QueryOutputCachedSchemaColumns>id</QueryOutputCachedSchemaColumns>
 | |
|             <QueryOutputCachedSchemaDataTypes>4</QueryOutputCachedSchemaDataTypes>
 | |
|             <QueryOutputCachedSchemaDataTypesName>INTEGER</QueryOutputCachedSchemaDataTypesName>
 | |
|             <QueryOutputCachedSchemaStatus>OptionalElement</QueryOutputCachedSchemaStatus>
 | |
|             <QueryOutputCachedSchemaColumns>firstname</QueryOutputCachedSchemaColumns>
 | |
|             <QueryOutputCachedSchemaDataTypes>12</QueryOutputCachedSchemaDataTypes>
 | |
|             <QueryOutputCachedSchemaDataTypesName>VARCHAR</QueryOutputCachedSchemaDataTypesName>
 | |
|             <QueryOutputCachedSchemaStatus>OptionalElement</QueryOutputCachedSchemaStatus>
 | |
|             <QueryOutputCachedSchemaColumns>lastname</QueryOutputCachedSchemaColumns>
 | |
|             <QueryOutputCachedSchemaDataTypes>12</QueryOutputCachedSchemaDataTypes>
 | |
|             <QueryOutputCachedSchemaDataTypesName>VARCHAR</QueryOutputCachedSchemaDataTypesName>
 | |
|             <QueryOutputCachedSchemaStatus>OptionalElement</QueryOutputCachedSchemaStatus>
 | |
|             <QueryOutputCachedSchemaColumns>date_of_birth</QueryOutputCachedSchemaColumns>
 | |
|             <QueryOutputCachedSchemaDataTypes>12</QueryOutputCachedSchemaDataTypes>
 | |
|             <QueryOutputCachedSchemaDataTypesName>TEXT</QueryOutputCachedSchemaDataTypesName>
 | |
|             <QueryOutputCachedSchemaStatus>OptionalElement</QueryOutputCachedSchemaStatus>
 | |
|             <QueryOutputCachedSchemaColumns>date_of_death</QueryOutputCachedSchemaColumns>
 | |
|             <QueryOutputCachedSchemaDataTypes>12</QueryOutputCachedSchemaDataTypes>
 | |
|             <QueryOutputCachedSchemaDataTypesName>TEXT</QueryOutputCachedSchemaDataTypesName>
 | |
|             <QueryOutputCachedSchemaStatus>OptionalElement</QueryOutputCachedSchemaStatus>
 | |
|             <QueryOutputCachedSchemaColumns>age</QueryOutputCachedSchemaColumns>
 | |
|             <QueryOutputCachedSchemaDataTypes>4</QueryOutputCachedSchemaDataTypes>
 | |
|             <QueryOutputCachedSchemaDataTypesName>INT</QueryOutputCachedSchemaDataTypesName>
 | |
|             <QueryOutputCachedSchemaStatus>OptionalElement</QueryOutputCachedSchemaStatus>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <jdbcQueryActivityInput>
 | |
|                 <id>
 | |
|                     <xsl:value-of select="$Start/root/id"/>
 | |
|                 </id>
 | |
|             </jdbcQueryActivityInput>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:activity name="LogInputData">
 | |
|         <pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
 | |
|         <pd:resourceType>ae.activities.log</pd:resourceType>
 | |
|         <pd:x>285</pd:x>
 | |
|         <pd:y>110</pd:y>
 | |
|         <config>
 | |
|             <role>User</role>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <ns:ActivityInput>
 | |
|                 <message>
 | |
|                     <xsl:value-of select="concat('input data',string($Start/root))"/>
 | |
|                 </message>
 | |
|             </ns:ActivityInput>
 | |
|         </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>257</pd:x>
 | |
|         <pd:y>246</pd:y>
 | |
|         <pd:handler>true</pd:handler>
 | |
|         <config>
 | |
|             <catchAll>true</catchAll>
 | |
|         </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>427</pd:x>
 | |
|         <pd:y>248</pd:y>
 | |
|         <config>
 | |
|             <faultName/>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <ns1:ActivityInput>
 | |
|                 <message>
 | |
|                     <xsl:value-of select="string($Catch/exceptiondata)"/>
 | |
|                 </message>
 | |
|             </ns1: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>599</pd:x>
 | |
|         <pd:y>111</pd:y>
 | |
|         <config>
 | |
|             <renderAsText>text</renderAsText>
 | |
|             <validateInput>true</validateInput>
 | |
|             <renderDefaultPrefix>true</renderDefaultPrefix>
 | |
|             <term ref="pfx:author"/>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <pfx:author>
 | |
|                 <xsl:if test="$GetAuthor/resultSet/Record[1]/id">
 | |
|                     <xsl:attribute name="id">
 | |
|                         <xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/>
 | |
|                     </xsl:attribute>
 | |
|                 </xsl:if>
 | |
|                 <pfx:firstName>
 | |
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/>
 | |
|                 </pfx:firstName>
 | |
|                 <pfx:lastName>
 | |
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/>
 | |
|                 </pfx:lastName>
 | |
|                 <pfx:age>
 | |
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/>
 | |
|                 </pfx:age>
 | |
|                 <pfx:dateOfBirth>
 | |
|                     <xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth, 'T')"/>
 | |
|                 </pfx:dateOfBirth>
 | |
|                 <pfx:dateOfDeath>
 | |
|                     <xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death, 'T')"/>
 | |
|                 </pfx:dateOfDeath>
 | |
|             </pfx:author>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:transition>
 | |
|         <pd:from>Start</pd:from>
 | |
|         <pd:to>LogInputData</pd:to>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>always</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>LogInputData</pd:from>
 | |
|         <pd:to>GetAuthor</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:transition>
 | |
|         <pd:from>GetAuthor</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>Render XML</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> | 
