83 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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">
 | |
|     <pd:name>Processes/sql/sql.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/>
 | |
|     <pd:endName>End</pd:endName>
 | |
|     <pd:endX>828</pd:endX>
 | |
|     <pd:endY>111</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>275</pd:x>
 | |
|         <pd:y>126</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 book ( id INTEGER PRIMARY KEY AUTOINCREMENT,  name TEXT NOT NULL,  date DATE NOT NULL,  authorId INTEGER NOT NULL, availability BOOLEAN NOT NULL );'"/>
 | |
|                 </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>110</pd:y>
 | |
|         <config>
 | |
|             <processName>/Processes/sql/select operation.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> | 
