96 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			3.9 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">
 | |
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
 | |
|     <pd:name>Processes/sql/InitializeDatabase.process</pd:name>
 | |
|     <pd:startName>Start</pd:startName>
 | |
|     <pd:startType>
 | |
|         <xsd:element name="root">
 | |
|             <xsd:complexType>
 | |
|                 <xsd:sequence>
 | |
|                     <xsd:element name="method" type="xsd:string"/>
 | |
|                     <xsd:element name="data" type="xsd:string"/>
 | |
|                 </xsd:sequence>
 | |
|             </xsd:complexType>
 | |
|         </xsd:element>
 | |
|     </pd:startType>
 | |
|     <pd:startX>54</pd:startX>
 | |
|     <pd:startY>121</pd:startY>
 | |
|     <pd:returnBindings>
 | |
|         <xsl:copy-of select="$select-operation/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>823</pd:endX>
 | |
|     <pd:endY>117</pd:endY>
 | |
|     <pd:errorSchemas/>
 | |
|     <pd:processVariables/>
 | |
|     <pd:targetNamespace>http://xmlns.example.com/1719483377637</pd:targetNamespace>
 | |
|     <pd:activity name="initialize database">
 | |
|         <pd:type>com.tibco.plugin.jdbc.JDBCGeneralActivity</pd:type>
 | |
|         <pd:resourceType>ae.activities.JDBCGeneralActivity</pd:resourceType>
 | |
|         <pd:x>280</pd:x>
 | |
|         <pd:y>123</pd:y>
 | |
|         <config>
 | |
|             <timeout>10</timeout>
 | |
|             <commit>false</commit>
 | |
|             <maxRows>100</maxRows>
 | |
|             <jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <jdbcGeneralActivityInput>
 | |
|                 <statement>
 | |
|                     <xsl:value-of select="'CREATE TABLE IF NOT EXISTS author (id INTEGER PRIMARY KEY , firstname TEXT NOT NULL, lastname TEXT NOT NULL, date_of_birth DATE NOT NULL, date_of_death DATE, age INTEGER CHECK (age >= 0));'"/>
 | |
|                 </statement>
 | |
|             </jdbcGeneralActivityInput>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:activity name="select operation">
 | |
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
 | |
|         <pd:resourceType>ae.process.subprocess</pd:resourceType>
 | |
|         <pd:x>468</pd:x>
 | |
|         <pd:y>117</pd:y>
 | |
|         <config>
 | |
|             <processName>/Processes/sql/SelectDatabase.process</processName>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <root>
 | |
|                 <method>
 | |
|                     <xsl:value-of select="$Start/root/method"/>
 | |
|                 </method>
 | |
|                 <data>
 | |
|                     <xsl:value-of select="$Start/root/data"/>
 | |
|                 </data>
 | |
|             </root>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:transition>
 | |
|         <pd:from>Start</pd:from>
 | |
|         <pd:to>initialize database</pd:to>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>always</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>initialize database</pd:from>
 | |
|         <pd:to>select operation</pd:to>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>always</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>select operation</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> | 
