fixes
This commit is contained in:
@@ -37,8 +37,8 @@
|
||||
<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>
|
||||
<pd:x>280</pd:x>
|
||||
<pd:y>123</pd:y>
|
||||
<config>
|
||||
<timeout>10</timeout>
|
||||
<commit>false</commit>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</pd:startType>
|
||||
<pd:startX>169</pd:startX>
|
||||
<pd:startX>156</pd:startX>
|
||||
<pd:startY>180</pd:startY>
|
||||
<pd:returnBindings>
|
||||
<root>
|
||||
@@ -80,39 +80,39 @@
|
||||
<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>
|
||||
<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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"firstname":"'), '"')"/>
|
||||
<xsl:value-of 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":"'), '"')"/>
|
||||
<xsl:value-of 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":"'), '"')"/>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"dateOfBirth":"'), '"')"/>
|
||||
</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":"'), '"')"/>
|
||||
<xsl:value-of select="substring-before(substring-after($Start/root/data, '"dateOfDeath":"'), '"')"/>
|
||||
</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=')"/>
|
||||
<xsl:value-of 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":"'), '"'))"/>
|
||||
<xsl:value-of select="number(substring-before(substring-after($Start/root/data, '"age":"'), '"'))"/>
|
||||
</age>
|
||||
</root>
|
||||
</pd:inputBindings>
|
||||
|
||||
@@ -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>
|
||||
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user