sql fix
This commit is contained in:
		| @@ -36,8 +36,8 @@ | ||||
|         <pd:inputBindings/> | ||||
|     </pd:starter> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>787</pd:endX> | ||||
|     <pd:endY>259</pd:endY> | ||||
|     <pd:endX>786</pd:endX> | ||||
|     <pd:endY>254</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719474540368</pd:targetNamespace> | ||||
| @@ -48,7 +48,7 @@ | ||||
|         <pd:y>263</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/xml.process</processName> | ||||
|             <processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then  '/Processes/sql/sql.process' else  '/Processes/xml/xml.process'</processNameXPath> | ||||
|             <processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then  '/Processes/sql/InitializeDatabase.process' else  '/Processes/xml/xml.process'</processNameXPath> | ||||
|             <spawn>false</spawn> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| <?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"> | ||||
|     <pd:name>Processes/sql/sql.process</pd:name> | ||||
| <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/InitializeDatabase.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
| @@ -14,10 +15,22 @@ | ||||
|     </pd:startType> | ||||
|     <pd:startX>54</pd:startX> | ||||
|     <pd:startY>121</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:returnBindings> | ||||
|         <xsl:copy-of select="$select-operation/root"/> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>828</pd:endX> | ||||
|     <pd:endY>111</pd:endY> | ||||
|     <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>823</pd:endX> | ||||
|     <pd:endY>117</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719483377637</pd:targetNamespace> | ||||
| @@ -35,7 +48,7 @@ | ||||
|         <pd:inputBindings> | ||||
|             <jdbcGeneralActivityInput> | ||||
|                 <statement> | ||||
|                     <xsl:value-of select="'CREATE TABLE IF NOT EXISTS book ( id INTEGER PRIMARY KEY AUTOINCREMENT,  name TEXT NOT NULL,  date DATE NOT NULL,  authorId INTEGER NOT NULL, availability BOOLEAN NOT NULL );'"/> | ||||
|                     <xsl:value-of select="'CREATE TABLE IF NOT EXISTS author (id INTEGER PRIMARY KEY , firstname TEXT NOT NULL, lastname TEXT NOT NULL, date_of_birth DATE NOT NULL, date_of_death DATE, age INTEGER CHECK (age >= 0));'"/> | ||||
|                 </statement> | ||||
|             </jdbcGeneralActivityInput> | ||||
|         </pd:inputBindings> | ||||
| @@ -44,9 +57,9 @@ | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>468</pd:x> | ||||
|         <pd:y>110</pd:y> | ||||
|         <pd:y>117</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/sql/select operation.process</processName> | ||||
|             <processName>/Processes/sql/SelectDatabase.process</processName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
| @@ -1,119 +0,0 @@ | ||||
| <?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"> | ||||
|     <pd:name>Processes/sql/SQLDELETE.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>150</pd:startX> | ||||
|     <pd:startY>64</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <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="Map Data"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>268</pd:x> | ||||
|         <pd:y>63</pd:y> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="id" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </element> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <id> | ||||
|                     <xsl:value-of select="substring-after($Start/root/data, 'id=')"/> | ||||
|                 </id> | ||||
|             </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>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="$Map-Data/root/id"/> | ||||
|                 </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>555</pd:x> | ||||
|         <pd:y>61</pd:y> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input> | ||||
|                 <root> | ||||
|                     <status> | ||||
|                         <xsl:value-of select="'deleted'"/> | ||||
|                     </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> | ||||
| @@ -1,197 +0,0 @@ | ||||
| <?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"> | ||||
|     <pd:name>Processes/sql/SQLGET.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>152</pd:startX> | ||||
|     <pd:startY>111</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
|             <id> | ||||
|                 <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/id"/> | ||||
|             </id> | ||||
|             <firstname> | ||||
|                 <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/firstname"/> | ||||
|             </firstname> | ||||
|             <lastname> | ||||
|                 <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/lastname"/> | ||||
|             </lastname> | ||||
|             <date-of-birth> | ||||
|                 <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/date_of_birth"/> | ||||
|             </date-of-birth> | ||||
|             <date-of-death> | ||||
|                 <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/date_of_death"/> | ||||
|             </date-of-death> | ||||
|             <age> | ||||
|                 <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/age"/> | ||||
|             </age> | ||||
|         </root> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <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="Map Data"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>304</pd:x> | ||||
|         <pd:y>110</pd:y> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="id" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </element> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <id> | ||||
|                     <xsl:value-of select="substring-after($Start/root/data, 'id=')"/> | ||||
|                 </id> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <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="$Map-Data/root/id"/> | ||||
|                 </id> | ||||
|             </jdbcQueryActivityInput> | ||||
|         </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>596</pd:x> | ||||
|         <pd:y>105</pd:y> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input> | ||||
|                 <root> | ||||
|                     <xsl:if test="$JDBC-Query/resultSet/Record[1]/id"> | ||||
|                         <id> | ||||
|                             <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/id"/> | ||||
|                         </id> | ||||
|                     </xsl:if> | ||||
|                     <xsl:if test="$JDBC-Query/resultSet/Record[1]/firstname"> | ||||
|                         <firstname> | ||||
|                             <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/firstname"/> | ||||
|                         </firstname> | ||||
|                     </xsl:if> | ||||
|                     <xsl:if test="$JDBC-Query/resultSet/Record[1]/lastname"> | ||||
|                         <lastname> | ||||
|                             <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/lastname"/> | ||||
|                         </lastname> | ||||
|                     </xsl:if> | ||||
|                     <xsl:if test="$JDBC-Query/resultSet/Record[1]/date_of_birth"> | ||||
|                         <date-of-birth> | ||||
|                             <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/date_of_birth"/> | ||||
|                         </date-of-birth> | ||||
|                     </xsl:if> | ||||
|                     <xsl:if test="$JDBC-Query/resultSet/Record[1]/date_of_death"> | ||||
|                         <date-of-death> | ||||
|                             <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/date_of_death"/> | ||||
|                         </date-of-death> | ||||
|                     </xsl:if> | ||||
|                     <xsl:if test="$JDBC-Query/resultSet/Record[1]/age"> | ||||
|                         <age> | ||||
|                             <xsl:value-of select="$JDBC-Query/resultSet/Record[1]/age"/> | ||||
|                         </age> | ||||
|                     </xsl:if> | ||||
|                     <status> | ||||
|                         <xsl:value-of select="'OK'"/> | ||||
|                     </status> | ||||
|                 </root> | ||||
|             </input> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>Map Data</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: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>JDBC Query</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> | ||||
| @@ -1,167 +0,0 @@ | ||||
| <?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"> | ||||
|     <pd:name>Processes/sql/SQLPOST.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>152</pd:startX> | ||||
|     <pd:startY>112</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>793</pd:endX> | ||||
|     <pd:endY>85</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>367</pd:x> | ||||
|         <pd:y>66</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>561</pd:x> | ||||
|         <pd:y>66</pd:y> | ||||
|         <config> | ||||
|             <timeout>10</timeout> | ||||
|             <commit>false</commit> | ||||
|             <emptyStrAsNil>false</emptyStrAsNil> | ||||
|             <jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig> | ||||
|             <statement>INSERT INTO author ( firstname, lastname, date_of_birth, date_of_death, age) VALUES (?,?,?,?,?);</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> | ||||
|             </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> | ||||
|             </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>671</pd:x> | ||||
|         <pd:y>68</pd:y> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input> | ||||
|                 <root> | ||||
|                     <status> | ||||
|                         <xsl:value-of select="'ok'"/> | ||||
|                     </status> | ||||
|                 </root> | ||||
|             </input> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <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>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>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> | ||||
| @@ -1,184 +0,0 @@ | ||||
| <?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> | ||||
							
								
								
									
										174
									
								
								Processes/sql/SelectDatabase.process
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										174
									
								
								Processes/sql/SelectDatabase.process
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,174 @@ | ||||
| <?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/SelectDatabase.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
|             <xsd:complexType> | ||||
|                 <xsd:sequence> | ||||
|                     <xsd:element name="method" type="xsd:string"/> | ||||
|                     <xsd:element name="data" type="xsd:string"/> | ||||
|                 </xsd:sequence> | ||||
|             </xsd:complexType> | ||||
|         </xsd:element> | ||||
|     </pd:startType> | ||||
|     <pd:startX>169</pd:startX> | ||||
|     <pd:startY>180</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
|             <xsl:copy-of select="$SqlGET_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"/> | ||||
|             </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>802</pd:endX> | ||||
|     <pd:endY>184</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719567794423</pd:targetNamespace> | ||||
|     <pd:activity name="SqlPOST_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> | ||||
|         <config> | ||||
|             <processName>/Processes/sql/author/SqlPOST.process</processName> | ||||
|             <processNameXPath>concat('/Processes/sql/author/Sql',$Start/root/method ,'.process')</processNameXPath> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <ns1:author xmlns:ns1="http://www.demo.com/author"> | ||||
|                     <xsl:attribute xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="id"> | ||||
|                         <xsl:value-of select="number($Map-Data/root/id)"/> | ||||
|                     </xsl:attribute> | ||||
|                     <ns1:firstName> | ||||
|                         <xsl:value-of select="$Map-Data/root/firstname"/> | ||||
|                     </ns1:firstName> | ||||
|                     <ns1:lastName> | ||||
|                         <xsl:value-of select="$Map-Data/root/lastname"/> | ||||
|                     </ns1:lastName> | ||||
|                     <ns1:age> | ||||
|                         <xsl:value-of select="number($Map-Data/root/age)"/> | ||||
|                     </ns1:age> | ||||
|                     <ns1:dateOfBirth> | ||||
|                         <xsl:value-of select="$Map-Data/root/date-of-birth"/> | ||||
|                     </ns1:dateOfBirth> | ||||
|                     <ns1:dateOfDeath> | ||||
|                         <xsl:value-of select="$Map-Data/root/date-of-death"/> | ||||
|                     </ns1:dateOfDeath> | ||||
|                 </ns1:author> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Map 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> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="root"> | ||||
|                     <xs:complexType> | ||||
|                         <xs:sequence> | ||||
|                             <xs:element name="firstname" type="xsd:string"/> | ||||
|                             <xs:element name="lastname" type="xsd:string"/> | ||||
|                             <xs:element name="date-of-birth" type="xsd:string"/> | ||||
|                             <xs:element name="date-of-death" type="xsd:string"/> | ||||
|                             <xs:element name="id" type="xsd:string"/> | ||||
|                             <xs:element name="age" type="xsd:string"/> | ||||
|                         </xs:sequence> | ||||
|                     </xs:complexType> | ||||
|                 </xs:element> | ||||
|             </element> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <firstname> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"firstname":"'), '"')"/> | ||||
|                 </firstname> | ||||
|                 <lastname> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"lastname":"'), '"')"/> | ||||
|                 </lastname> | ||||
|                 <date-of-birth> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"day-of-birth":"'), '"')"/> | ||||
|                 </date-of-birth> | ||||
|                 <date-of-death> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"day-of-death":"'), '"')"/> | ||||
|                 </date-of-death> | ||||
|                 <id> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="if ($Start/root/method = 'POST' or $Start/root/method = 'PUT' ) then substring-before(substring-after($Start/root/data, '"id":"'), '"') else substring-after($Start/root/data, 'id=')"/> | ||||
|                 </id> | ||||
|                 <age> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="number(substring-before(substring-after($Start/root/data, '"age":"'), '"'))"/> | ||||
|                 </age> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="SqlGET_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> | ||||
|         <config> | ||||
|             <processName>/Processes/sql/author/SqlGET.process</processName> | ||||
|             <processNameXPath>concat('/Processes/sql/author/Sql',$Start/root/method ,'.process')</processNameXPath> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <id> | ||||
|                     <xsl:value-of select="number($Map-Data/root/id)"/> | ||||
|                 </id> | ||||
|             </root> | ||||
|         </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>SqlGET_DELETE</pd:to> | ||||
|         <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: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: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:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
| @@ -1,6 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <Repository:repository xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002"> | ||||
|     <folder resourceType="ae.designerfolder" name="wsdl" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false"> | ||||
|     <folder resourceType="ae.designerfolder" name="author" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false"> | ||||
|         <description/> | ||||
|         <fixedChildren/> | ||||
|     </folder> | ||||
							
								
								
									
										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> | ||||
| @@ -1,78 +0,0 @@ | ||||
| <?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"> | ||||
|     <pd:name>Processes/sql/select operation.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
|             <xsd:complexType> | ||||
|                 <xsd:sequence> | ||||
|                     <xsd:element name="method" type="xsd:string"/> | ||||
|                     <xsd:element name="data" type="xsd:string"/> | ||||
|                 </xsd:sequence> | ||||
|             </xsd:complexType> | ||||
|         </xsd:element> | ||||
|     </pd:startType> | ||||
|     <pd:startX>95</pd:startX> | ||||
|     <pd:startY>76</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>718</pd:endX> | ||||
|     <pd:endY>81</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719567794423</pd:targetNamespace> | ||||
|     <pd:activity name="Log"> | ||||
|         <pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.log</pd:resourceType> | ||||
|         <pd:x>400</pd:x> | ||||
|         <pd:y>78</pd:y> | ||||
|         <config> | ||||
|             <role>User</role> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns:ActivityInput> | ||||
|                 <message> | ||||
|                     <xsl:value-of select="$Start/root/data"/> | ||||
|                 </message> | ||||
|             </ns:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="selected process"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>245</pd:x> | ||||
|         <pd:y>77</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/sql/SQLPOST.process</processName> | ||||
|             <processNameXPath>concat( '/Processes/SQL', $Start/root/method ,'.process' )</processNameXPath> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <data> | ||||
|                     <xsl:value-of select="$Start/root/data"/> | ||||
|                 </data> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>Log</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>selected process</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>selected process</pd:from> | ||||
|         <pd:to>Log</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
							
								
								
									
										7
									
								
								Processes/xml/author/.folder
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Processes/xml/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> | ||||
| @@ -1,7 +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/namespaces/tnt/plugins/file" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:ns4="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/xml/XMLDELETE.process</pd:name> | ||||
|     <pd:name>Processes/xml/author/XmlDELETE.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
| @@ -1,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.demo.com/author" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <pd:name>Processes/xml/XMLGET.process</pd:name> | ||||
|     <pd:name>Processes/xml/author/XmlGET.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
| @@ -1,7 +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:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns3="http://www.tibco.com/namespaces/tnt/plugins/file/v2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <pd:name>Processes/xml/XMLPOST.process</pd:name> | ||||
|     <pd:name>Processes/xml/author/XmlPOST.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
| @@ -1,7 +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:pfx2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <pd:name>Processes/xml/XMLPUT.process</pd:name> | ||||
|     <pd:name>Processes/xml/author/XmlPUT.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
|         <xsd:element name="root"> | ||||
| @@ -17,9 +17,9 @@ | ||||
|     <pd:startY>77</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
|             <xsl:copy-of select="$get-or-delete/root/ns2:author"/> | ||||
|             <xsl:copy-of select="$XmlGET_DELETE/root/ns2:author"/> | ||||
|             <status> | ||||
|                 <xsl:value-of select="if (boolean($XMLPOST/root/status)) then $XMLPOST/root/status else $get-or-delete/root/status"/> | ||||
|                 <xsl:value-of select="if (boolean($XmlPOST_PUT/root/status)) then $XmlPOST_PUT/root/status else $XmlGET_DELETE/root/status"/> | ||||
|             </status> | ||||
|         </root> | ||||
|     </pd:returnBindings> | ||||
| @@ -39,14 +39,14 @@ | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719484154608</pd:targetNamespace> | ||||
|     <pd:activity name="XMLPOST"> | ||||
|     <pd:activity name="XmlPOST_PUT"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>545</pd:x> | ||||
|         <pd:y>41</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/XMLPOST.process</processName> | ||||
|             <processNameXPath>concat('/Processes/xml/XML',$Start/root/method ,'.process')</processNameXPath> | ||||
|             <processName>/Processes/xml/author/XmlPOST.process</processName> | ||||
|             <processNameXPath>concat('/Processes/xml/author/Xml',$Start/root/method ,'.process')</processNameXPath> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
| @@ -133,14 +133,14 @@ | ||||
|             </ns:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="get or delete"> | ||||
|     <pd:activity name="XmlGET_DELETE"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>539</pd:x> | ||||
|         <pd:y>148</pd:y> | ||||
|         <pd:y>147</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/XMLGET.process</processName> | ||||
|             <processNameXPath>concat('/Processes/xml/XML',$Start/root/method ,'.process')</processNameXPath> | ||||
|             <processName>/Processes/xml/author/XmlGET.process</processName> | ||||
|             <processNameXPath>concat('/Processes/xml/author/Xml',$Start/root/method ,'.process')</processNameXPath> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
| @@ -151,7 +151,7 @@ | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>XMLPOST</pd:from> | ||||
|         <pd:from>XmlPOST_PUT</pd:from> | ||||
|         <pd:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
| @@ -159,7 +159,7 @@ | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Map Data</pd:from> | ||||
|         <pd:to>XMLPOST</pd:to> | ||||
|         <pd:to>XmlPOST_PUT</pd:to> | ||||
|         <pd:xpathDescription>post or put</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
| @@ -182,7 +182,7 @@ | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Map Data</pd:from> | ||||
|         <pd:to>get or delete</pd:to> | ||||
|         <pd:to>XmlGET_DELETE</pd:to> | ||||
|         <pd:xpathDescription>get or delete</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
| @@ -190,7 +190,7 @@ | ||||
|         <pd:xpath>$Start/root/method = 'DELETE' or $Start/root/method = 'GET'</pd:xpath> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>get or delete</pd:from> | ||||
|         <pd:from>XmlGET_DELETE</pd:from> | ||||
|         <pd:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|   | ||||
| @@ -1,155 +0,0 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pfx="http://xmlns.example.com/1721743175984" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.demo.com/author"> | ||||
|     <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" schemaLocation="/Resources/schemas/getRequest.xsd"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/concrete/author methods.wsdl"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/WSDL-service8.serviceagent"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Resources/WSDL/PortTypeGet.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType wsMsgRef="wsdlPfx:requestGet"/> | ||||
|     <pd:startX>111</pd:startX> | ||||
|     <pd:startY>64</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <wsdlPfx:responseGet> | ||||
|             <part1> | ||||
|                 <ns2:author> | ||||
|                     <xsl:if test="$Wait/root/id"> | ||||
|                         <xsl:attribute name="id"> | ||||
|                             <xsl:value-of select="$Wait/root/id"/> | ||||
|                         </xsl:attribute> | ||||
|                     </xsl:if> | ||||
|                     <ns2:firstName> | ||||
|                         <xsl:value-of select="$Wait/root/firstname"/> | ||||
|                     </ns2:firstName> | ||||
|                     <ns2:lastName> | ||||
|                         <xsl:value-of select="$Wait/root/lastname"/> | ||||
|                     </ns2:lastName> | ||||
|                     <xsl:if test="$Wait/root/age"> | ||||
|                         <ns2:age> | ||||
|                             <xsl:value-of select="$Wait/root/age"/> | ||||
|                         </ns2:age> | ||||
|                     </xsl:if> | ||||
|                     <ns2:dateOfBirth> | ||||
|                         <xsl:value-of select="$Wait/root/date-of-birth"/> | ||||
|                     </ns2:dateOfBirth> | ||||
|                     <xsl:if test="$Wait/root/date-of-death"> | ||||
|                         <ns2:dateOfDeath> | ||||
|                             <xsl:value-of select="$Wait/root/date-of-death"/> | ||||
|                         </ns2:dateOfDeath> | ||||
|                     </xsl:if> | ||||
|                 </ns2:author> | ||||
|             </part1> | ||||
|         </wsdlPfx:responseGet> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endType wsMsgRef="wsdlPfx:responseGet"/> | ||||
|     <pd:endX>542</pd:endX> | ||||
|     <pd:endY>67</pd:endY> | ||||
|     <pd:errorSchemas> | ||||
|         <Schema1 wsMsgRef="wsdlPfx:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1721743176122</pd:targetNamespace> | ||||
|     <pd:activity name="XMLGET"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>281</pd:x> | ||||
|         <pd:y>65</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/XMLGET.process</processName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <id> | ||||
|                     <xsl:value-of select="$Start/wsdlPfx:requestGet/part1/ns:id"/> | ||||
|                 </id> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Wait"> | ||||
|         <pd:type>com.tibco.plugin.waitnotify.WaitActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.waitActivity</pd:resourceType> | ||||
|         <pd:x>411</pd:x> | ||||
|         <pd:y>69</pd:y> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input/> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="SOAPRequestReply"> | ||||
|         <pd:type>com.tibco.plugin.soap.SOAPSendReceiveActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.SOAPSendReceiveUI</pd:resourceType> | ||||
|         <pd:x>220</pd:x> | ||||
|         <pd:y>156</pd:y> | ||||
|         <config> | ||||
|             <timeout>0</timeout> | ||||
|             <soapAttachmentStyle>SwA</soapAttachmentStyle> | ||||
|             <timeoutType>Seconds</timeoutType> | ||||
|             <service>wsdlPfx:WSDL-service2</service> | ||||
|             <servicePort>PortTypeEndpoint2</servicePort> | ||||
|             <operation>Get</operation> | ||||
|             <authScheme>NONE</authScheme> | ||||
|         </config> | ||||
|         <pd:inputBindings/> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Null"> | ||||
|         <pd:type>com.tibco.plugin.timer.NullActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.null</pd:resourceType> | ||||
|         <pd:x>243</pd:x> | ||||
|         <pd:y>377</pd:y> | ||||
|         <config/> | ||||
|         <pd:inputBindings/> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Null-1"> | ||||
|         <pd:type>com.tibco.plugin.timer.NullActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.null</pd:resourceType> | ||||
|         <pd:x>646</pd:x> | ||||
|         <pd:y>243</pd:y> | ||||
|         <config/> | ||||
|         <pd:inputBindings/> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>XMLGET</pd:from> | ||||
|         <pd:to>Wait</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Wait</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>XMLGET</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>SOAPRequestReply</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>SOAPRequestReply</pd:from> | ||||
|         <pd:to>Null</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>SOAPRequestReply</pd:from> | ||||
|         <pd:to>Null-1</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
| @@ -1,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema1.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd"> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema1.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:ns1="http://www.demo.com/author" xmlns:ns3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Resources/WSDL/PortTypeDelete.process</pd:name> | ||||
|     <pd:name>Resources/WSDL/SoapDeleteAuthor.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType wsMsgRef="wsdlPfx:requestDelete"/> | ||||
|     <pd:startX>150</pd:startX> | ||||
| @@ -10,7 +10,7 @@ | ||||
|         <wsdlPfx:responseDelete> | ||||
|             <part1> | ||||
|                 <ns2:status> | ||||
|                     <xsl:value-of select="$Wait/root/status"/> | ||||
|                     <xsl:value-of select="$XMLDELETE/root/status"/> | ||||
|                 </ns2:status> | ||||
|             </part1> | ||||
|         </wsdlPfx:responseDelete> | ||||
| @@ -30,7 +30,7 @@ | ||||
|         <pd:x>290</pd:x> | ||||
|         <pd:y>66</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/XMLDELETE.process</processName> | ||||
|             <processName>/Processes/xml/author/XmlDELETE.process</processName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
| @@ -40,16 +40,31 @@ | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Wait"> | ||||
|         <pd:type>com.tibco.plugin.waitnotify.WaitActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.waitActivity</pd:resourceType> | ||||
|         <pd:x>393</pd:x> | ||||
|         <pd:y>66</pd:y> | ||||
|     <pd:activity name="Catch"> | ||||
|         <pd:type>com.tibco.pe.core.CatchActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.catch</pd:resourceType> | ||||
|         <pd:x>229</pd:x> | ||||
|         <pd:y>177</pd:y> | ||||
|         <pd:handler>true</pd:handler> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|             <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>420</pd:x> | ||||
|         <pd:y>175</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input/> | ||||
|             <ns3:ActivityInput> | ||||
|                 <message> | ||||
|                     <xsl:value-of select="string($Catch/exceptiondata)"/> | ||||
|                 </message> | ||||
|             </ns3:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
| @@ -61,16 +76,16 @@ | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>XMLDELETE</pd:from> | ||||
|         <pd:to>Wait</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Wait</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> | ||||
							
								
								
									
										92
									
								
								Resources/WSDL/SoapGetAuthor.process
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								Resources/WSDL/SoapGetAuthor.process
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,92 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pfx="http://xmlns.example.com/1721743175984" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.demo.com/author" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
|     <xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" schemaLocation="/Resources/schemas/getRequest.xsd"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/concrete/author methods.wsdl"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/WSDL-service8.serviceagent"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Resources/WSDL/SoapGetAuthor.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType wsMsgRef="wsdlPfx:requestGet"/> | ||||
|     <pd:startX>111</pd:startX> | ||||
|     <pd:startY>64</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <wsdlPfx:responseGet> | ||||
|             <part1> | ||||
|                 <xsl:copy-of select="$XMLGET/root/ns2:author"/> | ||||
|             </part1> | ||||
|         </wsdlPfx:responseGet> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endType wsMsgRef="wsdlPfx:responseGet"/> | ||||
|     <pd:endX>539</pd:endX> | ||||
|     <pd:endY>66</pd:endY> | ||||
|     <pd:errorSchemas> | ||||
|         <Schema1 wsMsgRef="wsdlPfx:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1721743176122</pd:targetNamespace> | ||||
|     <pd:activity name="XMLGET"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>281</pd:x> | ||||
|         <pd:y>65</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/author/XmlGET.process</processName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <id> | ||||
|                     <xsl:value-of select="$Start/wsdlPfx:requestGet/part1/ns: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>225</pd:x> | ||||
|         <pd:y>232</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>401</pd:x> | ||||
|         <pd:y>231</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>Start</pd:from> | ||||
|         <pd:to>XMLGET</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>XMLGET</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,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.demo.com/author" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd"> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Resources/WSDL/PortTypePost.process</pd:name> | ||||
|     <pd:name>Resources/WSDL/SoapPostAuthor.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType wsMsgRef="wsdlPfx:requestPOST"/> | ||||
|     <pd:startX>146</pd:startX> | ||||
| @@ -10,7 +10,7 @@ | ||||
|         <wsdlPfx:responsePOST> | ||||
|             <part1> | ||||
|                 <ns2:status> | ||||
|                     <xsl:value-of select="$Wait/root/status"/> | ||||
|                     <xsl:value-of select="$XMLPOST/root/status"/> | ||||
|                 </ns2:status> | ||||
|             </part1> | ||||
|         </wsdlPfx:responsePOST> | ||||
| @@ -30,7 +30,7 @@ | ||||
|         <pd:x>276</pd:x> | ||||
|         <pd:y>70</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/XMLPOST.process</processName> | ||||
|             <processName>/Processes/xml/author/XmlPOST.process</processName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
| @@ -63,16 +63,31 @@ | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Wait"> | ||||
|         <pd:type>com.tibco.plugin.waitnotify.WaitActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.waitActivity</pd:resourceType> | ||||
|         <pd:x>403</pd:x> | ||||
|         <pd:y>70</pd:y> | ||||
|     <pd:activity name="Catch"> | ||||
|         <pd:type>com.tibco.pe.core.CatchActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.catch</pd:resourceType> | ||||
|         <pd:x>295</pd:x> | ||||
|         <pd:y>256</pd:y> | ||||
|         <pd:handler>true</pd:handler> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|             <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>445</pd:x> | ||||
|         <pd:y>258</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input/> | ||||
|             <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> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
| @@ -84,16 +99,16 @@ | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>XMLPOST</pd:from> | ||||
|         <pd:to>Wait</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Wait</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,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.demo.com/author" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd"> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.demo.com/author" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Resources/WSDL/PortTypePut.process</pd:name> | ||||
|     <pd:name>Resources/WSDL/SoapPutAuthor.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType wsMsgRef="wsdlPfx:requestPUT"/> | ||||
|     <pd:startX>150</pd:startX> | ||||
| @@ -10,7 +10,7 @@ | ||||
|         <wsdlPfx:responsePUT> | ||||
|             <part1> | ||||
|                 <ns2:status> | ||||
|                     <xsl:value-of select="$Wait/root/status"/> | ||||
|                     <xsl:value-of select="$XMLPUT/root/status"/> | ||||
|                 </ns2:status> | ||||
|             </part1> | ||||
|         </wsdlPfx:responsePUT> | ||||
| @@ -27,10 +27,10 @@ | ||||
|     <pd:activity name="XMLPUT"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>243</pd:x> | ||||
|         <pd:y>60</pd:y> | ||||
|         <pd:x>252</pd:x> | ||||
|         <pd:y>65</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/XMLPUT.process</processName> | ||||
|             <processName>/Processes/xml/author/XmlPUT.process</processName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
| @@ -63,16 +63,31 @@ | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Wait"> | ||||
|         <pd:type>com.tibco.plugin.waitnotify.WaitActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.waitActivity</pd:resourceType> | ||||
|         <pd:x>347</pd:x> | ||||
|         <pd:y>66</pd:y> | ||||
|     <pd:activity name="Catch"> | ||||
|         <pd:type>com.tibco.pe.core.CatchActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.catch</pd:resourceType> | ||||
|         <pd:x>194</pd:x> | ||||
|         <pd:y>201</pd:y> | ||||
|         <pd:handler>true</pd:handler> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|             <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>337</pd:x> | ||||
|         <pd:y>204</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input/> | ||||
|             <ns1:ActivityInput> | ||||
|                 <message> | ||||
|                     <xsl:value-of select="string($Catch/exceptiondata)"/> | ||||
|                 </message> | ||||
|             </ns1:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
| @@ -84,16 +99,16 @@ | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>XMLPUT</pd:from> | ||||
|         <pd:to>Wait</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Wait</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> | ||||
| @@ -23,10 +23,10 @@ | ||||
|                             <tabType>impl</tabType> | ||||
|                             <config> | ||||
|                                 <operations> | ||||
|                                     <row opName="Post" opImpl="/Resources/WSDL/PortTypePost.process"/> | ||||
|                                     <row opName="Get" opImpl="/Resources/WSDL/PortTypeGet.process"/> | ||||
|                                     <row opName="Put" opImpl="/Resources/WSDL/PortTypePut.process"/> | ||||
|                                     <row opName="Delete" opImpl="/Resources/WSDL/PortTypeDelete.process"/> | ||||
|                                     <row opName="Post" opImpl="/Resources/WSDL/SoapPostAuthor.process"/> | ||||
|                                     <row opName="Get" opImpl="/Resources/WSDL/SoapGetAuthor.process"/> | ||||
|                                     <row opName="Put" opImpl="/Resources/WSDL/SoapPutAuthor.process"/> | ||||
|                                     <row opName="Delete" opImpl="/Resources/WSDL/SoapDeleteAuthor.process"/> | ||||
|                                 </operations> | ||||
|                             </config> | ||||
|                         </tab> | ||||
|   | ||||
| @@ -131,11 +131,11 @@ | ||||
| 		</globalVariable> | ||||
| 		<globalVariable> | ||||
| 			<name>processType</name> | ||||
| 			<value>xml</value> | ||||
| 			<value>sql</value> | ||||
| 			<deploymentSettable>true</deploymentSettable> | ||||
| 			<serviceSettable>false</serviceSettable> | ||||
| 			<type>String</type> | ||||
| 			<modTime>1720104175471</modTime> | ||||
| 			<modTime>1722336781786</modTime> | ||||
| 		</globalVariable> | ||||
| 	</globalVariables> | ||||
| </repository> | ||||
		Reference in New Issue
	
	Block a user
	 wojciech
					wojciech