184 lines
		
	
	
		
			7.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			184 lines
		
	
	
		
			7.8 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 | |
|     <pd:name>Processes/sql/SQLPUT.process</pd:name>
 | |
|     <pd:startName>Start</pd:startName>
 | |
|     <pd:startType>
 | |
|         <xsd:element name="root">
 | |
|             <xsd:complexType>
 | |
|                 <xsd:sequence>
 | |
|                     <xsd:element name="data" type="xsd:string"/>
 | |
|                 </xsd:sequence>
 | |
|             </xsd:complexType>
 | |
|         </xsd:element>
 | |
|     </pd:startType>
 | |
|     <pd:startX>145</pd:startX>
 | |
|     <pd:startY>64</pd:startY>
 | |
|     <pd:returnBindings/>
 | |
|     <pd:endName>End</pd:endName>
 | |
|     <pd:endX>644</pd:endX>
 | |
|     <pd:endY>66</pd:endY>
 | |
|     <pd:errorSchemas/>
 | |
|     <pd:processVariables/>
 | |
|     <pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
 | |
|     <pd:activity name="Map Data">
 | |
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
 | |
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
 | |
|         <pd:x>262</pd:x>
 | |
|         <pd:y>64</pd:y>
 | |
|         <config>
 | |
|             <element>
 | |
|                 <xsd:element name="root">
 | |
|                     <xsd:complexType>
 | |
|                         <xsd:sequence>
 | |
|                             <xsd:element name="firstname" type="xsd:string"/>
 | |
|                             <xsd:element name="lastname" type="xsd:string"/>
 | |
|                             <xsd:element name="date-of-birth" type="xsd:string"/>
 | |
|                             <xsd:element name="date-of-death" type="xsd:string"/>
 | |
|                             <xsd:element name="id" type="xsd:string"/>
 | |
|                             <xsd:element name="age" type="xsd:string"/>
 | |
|                         </xsd:sequence>
 | |
|                     </xsd:complexType>
 | |
|                 </xsd:element>
 | |
|             </element>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <root>
 | |
|                 <firstname>
 | |
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"firstname":"'), '"')"/>
 | |
|                 </firstname>
 | |
|                 <lastname>
 | |
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"lastname":"'), '"')"/>
 | |
|                 </lastname>
 | |
|                 <date-of-birth>
 | |
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"day-of-birth":"'), '"')"/>
 | |
|                 </date-of-birth>
 | |
|                 <date-of-death>
 | |
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"day-of-death":"'), '"')"/>
 | |
|                 </date-of-death>
 | |
|                 <id>
 | |
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"id":"'), '"')"/>
 | |
|                 </id>
 | |
|                 <age>
 | |
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"age":"'), '"')"/>
 | |
|                 </age>
 | |
|             </root>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:activity name="JDBC Update">
 | |
|         <pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
 | |
|         <pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
 | |
|         <pd:x>391</pd:x>
 | |
|         <pd:y>64</pd:y>
 | |
|         <config>
 | |
|             <timeout>10</timeout>
 | |
|             <commit>false</commit>
 | |
|             <emptyStrAsNil>false</emptyStrAsNil>
 | |
|             <jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig>
 | |
|             <statement>UPDATE author
 | |
| SET firstname = ?, lastname = ?, date_of_birth = ?, date_of_death = ?, age = ?
 | |
| WHERE id = ?;
 | |
| </statement>
 | |
|             <Prepared_Param_DataType>
 | |
|                 <parameter>
 | |
|                     <parameterName>param_firstname</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|                 <parameter>
 | |
|                     <parameterName>param_lastname</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|                 <parameter>
 | |
|                     <parameterName>param_date-of_birth</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|                 <parameter>
 | |
|                     <parameterName>param_date-of_death</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|                 <parameter>
 | |
|                     <parameterName>param_age</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|                 <parameter>
 | |
|                     <parameterName>param_id</parameterName>
 | |
|                     <dataType>VARCHAR</dataType>
 | |
|                 </parameter>
 | |
|             </Prepared_Param_DataType>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <jdbcUpdateActivityInput>
 | |
|                 <param_firstname>
 | |
|                     <xsl:value-of select="$Map-Data/root/firstname"/>
 | |
|                 </param_firstname>
 | |
|                 <param_lastname>
 | |
|                     <xsl:value-of select="$Map-Data/root/lastname"/>
 | |
|                 </param_lastname>
 | |
|                 <param_date-of_birth>
 | |
|                     <xsl:value-of select="$Map-Data/root/date-of-birth"/>
 | |
|                 </param_date-of_birth>
 | |
|                 <param_date-of_death>
 | |
|                     <xsl:value-of select="$Map-Data/root/date-of-death"/>
 | |
|                 </param_date-of_death>
 | |
|                 <param_age>
 | |
|                     <xsl:value-of select="$Map-Data/root/age"/>
 | |
|                 </param_age>
 | |
|                 <param_id>
 | |
|                     <xsl:choose>
 | |
|                         <xsl:when test="exists($Map-Data/root/id)">
 | |
|                             <xsl:value-of select="$Map-Data/root/id"/>
 | |
|                         </xsl:when>
 | |
|                         <xsl:otherwise>
 | |
|                             <xsl:attribute name="xsi:nil">true</xsl:attribute>
 | |
|                         </xsl:otherwise>
 | |
|                     </xsl:choose>
 | |
|                 </param_id>
 | |
|             </jdbcUpdateActivityInput>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:activity name="Notify">
 | |
|         <pd:type>com.tibco.plugin.waitnotify.NotifyActivity</pd:type>
 | |
|         <pd:resourceType>ae.activities.notifyActivity</pd:resourceType>
 | |
|         <pd:x>524</pd:x>
 | |
|         <pd:y>65</pd:y>
 | |
|         <config>
 | |
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig>
 | |
|         </config>
 | |
|         <pd:inputBindings>
 | |
|             <input>
 | |
|                 <root>
 | |
|                     <status>
 | |
|                         <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="'ok'"/>
 | |
|                     </status>
 | |
|                 </root>
 | |
|             </input>
 | |
|         </pd:inputBindings>
 | |
|     </pd:activity>
 | |
|     <pd:transition>
 | |
|         <pd:from>Start</pd:from>
 | |
|         <pd:to>Map Data</pd:to>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>always</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>Map Data</pd:from>
 | |
|         <pd:to>JDBC Update</pd:to>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>always</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>JDBC Update</pd:from>
 | |
|         <pd:to>Notify</pd:to>
 | |
|         <pd:lineType>Default</pd:lineType>
 | |
|         <pd:lineColor>-16777216</pd:lineColor>
 | |
|         <pd:conditionType>always</pd:conditionType>
 | |
|     </pd:transition>
 | |
|     <pd:transition>
 | |
|         <pd:from>Notify</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> | 
