final fixes in xml

This commit is contained in:
wojciech
2024-07-30 12:27:38 +02:00
parent eddc0b1646
commit 8db5e17d66
4 changed files with 24 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/pe/DeployedVarsType" 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:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/pe/DeployedVarsType" 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.demo.com/author">
<pd:name>Processes/rest/rest request.process</pd:name> <pd:name>Processes/rest/rest request.process</pd:name>
<pd:startName>HTTP Receiver</pd:startName> <pd:startName>HTTP Receiver</pd:startName>
<pd:startX>0</pd:startX> <pd:startX>0</pd:startX>
@@ -36,7 +36,7 @@
<pd:inputBindings/> <pd:inputBindings/>
</pd:starter> </pd:starter>
<pd:endName>End</pd:endName> <pd:endName>End</pd:endName>
<pd:endX>780</pd:endX> <pd:endX>787</pd:endX>
<pd:endY>259</pd:endY> <pd:endY>259</pd:endY>
<pd:errorSchemas/> <pd:errorSchemas/>
<pd:processVariables/> <pd:processVariables/>
@@ -47,8 +47,8 @@
<pd:x>348</pd:x> <pd:x>348</pd:x>
<pd:y>263</pd:y> <pd:y>263</pd:y>
<config> <config>
<processName>/Processes/sql/sql.process</processName> <processName>/Processes/xml/xml.process</processName>
<processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then '/Processes/sql.process' else '/Processes/xml.process'</processNameXPath> <processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then '/Processes/sql/sql.process' else '/Processes/xml/xml.process'</processNameXPath>
<spawn>false</spawn> <spawn>false</spawn>
</config> </config>
<pd:inputBindings> <pd:inputBindings>
@@ -65,8 +65,8 @@
<pd:activity name="Send HTTP Response"> <pd:activity name="Send HTTP Response">
<pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type> <pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type>
<pd:resourceType>httppalette.httpWebResponse</pd:resourceType> <pd:resourceType>httppalette.httpWebResponse</pd:resourceType>
<pd:x>660</pd:x> <pd:x>555</pd:x>
<pd:y>260</pd:y> <pd:y>254</pd:y>
<config> <config>
<closeConnection>true</closeConnection> <closeConnection>true</closeConnection>
<eventSource>HTTP Receiver</eventSource> <eventSource>HTTP Receiver</eventSource>
@@ -87,23 +87,11 @@
<pd:inputBindings> <pd:inputBindings>
<ResponseActivityInput> <ResponseActivityInput>
<asciiContent> <asciiContent>
<xsl:value-of select="concat($Wait/root/id, $Wait/root/firstname, $Wait/root/lastname,$Wait/root/date-of-birth,$Wait/root/date-of-death,$Wait/root/age, $Wait/root/status)"/> <xsl:value-of select="string($select-database-type/root)"/>
</asciiContent> </asciiContent>
</ResponseActivityInput> </ResponseActivityInput>
</pd:inputBindings> </pd:inputBindings>
</pd:activity> </pd:activity>
<pd:activity name="Wait">
<pd:type>com.tibco.plugin.waitnotify.WaitActivity</pd:type>
<pd:resourceType>ae.activities.waitActivity</pd:resourceType>
<pd:x>515</pd:x>
<pd:y>259</pd:y>
<config>
<sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig>
</config>
<pd:inputBindings>
<input/>
</pd:inputBindings>
</pd:activity>
<pd:transition> <pd:transition>
<pd:from>HTTP Receiver</pd:from> <pd:from>HTTP Receiver</pd:from>
<pd:to>select database type</pd:to> <pd:to>select database type</pd:to>
@@ -120,13 +108,6 @@
</pd:transition> </pd:transition>
<pd:transition> <pd:transition>
<pd:from>select database type</pd:from> <pd:from>select database type</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>Send HTTP Response</pd:to> <pd:to>Send HTTP Response</pd:to>
<pd:lineType>Default</pd:lineType> <pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor> <pd:lineColor>-16777216</pd:lineColor>

View File

@@ -27,7 +27,7 @@
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element ref="pfx:author" minOccurs="0"/> <xsd:element ref="pfx:author" minOccurs="0"/>
<xsd:element name="satus" type="xsd:string"/> <xsd:element name="status" type="xsd:string"/>
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>

View File

@@ -15,7 +15,14 @@
</pd:startType> </pd:startType>
<pd:startX>67</pd:startX> <pd:startX>67</pd:startX>
<pd:startY>77</pd:startY> <pd:startY>77</pd:startY>
<pd:returnBindings/> <pd:returnBindings>
<root>
<xsl:copy-of select="$get-or-delete/root/ns2:author"/>
<status>
<xsl:value-of select="if (boolean($XMLPOST/root/status)) then $XMLPOST/root/status else $get-or-delete/root/status"/>
</status>
</root>
</pd:returnBindings>
<pd:endName>End</pd:endName> <pd:endName>End</pd:endName>
<pd:endType> <pd:endType>
<xsd:element name="root"> <xsd:element name="root">

View File

@@ -1,6 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ns0:authors xmlns:ns0="http://www.demo.com/author"> <ns0:authors xmlns:ns0="http://www.demo.com/author">
<author xmlns="http://www.demo.com/author" id="15"> <ns0:author xmlns:ns0="http://www.demo.com/author" id="99">
<ns0:firstName>prubva</ns0:firstName>
<ns0:lastName>sfdgsg</ns0:lastName>
<ns0:age>987</ns0:age>
<ns0:dateOfBirth>2000-02-01</ns0:dateOfBirth>
<ns0:dateOfDeath>2000-02-06</ns0:dateOfDeath>
</ns0:author>
<author xmlns:ns0="http://www.demo.com/author" xmlns="http://www.demo.com/author" id="15">
<firstName>piwo</firstName> <firstName>piwo</firstName>
<lastName>harnas</lastName> <lastName>harnas</lastName>
<age>12</age> <age>12</age>