sql fix
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user