refactor
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?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:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<pd:name>Processes/sql/InitializeDatabase.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
@@ -13,10 +14,10 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>54</pd:startX>
|
||||
<pd:startY>121</pd:startY>
|
||||
<pd:startX>80</pd:startX>
|
||||
<pd:startY>163</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<xsl:copy-of select="$select-operation/root"/>
|
||||
<xsl:copy-of select="$Select-Operation/root"/>
|
||||
</pd:returnBindings>
|
||||
<pd:endName>End</pd:endName>
|
||||
<pd:endType>
|
||||
@@ -29,16 +30,18 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>823</pd:endX>
|
||||
<pd:endY>117</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:endX>838</pd:endX>
|
||||
<pd:endY>163</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<Error ref="pfx2:root"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719483377637</pd:targetNamespace>
|
||||
<pd:activity name="initialize database">
|
||||
<pd:activity name="Initialize Database">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCGeneralActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCGeneralActivity</pd:resourceType>
|
||||
<pd:x>280</pd:x>
|
||||
<pd:y>123</pd:y>
|
||||
<pd:x>308</pd:x>
|
||||
<pd:y>169</pd:y>
|
||||
<config>
|
||||
<timeout>10</timeout>
|
||||
<commit>false</commit>
|
||||
@@ -53,11 +56,11 @@
|
||||
</jdbcGeneralActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="select operation">
|
||||
<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>117</pd:y>
|
||||
<pd:x>513</pd:x>
|
||||
<pd:y>163</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/SelectDatabase.process</processName>
|
||||
</config>
|
||||
@@ -72,25 +75,59 @@
|
||||
</root>
|
||||
</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>365</pd:x>
|
||||
<pd:y>288</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
</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>543</pd:x>
|
||||
<pd:y>288</pd:y>
|
||||
<config>
|
||||
<faultName>Error</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns2:ActivityInput>
|
||||
<data>
|
||||
<xsl:copy-of select="$Catch/pfx2:root"/>
|
||||
</data>
|
||||
</ns2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>initialize database</pd:to>
|
||||
<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: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: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: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>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<pd:name>Processes/sql/SelectDatabase.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
@@ -13,13 +14,13 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>156</pd:startX>
|
||||
<pd:startY>180</pd:startY>
|
||||
<pd:startX>130</pd:startX>
|
||||
<pd:startY>163</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<xsl:copy-of select="$SqlGET_DELETE/root/pfx:author"/>
|
||||
<xsl:copy-of select="$Sql-Get-Delete/root/pfx:author"/>
|
||||
<status>
|
||||
<xsl:value-of select="if (boolean($SqlPOST_PUT/root/status)) then $SqlPOST_PUT/root/status else $SqlGET_DELETE/root/status"/>
|
||||
<xsl:value-of select="if (boolean($Sql-Post-Put/root/status)) then $Sql-Post-Put/root/status else $Sql-Get-Delete/root/status"/>
|
||||
</status>
|
||||
</root>
|
||||
</pd:returnBindings>
|
||||
@@ -34,16 +35,18 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>802</pd:endX>
|
||||
<pd:endY>184</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:endX>796</pd:endX>
|
||||
<pd:endY>163</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<SQLError ref="pfx2:root"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719567794423</pd:targetNamespace>
|
||||
<pd:activity name="SqlPOST_PUT">
|
||||
<pd:activity name="Sql Post Put">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>603</pd:x>
|
||||
<pd:y>304</pd:y>
|
||||
<pd:x>563</pd:x>
|
||||
<pd:y>317</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/author/SqlPOST.process</processName>
|
||||
<processNameXPath>concat('/Processes/sql/author/Sql',$Start/root/method ,'.process')</processNameXPath>
|
||||
@@ -52,32 +55,32 @@
|
||||
<root>
|
||||
<pfx:author>
|
||||
<xsl:attribute xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="id">
|
||||
<xsl:value-of select="number($Map-Data/root/id)"/>
|
||||
<xsl:value-of select="number($Get-Author-From-Raw-Data/root/id)"/>
|
||||
</xsl:attribute>
|
||||
<pfx:firstName>
|
||||
<xsl:value-of select="$Map-Data/root/firstname"/>
|
||||
<xsl:value-of select="$Get-Author-From-Raw-Data/root/firstname"/>
|
||||
</pfx:firstName>
|
||||
<pfx:lastName>
|
||||
<xsl:value-of select="$Map-Data/root/lastname"/>
|
||||
<xsl:value-of select="$Get-Author-From-Raw-Data/root/lastname"/>
|
||||
</pfx:lastName>
|
||||
<pfx:age>
|
||||
<xsl:value-of select="number($Map-Data/root/age)"/>
|
||||
<xsl:value-of select="number($Get-Author-From-Raw-Data/root/age)"/>
|
||||
</pfx:age>
|
||||
<pfx:dateOfBirth>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-birth"/>
|
||||
<xsl:value-of select="$Get-Author-From-Raw-Data/root/date-of-birth"/>
|
||||
</pfx:dateOfBirth>
|
||||
<pfx:dateOfDeath>
|
||||
<xsl:value-of select="$Map-Data/root/date-of-death"/>
|
||||
<xsl:value-of select="$Get-Author-From-Raw-Data/root/date-of-death"/>
|
||||
</pfx:dateOfDeath>
|
||||
</pfx:author>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Map Data">
|
||||
<pd:activity name="Get Author From Raw Data">
|
||||
<pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.MapperActivity</pd:resourceType>
|
||||
<pd:x>388</pd:x>
|
||||
<pd:y>183</pd:y>
|
||||
<pd:x>353</pd:x>
|
||||
<pd:y>170</pd:y>
|
||||
<config>
|
||||
<element>
|
||||
<xsd:element name="root">
|
||||
@@ -117,11 +120,11 @@
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="SqlGET_DELETE">
|
||||
<pd:activity name="Sql Get Delete">
|
||||
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
|
||||
<pd:resourceType>ae.process.subprocess</pd:resourceType>
|
||||
<pd:x>600</pd:x>
|
||||
<pd:y>74</pd:y>
|
||||
<pd:x>567</pd:x>
|
||||
<pd:y>163</pd:y>
|
||||
<config>
|
||||
<processName>/Processes/sql/author/SqlGET.process</processName>
|
||||
<processNameXPath>concat('/Processes/sql/author/Sql',$Start/root/method ,'.process')</processNameXPath>
|
||||
@@ -129,46 +132,83 @@
|
||||
<pd:inputBindings>
|
||||
<root>
|
||||
<id>
|
||||
<xsl:value-of select="number($Map-Data/root/id)"/>
|
||||
<xsl:value-of select="number($Get-Author-From-Raw-Data/root/id)"/>
|
||||
</id>
|
||||
</root>
|
||||
</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>399</pd:x>
|
||||
<pd:y>509</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>false</catchAll>
|
||||
<fault>localname=root namespace=http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2</fault>
|
||||
</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>658</pd:x>
|
||||
<pd:y>507</pd:y>
|
||||
<config>
|
||||
<faultName>Schema0</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns2:ActivityInput>
|
||||
<data>
|
||||
<xsl:copy-of select="$Catch/pfx2:root"/>
|
||||
</data>
|
||||
</ns2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>Map Data</pd:to>
|
||||
<pd:to>Get Author From Raw 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>SqlGET_DELETE</pd:to>
|
||||
<pd:from>Get Author From Raw Data</pd:from>
|
||||
<pd:to>Sql Get Delete</pd:to>
|
||||
<pd:xpathDescription>GetDelete</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Start/root/method = 'DELETE' or $Start/root/method = 'GET'</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Map Data</pd:from>
|
||||
<pd:to>SqlPOST_PUT</pd:to>
|
||||
<pd:from>Get Author From Raw Data</pd:from>
|
||||
<pd:to>Sql Post Put</pd:to>
|
||||
<pd:xpathDescription>PostPut</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Start/root/method = 'PUT' or $Start/root/method = 'POST'</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>SqlPOST_PUT</pd:from>
|
||||
<pd:from>Sql Post Put</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>SqlGET_DELETE</pd:from>
|
||||
<pd:from>Sql Get Delete</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>Catch</pd:from>
|
||||
<pd:to>Generate Error</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<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:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<pd:name>Processes/sql/author/SqlDELETE.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
@@ -17,7 +18,7 @@
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
<xsl:value-of select="concat('author deleted, rows affected: ', $DeleteAuthor/jdbcUpdateActivityOutput/noOfUpdates)"/>
|
||||
<xsl:value-of select="concat('author deleted, rows affected: ', $Delete-Author/jdbcUpdateActivityOutput/noOfUpdates)"/>
|
||||
</status>
|
||||
</root>
|
||||
</pd:returnBindings>
|
||||
@@ -34,10 +35,12 @@
|
||||
</pd:endType>
|
||||
<pd:endX>681</pd:endX>
|
||||
<pd:endY>62</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:errorSchemas>
|
||||
<DeleteError ref="pfx2:root"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="DeleteAuthor">
|
||||
<pd:activity name="Delete Author">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
|
||||
<pd:x>424</pd:x>
|
||||
@@ -66,8 +69,8 @@
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>249</pd:x>
|
||||
<pd:y>164</pd:y>
|
||||
<pd:x>256</pd:x>
|
||||
<pd:y>328</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>true</catchAll>
|
||||
@@ -77,20 +80,24 @@
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>514</pd:x>
|
||||
<pd:y>165</pd:y>
|
||||
<pd:x>516</pd:x>
|
||||
<pd:y>331</pd:y>
|
||||
<config>
|
||||
<faultName/>
|
||||
<faultName>DeleteError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns2:ActivityInput>
|
||||
<message>
|
||||
<xsl:value-of select="string($Catch/exceptiondata)"/>
|
||||
</message>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'could not remove the author with given id, because it does not exist'"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="LogInputData">
|
||||
<pd:activity name="Log Input Data">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>284</pd:x>
|
||||
@@ -106,12 +113,32 @@
|
||||
</ns:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Author With Given Id Does Not Exist">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>427</pd:x>
|
||||
<pd:y>232</pd:y>
|
||||
<config>
|
||||
<faultName>DeleteError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns2:ActivityInput>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="$Delete-Author/jdbcUpdateActivityOutput/noOfUpdates"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns2:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>DeleteAuthor</pd:from>
|
||||
<pd:from>Delete Author</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
<pd:conditionType>otherwise</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Catch</pd:from>
|
||||
@@ -122,16 +149,25 @@
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>LogInputData</pd:to>
|
||||
<pd:to>Log Input Data</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>DeleteAuthor</pd:to>
|
||||
<pd:from>Log Input Data</pd:from>
|
||||
<pd:to>Delete Author</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Delete Author</pd:from>
|
||||
<pd:to>Author With Given Id Does Not Exist</pd:to>
|
||||
<pd:xpathDescription>authorDoesNotExist</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Delete-Author/jdbcUpdateActivityOutput/noOfUpdates = 0</pd:xpath>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<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:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" 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/schemas/author.xsd"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<pd:name>Processes/sql/author/SqlGET.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
@@ -17,25 +18,25 @@
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<pfx:author>
|
||||
<xsl:if test="$GetAuthor/resultSet/Record[1]/id">
|
||||
<xsl:if test="$Get-Author/resultSet/Record[1]/id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/>
|
||||
<xsl:value-of select="$Get-Author/resultSet/Record[1]/id"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<pfx:firstName>
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/>
|
||||
<xsl:value-of select="$Get-Author/resultSet/Record[1]/firstname"/>
|
||||
</pfx:firstName>
|
||||
<pfx:lastName>
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/>
|
||||
<xsl:value-of select="$Get-Author/resultSet/Record[1]/lastname"/>
|
||||
</pfx:lastName>
|
||||
<pfx:age>
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/>
|
||||
<xsl:value-of select="$Get-Author/resultSet/Record[1]/age"/>
|
||||
</pfx:age>
|
||||
<pfx:dateOfBirth>
|
||||
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth,"T")"/>
|
||||
<xsl:value-of select="substring-before($Get-Author/resultSet/Record[1]/date_of_birth,"T")"/>
|
||||
</pfx:dateOfBirth>
|
||||
<pfx:dateOfDeath>
|
||||
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death,"T")"/>
|
||||
<xsl:value-of select="substring-before($Get-Author/resultSet/Record[1]/date_of_death,"T")"/>
|
||||
</pfx:dateOfDeath>
|
||||
</pfx:author>
|
||||
<status>
|
||||
@@ -54,22 +55,14 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:endType>
|
||||
<pd:endX>726</pd:endX>
|
||||
<pd:endY>108</pd:endY>
|
||||
<pd:endX>730</pd:endX>
|
||||
<pd:endY>105</pd:endY>
|
||||
<pd:errorSchemas>
|
||||
<AuthorNotFound>
|
||||
<xsd:element name="root">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="AuthorID" type="xsd:int"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</AuthorNotFound>
|
||||
<GetError ref="pfx2:root"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="GetAuthor">
|
||||
<pd:activity name="Get Author">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCQueryActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCQueryActivity</pd:resourceType>
|
||||
<pd:x>463</pd:x>
|
||||
@@ -122,7 +115,7 @@
|
||||
</jdbcQueryActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="LogInputData">
|
||||
<pd:activity name="Log Input Data">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>285</pd:x>
|
||||
@@ -141,8 +134,8 @@
|
||||
<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:x>259</pd:x>
|
||||
<pd:y>407</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>true</catchAll>
|
||||
@@ -152,65 +145,53 @@
|
||||
<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>
|
||||
<pd:x>429</pd:x>
|
||||
<pd:y>409</pd:y>
|
||||
<config>
|
||||
<faultName/>
|
||||
<faultName>GetError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput>
|
||||
<message>
|
||||
<xsl:value-of select="string($Catch/exceptiondata)"/>
|
||||
</message>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'could not get the author with given id, because it does not exist'"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="Render XML">
|
||||
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
|
||||
<pd:x>599</pd:x>
|
||||
<pd:y>111</pd:y>
|
||||
<pd:activity name="Author Does Not Exist">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>465</pd:x>
|
||||
<pd:y>244</pd:y>
|
||||
<config>
|
||||
<renderAsText>text</renderAsText>
|
||||
<validateInput>true</validateInput>
|
||||
<renderDefaultPrefix>true</renderDefaultPrefix>
|
||||
<term ref="pfx:author"/>
|
||||
<faultName>GetError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<pfx:author>
|
||||
<xsl:if test="$GetAuthor/resultSet/Record[1]/id">
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<pfx:firstName>
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/>
|
||||
</pfx:firstName>
|
||||
<pfx:lastName>
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/>
|
||||
</pfx:lastName>
|
||||
<pfx:age>
|
||||
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/>
|
||||
</pfx:age>
|
||||
<pfx:dateOfBirth>
|
||||
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth, 'T')"/>
|
||||
</pfx:dateOfBirth>
|
||||
<pfx:dateOfDeath>
|
||||
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death, 'T')"/>
|
||||
</pfx:dateOfDeath>
|
||||
</pfx:author>
|
||||
<ns1:ActivityInput>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'empty'"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>LogInputData</pd:to>
|
||||
<pd:to>Log Input Data</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:from>Log Input Data</pd:from>
|
||||
<pd:to>Get Author</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
@@ -223,17 +204,19 @@
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>GetAuthor</pd:from>
|
||||
<pd:to>Render XML</pd:to>
|
||||
<pd:from>Get Author</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
<pd:xpathDescription>authorExist</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>boolean($Get-Author/resultSet/Record[1]/id)</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Render XML</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
<pd:from>Get Author</pd:from>
|
||||
<pd:to>Author Does Not Exist</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
<pd:conditionType>otherwise</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<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:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<pd:name>Processes/sql/author/SqlPOST.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
@@ -34,10 +35,12 @@
|
||||
</pd:endType>
|
||||
<pd:endX>778</pd:endX>
|
||||
<pd:endY>112</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:errorSchemas>
|
||||
<PostError ref="pfx2:root"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="AddAuthor">
|
||||
<pd:activity name="Add Author">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
|
||||
<pd:x>384</pd:x>
|
||||
@@ -119,7 +122,7 @@
|
||||
</jdbcUpdateActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="LogInputData">
|
||||
<pd:activity name="Log Input Data">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>274</pd:x>
|
||||
@@ -138,8 +141,8 @@
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>281</pd:x>
|
||||
<pd:y>239</pd:y>
|
||||
<pd:x>288</pd:x>
|
||||
<pd:y>323</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>true</catchAll>
|
||||
@@ -149,21 +152,28 @@
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>422</pd:x>
|
||||
<pd:y>240</pd:y>
|
||||
<pd:x>429</pd:x>
|
||||
<pd:y>324</pd:y>
|
||||
<config>
|
||||
<faultName/>
|
||||
<faultName>PostError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput>
|
||||
<message>
|
||||
<xsl:value-of select="string($Catch/exceptiondata)"/>
|
||||
</message>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'could not add the author with given id, because it already exist'"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>AddAuthor</pd:from>
|
||||
<pd:from>Add Author</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
@@ -171,14 +181,14 @@
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>LogInputData</pd:to>
|
||||
<pd:to>Log Input Data</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>AddAuthor</pd:to>
|
||||
<pd:from>Log Input Data</pd:from>
|
||||
<pd:to>Add Author</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?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">
|
||||
<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:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
|
||||
<xsd:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/>
|
||||
<pd:name>Processes/sql/author/SqlPUT.process</pd:name>
|
||||
<pd:startName>Start</pd:startName>
|
||||
<pd:startType>
|
||||
@@ -17,7 +18,7 @@
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
<status>
|
||||
<xsl:value-of select="concat("update succes, rows affected",$UpdateAuthor/jdbcUpdateActivityOutput/noOfUpdates)"/>
|
||||
<xsl:value-of select="concat("update succes, rows affected",$Update-Author/jdbcUpdateActivityOutput/noOfUpdates)"/>
|
||||
</status>
|
||||
</root>
|
||||
</pd:returnBindings>
|
||||
@@ -34,10 +35,12 @@
|
||||
</pd:endType>
|
||||
<pd:endX>644</pd:endX>
|
||||
<pd:endY>66</pd:endY>
|
||||
<pd:errorSchemas/>
|
||||
<pd:errorSchemas>
|
||||
<PutError ref="pfx2:root"/>
|
||||
</pd:errorSchemas>
|
||||
<pd:processVariables/>
|
||||
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
|
||||
<pd:activity name="UpdateAuthor">
|
||||
<pd:activity name="Update Author">
|
||||
<pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
|
||||
<pd:x>387</pd:x>
|
||||
@@ -122,7 +125,7 @@ WHERE id = ?;
|
||||
</jdbcUpdateActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="LogInputData">
|
||||
<pd:activity name="Log Input Data">
|
||||
<pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.log</pd:resourceType>
|
||||
<pd:x>255</pd:x>
|
||||
@@ -141,8 +144,8 @@ WHERE id = ?;
|
||||
<pd:activity name="Catch">
|
||||
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.catch</pd:resourceType>
|
||||
<pd:x>308</pd:x>
|
||||
<pd:y>228</pd:y>
|
||||
<pd:x>313</pd:x>
|
||||
<pd:y>327</pd:y>
|
||||
<pd:handler>true</pd:handler>
|
||||
<config>
|
||||
<catchAll>true</catchAll>
|
||||
@@ -152,36 +155,62 @@ WHERE id = ?;
|
||||
<pd:activity name="Generate Error">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>446</pd:x>
|
||||
<pd:y>226</pd:y>
|
||||
<pd:x>451</pd:x>
|
||||
<pd:y>325</pd:y>
|
||||
<config>
|
||||
<faultName/>
|
||||
<faultName>PutError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
|
||||
<message>
|
||||
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="string($Catch/exceptiondata)"/>
|
||||
</message>
|
||||
<ns1:ActivityInput>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'could not update author with given id, because it does not exist'"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:activity name="UpdateError">
|
||||
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
|
||||
<pd:resourceType>ae.activities.throw</pd:resourceType>
|
||||
<pd:x>390</pd:x>
|
||||
<pd:y>208</pd:y>
|
||||
<config>
|
||||
<faultName>PutError</faultName>
|
||||
</config>
|
||||
<pd:inputBindings>
|
||||
<ns1:ActivityInput>
|
||||
<data>
|
||||
<pfx2:root>
|
||||
<pfx2:error>
|
||||
<xsl:value-of select="'fail'"/>
|
||||
</pfx2:error>
|
||||
</pfx2:root>
|
||||
</data>
|
||||
</ns1:ActivityInput>
|
||||
</pd:inputBindings>
|
||||
</pd:activity>
|
||||
<pd:transition>
|
||||
<pd:from>UpdateAuthor</pd:from>
|
||||
<pd:from>Update Author</pd:from>
|
||||
<pd:to>End</pd:to>
|
||||
<pd:xpathDescription>authorExist</pd:xpathDescription>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
<pd:conditionType>xpath</pd:conditionType>
|
||||
<pd:xpath>$Update-Author/jdbcUpdateActivityOutput/noOfUpdates = 1</pd:xpath>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Start</pd:from>
|
||||
<pd:to>LogInputData</pd:to>
|
||||
<pd:to>Log Input Data</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>UpdateAuthor</pd:to>
|
||||
<pd:from>Log Input Data</pd:from>
|
||||
<pd:to>Update Author</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
@@ -193,4 +222,11 @@ WHERE id = ?;
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>always</pd:conditionType>
|
||||
</pd:transition>
|
||||
<pd:transition>
|
||||
<pd:from>Update Author</pd:from>
|
||||
<pd:to>UpdateError</pd:to>
|
||||
<pd:lineType>Default</pd:lineType>
|
||||
<pd:lineColor>-16777216</pd:lineColor>
|
||||
<pd:conditionType>otherwise</pd:conditionType>
|
||||
</pd:transition>
|
||||
</pd:ProcessDefinition>
|
||||
Reference in New Issue
Block a user