sql fix
This commit is contained in:
7
Processes/sql/author/.folder
Normal file
7
Processes/sql/author/.folder
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Repository:repository xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002">
|
||||
<folder resourceType="ae.designerfolder" name="author" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false">
|
||||
<description/>
|
||||
<fixedChildren/>
|
||||
</folder>
|
||||
</Repository:repository>
|
||||
80
Processes/sql/author/SqlDELETE.process
Normal file
80
Processes/sql/author/SqlDELETE.process
Normal file
@@ -0,0 +1,80 @@
|
||||
<?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/author/SqlDELETE.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>157</pd:startX>
|
||||
<pd:startY>64</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
<xsl:value-of select="concat('author deleted, rows affected: ', $JDBC-Update/jdbcUpdateActivityOutput/noOfUpdates)"/>
|
||||
</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>681</pd:endX>
|
||||
<pd:endY>62</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="JDBC Update">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
|
||||
<pd:x>424</pd:x>
|
||||
<pd:y>61</pd:y>
|
||||
<config>
|
||||
<timeout>10</timeout>
|
||||
<commit>false</commit>
|
||||
<emptyStrAsNil>false</emptyStrAsNil>
|
||||
<jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig>
|
||||
<statement>DELETE FROM author WHERE id=?;</statement>
|
||||
<Prepared_Param_DataType>
|
||||
<parameter>
|
||||
<parameterName>param_id</parameterName>
|
||||
<dataType>VARCHAR</dataType>
|
||||
</parameter>
|
||||
</Prepared_Param_DataType>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<jdbcUpdateActivityInput>
|
||||
<param_id>
|
||||
<xsl:value-of select="$Start/root/id"/>
|
||||
</param_id>
|
||||
</jdbcUpdateActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>JDBC Update</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:transition>
|
||||
<pd:from>Start</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:ProcessDefinition>
|
||||
129
Processes/sql/author/SqlGET.process
Normal file
129
Processes/sql/author/SqlGET.process
Normal file
@@ -0,0 +1,129 @@
|
||||
<?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/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="$JDBC-Query/resultSet/Record[1]/id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/id"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<pfx:firstName>
|
||||
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/firstname"/>
|
||||
</pfx:firstName>
|
||||
<pfx:lastName>
|
||||
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/lastname"/>
|
||||
</pfx:lastName>
|
||||
<pfx:age>
|
||||
<xsl:value-of select="$JDBC-Query/resultSet/Record[1]/age"/>
|
||||
</pfx:age>
|
||||
<pfx:dateOfBirth>
|
||||
<xsl:value-of select="substring-before($JDBC-Query/resultSet/Record[1]/date_of_birth,"T")"/>
|
||||
</pfx:dateOfBirth>
|
||||
<pfx:dateOfDeath>
|
||||
<xsl:value-of select="substring-before($JDBC-Query/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/>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="JDBC Query">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCQueryActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCQueryActivity</pd:resourceType>
|
||||
<pd:x>459</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:transition>
|
||||
<pd:from>JDBC Query</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:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>JDBC Query</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
136
Processes/sql/author/SqlPOST.process
Normal file
136
Processes/sql/author/SqlPOST.process
Normal file
@@ -0,0 +1,136 @@
|
||||
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/sql/author/SqlPOST.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="pfx:author"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>152</pd:startX>
|
||||
<pd:startY>112</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
<xsl:value-of select="'new author added'"/>
|
||||
</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>778</pd:endX>
|
||||
<pd:endY>112</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="JDBC Update">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
|
||||
<pd:x>384</pd:x>
|
||||
<pd:y>112</pd:y>
|
||||
<config>
|
||||
<timeout>10</timeout>
|
||||
<commit>false</commit>
|
||||
<emptyStrAsNil>false</emptyStrAsNil>
|
||||
<jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig>
|
||||
<statement>INSERT INTO author ( id,firstname, lastname, date_of_birth, date_of_death, age) VALUES (?,?,?,?,?,?);</statement>
|
||||
<Prepared_Param_DataType>
|
||||
<parameter>
|
||||
<parameterName>param_id</parameterName>
|
||||
<dataType>INTEGER</dataType>
|
||||
</parameter>
|
||||
<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>DATE</dataType>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<parameterName>param_date-of_death</parameterName>
|
||||
<dataType>DATE</dataType>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<parameterName>param_age</parameterName>
|
||||
<dataType>INTEGER</dataType>
|
||||
</parameter>
|
||||
</Prepared_Param_DataType>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<jdbcUpdateActivityInput>
|
||||
<param_id>
|
||||
<xsl:choose>
|
||||
<xsl:when test="exists($Start/root/pfx:author/@id)">
|
||||
<xsl:value-of select="$Start/root/pfx:author/@id"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="xsi:nil">true</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</param_id>
|
||||
<param_firstname>
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:firstName"/>
|
||||
</param_firstname>
|
||||
<param_lastname>
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:lastName"/>
|
||||
</param_lastname>
|
||||
<param_date-of_birth>
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:dateOfBirth"/>
|
||||
</param_date-of_birth>
|
||||
<param_date-of_death>
|
||||
<xsl:choose>
|
||||
<xsl:when test="exists($Start/root/pfx:author/pfx:dateOfDeath)">
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:dateOfDeath"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="xsi:nil">true</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</param_date-of_death>
|
||||
<param_age>
|
||||
<xsl:choose>
|
||||
<xsl:when test="exists($Start/root/pfx:author/pfx:age)">
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:age"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="xsi:nil">true</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</param_age>
|
||||
</jdbcUpdateActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>JDBC Update</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:transition>
|
||||
<pd:from>Start</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:ProcessDefinition>
|
||||
139
Processes/sql/author/SqlPUT.process
Normal file
139
Processes/sql/author/SqlPUT.process
Normal file
@@ -0,0 +1,139 @@
|
||||
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<pd:name>Processes/sql/author/SqlPUT.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element ref="pfx:author"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>145</pd:startX>
|
||||
<pd:startY>64</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
<xsl:value-of select="concat("update succes, rows affected",$JDBC-Update/jdbcUpdateActivityOutput/noOfUpdates)"/>
|
||||
</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>644</pd:endX>
|
||||
<pd:endY>66</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="JDBC Update">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
|
||||
<pd:x>387</pd:x>
|
||||
<pd:y>65</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>DATE</dataType>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<parameterName>param_date-of_death</parameterName>
|
||||
<dataType>DATE</dataType>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<parameterName>param_age</parameterName>
|
||||
<dataType>INTEGER</dataType>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<parameterName>param_id</parameterName>
|
||||
<dataType>INTEGER</dataType>
|
||||
</parameter>
|
||||
</Prepared_Param_DataType>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<jdbcUpdateActivityInput>
|
||||
<param_firstname>
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:firstName"/>
|
||||
</param_firstname>
|
||||
<param_lastname>
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:lastName"/>
|
||||
</param_lastname>
|
||||
<param_date-of_birth>
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:dateOfBirth"/>
|
||||
</param_date-of_birth>
|
||||
<param_date-of_death>
|
||||
<xsl:choose>
|
||||
<xsl:when test="exists($Start/root/pfx:author/pfx:dateOfDeath)">
|
||||
<xsl:value-of select="$Start/root/pfx:author/pfx:dateOfDeath"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="xsi:nil">true</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</param_date-of_death>
|
||||
<param_age>
|
||||
<xsl:choose>
|
||||
<xsl:when test="exists(number($Start/root/pfx:author/pfx:age))">
|
||||
<xsl:value-of select="number($Start/root/pfx:author/pfx:age)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="xsi:nil">true</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</param_age>
|
||||
<param_id>
|
||||
<xsl:choose>
|
||||
<xsl:when test="exists(number($Start/root/pfx:author/@id))">
|
||||
<xsl:value-of select="number($Start/root/pfx:author/@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:transition>
|
||||
<pd:from>JDBC Update</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:transition>
|
||||
<pd:from>Start</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:ProcessDefinition>
|
||||
Reference in New Issue
Block a user