sql finished

This commit is contained in:
wojciech
2024-07-30 13:43:01 +02:00
parent 5f0d1fc37f
commit 8ad0d81675
4 changed files with 253 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
<?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">
<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/WSDL/WSDL.wsdl"/>
<pd:name>Processes/sql/author/SqlGET.process</pd:name>
<pd:startName>Start</pd:startName>
@@ -17,25 +17,25 @@
<pd:returnBindings>
<root>
<pfx:author>
<xsl:if test="$JDBC-Query/resultSet/Record[1]/id">
<xsl:if test="$GetAuthor/resultSet/Record[1]/id">
<xsl:attribute name="id">
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/id"/>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/>
</xsl:attribute>
</xsl:if>
<pfx:firstName>
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/firstname"/>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/>
</pfx:firstName>
<pfx:lastName>
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/lastname"/>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/>
</pfx:lastName>
<pfx:age>
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/age"/>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/>
</pfx:age>
<pfx:dateOfBirth>
<xsl:value-of select="substring-before($JDBC-Query/resultSet/Record[1]/date_of_birth,&quot;T&quot;)"/>
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth,&quot;T&quot;)"/>
</pfx:dateOfBirth>
<pfx:dateOfDeath>
<xsl:value-of select="substring-before($JDBC-Query/resultSet/Record[1]/date_of_death,&quot;T&quot;)"/>
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death,&quot;T&quot;)"/>
</pfx:dateOfDeath>
</pfx:author>
<status>
@@ -59,10 +59,10 @@
<pd:errorSchemas/>
<pd:processVariables/>
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
<pd:activity name="JDBC Query">
<pd:activity name="GetAuthor">
<pd:type>com.tibco.plugin.jdbc.JDBCQueryActivity</pd:type>
<pd:resourceType>ae.activities.JDBCQueryActivity</pd:resourceType>
<pd:x>459</pd:x>
<pd:x>463</pd:x>
<pd:y>109</pd:y>
<config>
<timeout>10</timeout>
@@ -112,8 +112,51 @@
</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:transition>
<pd:from>JDBC Query</pd:from>
<pd:from>GetAuthor</pd:from>
<pd:to>End</pd:to>
<pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor>
@@ -121,7 +164,21 @@
</pd:transition>
<pd:transition>
<pd:from>Start</pd:from>
<pd:to>JDBC Query</pd:to>
<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>