This commit is contained in:
wojciech
2024-08-07 16:22:28 +02:00
parent a8ac1fbc8f
commit ea7a079cad
17 changed files with 309 additions and 98 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/>
<xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/author.xsd"/>
<pd:name>Processes/sql/author/SqlGET.process</pd:name>
<pd:startName>Start</pd:startName>
<pd:startType>
@@ -56,7 +56,17 @@
</pd:endType>
<pd:endX>726</pd:endX>
<pd:endY>108</pd:endY>
<pd:errorSchemas/>
<pd:errorSchemas>
<AuthorNotFound>
<xsd:element name="root">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="AuthorID" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</AuthorNotFound>
</pd:errorSchemas>
<pd:processVariables/>
<pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
<pd:activity name="GetAuthor">
@@ -155,13 +165,42 @@
</ns1:ActivityInput>
</pd:inputBindings>
</pd:activity>
<pd:transition>
<pd:from>GetAuthor</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:activity name="Render XML">
<pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type>
<pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType>
<pd:x>599</pd:x>
<pd:y>111</pd:y>
<config>
<renderAsText>text</renderAsText>
<validateInput>true</validateInput>
<renderDefaultPrefix>true</renderDefaultPrefix>
<term ref="pfx:author"/>
</config>
<pd:inputBindings>
<pfx:author>
<xsl:if test="$GetAuthor/resultSet/Record[1]/id">
<xsl:attribute name="id">
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/>
</xsl:attribute>
</xsl:if>
<pfx:firstName>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/>
</pfx:firstName>
<pfx:lastName>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/>
</pfx:lastName>
<pfx:age>
<xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/>
</pfx:age>
<pfx:dateOfBirth>
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth, 'T')"/>
</pfx:dateOfBirth>
<pfx:dateOfDeath>
<xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death, 'T')"/>
</pfx:dateOfDeath>
</pfx:author>
</pd:inputBindings>
</pd:activity>
<pd:transition>
<pd:from>Start</pd:from>
<pd:to>LogInputData</pd:to>
@@ -183,4 +222,18 @@
<pd:lineColor>-16777216</pd:lineColor>
<pd:conditionType>always</pd:conditionType>
</pd:transition>
<pd:transition>
<pd:from>GetAuthor</pd:from>
<pd:to>Render XML</pd:to>
<pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor>
<pd:conditionType>always</pd:conditionType>
</pd:transition>
<pd:transition>
<pd:from>Render XML</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

@@ -149,7 +149,7 @@
<pd:activity name="Generate Error">
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
<pd:resourceType>ae.activities.throw</pd:resourceType>
<pd:x>418</pd:x>
<pd:x>422</pd:x>
<pd:y>240</pd:y>
<config>
<faultName/>