current version

This commit is contained in:
wojciech
2024-07-24 17:04:39 +02:00
parent a64e35466a
commit 392ffd1dd6
60 changed files with 4148 additions and 0 deletions

7
Processes/sql/.folder Normal file
View 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="sql" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false">
<description/>
<fixedChildren/>
</folder>
</Repository:repository>

View File

@@ -0,0 +1,119 @@
<?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>

View File

@@ -0,0 +1,197 @@
<?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>

View File

@@ -0,0 +1,167 @@
<?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, '&quot;firstname&quot;:&quot;'), '&quot;')"/>
</firstname>
<lastname>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;lastname&quot;:&quot;'), '&quot;')"/>
</lastname>
<date-of-birth>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;day-of-birth&quot;:&quot;'), '&quot;')"/>
</date-of-birth>
<date-of-death>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;day-of-death&quot;:&quot;'), '&quot;')"/>
</date-of-death>
<id>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;id&quot;:&quot;'), '&quot;')"/>
</id>
<age>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;age&quot;:&quot;'), '&quot;')"/>
</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>

View File

@@ -0,0 +1,184 @@
<?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, '&quot;firstname&quot;:&quot;'), '&quot;')"/>
</firstname>
<lastname>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;lastname&quot;:&quot;'), '&quot;')"/>
</lastname>
<date-of-birth>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;day-of-birth&quot;:&quot;'), '&quot;')"/>
</date-of-birth>
<date-of-death>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;day-of-death&quot;:&quot;'), '&quot;')"/>
</date-of-death>
<id>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;id&quot;:&quot;'), '&quot;')"/>
</id>
<age>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;age&quot;:&quot;'), '&quot;')"/>
</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>

View File

@@ -0,0 +1,78 @@
<?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>

83
Processes/sql/sql.process Normal file
View File

@@ -0,0 +1,83 @@
<?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: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>54</pd:startX>
<pd:startY>121</pd:startY>
<pd:returnBindings/>
<pd:endName>End</pd:endName>
<pd:endX>828</pd:endX>
<pd:endY>111</pd:endY>
<pd:errorSchemas/>
<pd:processVariables/>
<pd:targetNamespace>http://xmlns.example.com/1719483377637</pd:targetNamespace>
<pd:activity name="initialize database">
<pd:type>com.tibco.plugin.jdbc.JDBCGeneralActivity</pd:type>
<pd:resourceType>ae.activities.JDBCGeneralActivity</pd:resourceType>
<pd:x>275</pd:x>
<pd:y>126</pd:y>
<config>
<timeout>10</timeout>
<commit>false</commit>
<maxRows>100</maxRows>
<jdbcSharedConfig>/Resources/configurations/JDBC Connection.sharedjdbc</jdbcSharedConfig>
</config>
<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 );'"/>
</statement>
</jdbcGeneralActivityInput>
</pd:inputBindings>
</pd:activity>
<pd:activity name="select operation">
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
<pd:resourceType>ae.process.subprocess</pd:resourceType>
<pd:x>468</pd:x>
<pd:y>110</pd:y>
<config>
<processName>/Processes/sql/select operation.process</processName>
</config>
<pd:inputBindings>
<root>
<method>
<xsl:value-of select="$Start/root/method"/>
</method>
<data>
<xsl:value-of select="$Start/root/data"/>
</data>
</root>
</pd:inputBindings>
</pd:activity>
<pd:transition>
<pd:from>Start</pd:from>
<pd:to>initialize database</pd:to>
<pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor>
<pd:conditionType>always</pd:conditionType>
</pd:transition>
<pd:transition>
<pd:from>initialize database</pd:from>
<pd:to>select operation</pd:to>
<pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor>
<pd:conditionType>always</pd:conditionType>
</pd:transition>
<pd:transition>
<pd:from>select operation</pd:from>
<pd:to>End</pd:to>
<pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor>
<pd:conditionType>always</pd:conditionType>
</pd:transition>
</pd:ProcessDefinition>