197 lines
		
	
	
		
			9.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			197 lines
		
	
	
		
			9.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?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> |