fix post
This commit is contained in:
		
							
								
								
									
										4
									
								
								.folder
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								.folder
									
									
									
									
									
								
							| @@ -1,6 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <Repository:repository xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002"> | ||||
|     <folder resourceType="ae.rootfolder" name="httpRequest" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false"> | ||||
|     <folder resourceType="ae.rootfolder" name="tibcoRepository" propLocks="" allowUserToChangeIcon="false" sortContents="false" acceptsResources="true" allowDuplicates="false"> | ||||
|         <fixedChildren>AESchemas</fixedChildren> | ||||
|         <projectProperties> | ||||
|             <property key="ae.palette.SOAPpalette.version" value="5.15.0"/> | ||||
| @@ -29,7 +29,7 @@ | ||||
|             <property key="ae.palette.JDBCpalette.version" value="5.15.0"/> | ||||
|             <property key="ae.palette.rvpalette.version" value="5.15.0"/> | ||||
|             <property key="ae.palette.FTPpalette.version" value="5.15.0"/> | ||||
|             <property key="projectName" value="httpRequest"/> | ||||
|             <property key="projectName" value="tibcoRepository"/> | ||||
|         </projectProperties> | ||||
|     </folder> | ||||
| </Repository:repository> | ||||
| @@ -1,74 +0,0 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://xmlns.example.com/1721743175984" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003"> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/concrete/author methods.wsdl"/> | ||||
|     <pd:name>Processes/wsdl/Process Definition.process</pd:name> | ||||
|     <pd:startName>SOAPEventSource</pd:startName> | ||||
|     <pd:startX>0</pd:startX> | ||||
|     <pd:startY>0</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:starter name="SOAPEventSource"> | ||||
|         <pd:type>com.tibco.plugin.soap.SOAPEventSource</pd:type> | ||||
|         <pd:resourceType>ae.activities.SOAPEventSourceUI</pd:resourceType> | ||||
|         <pd:x>113</pd:x> | ||||
|         <pd:y>84</pd:y> | ||||
|         <config> | ||||
|             <service>pfx:PortType</service> | ||||
|             <wsdlNamespaceRoot>http://xmlns.example.com/1721743175984/DeleteImpl</wsdlNamespaceRoot> | ||||
|             <operation>Delete</operation> | ||||
|             <portAddressPrefix/> | ||||
|             <operationStyle>document</operationStyle> | ||||
|             <soapUse>literal</soapUse> | ||||
|             <embedWsdlComponents>true</embedWsdlComponents> | ||||
|             <embedSchemaComponents>true</embedSchemaComponents> | ||||
|             <soapAction>/Processes/wsdl/Process%20Definition</soapAction> | ||||
|             <sharedChannel>/Resources/configurations/HTTP Connection.sharedhttp</sharedChannel> | ||||
|             <soapVersion>SOAP 1.2</soapVersion> | ||||
|         </config> | ||||
|         <pd:inputBindings/> | ||||
|     </pd:starter> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>450</pd:endX> | ||||
|     <pd:endY>64</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1721820974742</pd:targetNamespace> | ||||
|     <pd:activity name="SOAPSendFault"> | ||||
|         <pd:type>com.tibco.plugin.soap.SOAPSendFaultActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.SOAPSendFaultUI</pd:resourceType> | ||||
|         <pd:x>274</pd:x> | ||||
|         <pd:y>99</pd:y> | ||||
|         <config> | ||||
|             <faultMessage><Default></faultMessage> | ||||
|             <eventSource>SOAPEventSource</eventSource> | ||||
|             <sharedChannels> | ||||
|                 <jmsChannel> | ||||
|                     <JMSDeliveryMode>2</JMSDeliveryMode> | ||||
|                 </jmsChannel> | ||||
|             </sharedChannels> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <defaultFaultElement> | ||||
|                 <faultcode> | ||||
|                     <xsl:value-of select="997"/> | ||||
|                 </faultcode> | ||||
|                 <faultstring> | ||||
|                     <xsl:value-of select="'wyjebao sie'"/> | ||||
|                 </faultstring> | ||||
|             </defaultFaultElement> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>SOAPEventSource</pd:from> | ||||
|         <pd:to>SOAPSendFault</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>SOAPSendFault</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> | ||||
| @@ -124,8 +124,8 @@ | ||||
|     <pd:activity name="Generate Error"> | ||||
|         <pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.throw</pd:resourceType> | ||||
|         <pd:x>664</pd:x> | ||||
|         <pd:y>114</pd:y> | ||||
|         <pd:x>676</pd:x> | ||||
|         <pd:y>116</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|         </config> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| <?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/namespaces/tnt/plugins/file" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns3="http://www.tibco.com/namespaces/tnt/plugins/file/v2"> | ||||
| <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:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns3="http://www.tibco.com/namespaces/tnt/plugins/file/v2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <pd:name>Processes/xml/XMLPOST.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
| @@ -16,217 +16,78 @@ | ||||
|     <pd:startY>212</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>1496</pd:endX> | ||||
|     <pd:endY>206</pd:endY> | ||||
|     <pd:endX>940</pd:endX> | ||||
|     <pd:endY>218</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace> | ||||
|     <pd:activity name="Write File"> | ||||
|         <pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType> | ||||
|         <pd:x>1060</pd:x> | ||||
|         <pd:y>79</pd:y> | ||||
|         <config> | ||||
|             <encoding>text</encoding> | ||||
|             <compressFile>None</compressFile> | ||||
|             <append>true</append> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns:WriteActivityInputTextClass> | ||||
|                 <fileName> | ||||
|                     <xsl:value-of select="'/tibco/designer/5.12/projects/httpRequest/Resources/databases/databaseXML.xml'"/> | ||||
|                 </fileName> | ||||
|                 <textContent> | ||||
|                     <xsl:value-of select="$Render-authors/xmlString"/> | ||||
|                 </textContent> | ||||
|             </ns:WriteActivityInputTextClass> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Render-authors"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType> | ||||
|         <pd:x>531</pd:x> | ||||
|         <pd:y>86</pd:y> | ||||
|         <config> | ||||
|             <renderAsText>text</renderAsText> | ||||
|             <validateInput>true</validateInput> | ||||
|             <renderDefaultPrefix>false</renderDefaultPrefix> | ||||
|             <textEncoding>UTF-8</textEncoding> | ||||
|             <term> | ||||
|                 <xsd:element name="authors"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element ref="pfx:author"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </term> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <authors> | ||||
|                 <pfx:author> | ||||
|                     <xsl:if test="$Start/root/pfx:author/@id"> | ||||
|                         <xsl:attribute name="id"> | ||||
|                             <xsl:value-of select="$Start/root/pfx:author/@id"/> | ||||
|                         </xsl:attribute> | ||||
|                     </xsl:if> | ||||
|                     <pfx:firstName> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:firstName"/> | ||||
|                     </pfx:firstName> | ||||
|                     <pfx:lastName> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:lastName"/> | ||||
|                     </pfx:lastName> | ||||
|                     <xsl:if test="$Start/root/pfx:author/pfx:age"> | ||||
|                         <pfx:age> | ||||
|                             <xsl:value-of select="$Start/root/pfx:author/pfx:age"/> | ||||
|                         </pfx:age> | ||||
|                     </xsl:if> | ||||
|                     <pfx:dateOfBirth> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:dateOfBirth"/> | ||||
|                     </pfx:dateOfBirth> | ||||
|                     <xsl:if test="$Start/root/pfx:author/pfx:dateOfDeath"> | ||||
|                         <pfx:dateOfDeath> | ||||
|                             <xsl:value-of select="$Start/root/pfx:author/pfx:dateOfDeath"/> | ||||
|                         </pfx:dateOfDeath> | ||||
|                     </xsl:if> | ||||
|                 </pfx:author> | ||||
|             </authors> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Read File"> | ||||
|         <pd:type>com.tibco.plugin.file.FileReadActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.FileReadActivity</pd:resourceType> | ||||
|         <pd:x>303</pd:x> | ||||
|         <pd:y>211</pd:y> | ||||
|         <pd:x>194</pd:x> | ||||
|         <pd:y>212</pd:y> | ||||
|         <config> | ||||
|             <encoding>text</encoding> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns3:ReadActivityInputClass> | ||||
|                 <fileName> | ||||
|                     <xsl:value-of select="'/tibco/designer/5.12/projects/httpRequest/Resources/databases/databaseXML.xml'"/> | ||||
|                     <xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/> | ||||
|                 </fileName> | ||||
|             </ns3:ReadActivityInputClass> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="remove closing tag"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>522</pd:x> | ||||
|         <pd:y>337</pd:y> | ||||
|     <pd:activity name="Parse XML"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLParseActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLParseActivity</pd:resourceType> | ||||
|         <pd:x>340</pd:x> | ||||
|         <pd:y>215</pd:y> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="XMLstring" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </element> | ||||
|             <inputStyle>text</inputStyle> | ||||
|             <xsdVersion>default</xsdVersion> | ||||
|             <validateOutput>true</validateOutput> | ||||
|             <term ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <XMLstring> | ||||
|                     <xsl:value-of select="tib:substring-before-last($Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent, '</authors>')"/> | ||||
|                 </XMLstring> | ||||
|             </root> | ||||
|             <xmlString> | ||||
|                 <xsl:value-of select="$Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent"/> | ||||
|             </xmlString> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Render-author"> | ||||
|     <pd:activity name="Map Data"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>509</pd:x> | ||||
|         <pd:y>216</pd:y> | ||||
|         <config> | ||||
|             <element ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx:authors> | ||||
|                 <xsl:copy-of select="$Start/root/pfx:author"/> | ||||
|                 <xsl:copy-of select="$Parse-XML/pfx:authors/pfx:author"/> | ||||
|             </pfx:authors> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Render XML"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType> | ||||
|         <pd:x>687</pd:x> | ||||
|         <pd:y>336</pd:y> | ||||
|         <pd:x>669</pd:x> | ||||
|         <pd:y>216</pd:y> | ||||
|         <config> | ||||
|             <renderAsText>text</renderAsText> | ||||
|             <validateInput>true</validateInput> | ||||
|             <renderDefaultPrefix>false</renderDefaultPrefix> | ||||
|             <textEncoding>UTF-8</textEncoding> | ||||
|             <term ref="pfx:author"/> | ||||
|             <validateInput>false</validateInput> | ||||
|             <term ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx:author> | ||||
|                 <xsl:if test="$Start/root/pfx:author/@id"> | ||||
|                     <xsl:attribute name="id"> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/@id"/> | ||||
|                     </xsl:attribute> | ||||
|                 </xsl:if> | ||||
|                 <pfx:firstName> | ||||
|                     <xsl:value-of select="$Start/root/pfx:author/pfx:firstName"/> | ||||
|                 </pfx:firstName> | ||||
|                 <pfx:lastName> | ||||
|                     <xsl:value-of select="$Start/root/pfx:author/pfx:lastName"/> | ||||
|                 </pfx:lastName> | ||||
|                 <xsl:if test="$Start/root/pfx:author/pfx:age"> | ||||
|                     <pfx:age> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:age"/> | ||||
|                     </pfx:age> | ||||
|                 </xsl:if> | ||||
|                 <pfx:dateOfBirth> | ||||
|                     <xsl:value-of select="$Start/root/pfx:author/pfx:dateOfBirth"/> | ||||
|                 </pfx:dateOfBirth> | ||||
|                 <xsl:if test="$Start/root/pfx:author/pfx:dateOfDeath"> | ||||
|                     <pfx:dateOfDeath> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:dateOfDeath"/> | ||||
|                     </pfx:dateOfDeath> | ||||
|                 </xsl:if> | ||||
|             </pfx:author> | ||||
|             <xsl:copy-of select="$Map-Data/pfx:authors"/> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="remove configuration at the beggining"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>815</pd:x> | ||||
|         <pd:y>349</pd:y> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="XMLstring" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </element> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <XMLstring> | ||||
|                     <xsl:value-of select="substring-after($Render-author/xmlString,'<?xml version="1.0" encoding="UTF-8"?>')"/> | ||||
|                 </XMLstring> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="concat"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>986</pd:x> | ||||
|         <pd:y>334</pd:y> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="param" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </element> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <param> | ||||
|                     <xsl:value-of select="concat($remove-closing-tag/root/XMLstring, $remove-configuration-at-the-beggining/root/XMLstring, '</authors>')"/> | ||||
|                 </param> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Write-File-1"> | ||||
|     <pd:activity name="Write File"> | ||||
|         <pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType> | ||||
|         <pd:x>1117</pd:x> | ||||
|         <pd:y>336</pd:y> | ||||
|         <pd:x>802</pd:x> | ||||
|         <pd:y>216</pd:y> | ||||
|         <config> | ||||
|             <encoding>text</encoding> | ||||
|             <compressFile>None</compressFile> | ||||
| @@ -234,106 +95,58 @@ | ||||
|         <pd:inputBindings> | ||||
|             <ns:WriteActivityInputTextClass> | ||||
|                 <fileName> | ||||
|                     <xsl:value-of select="'/tibco/designer/5.12/projects/httpRequest/Resources/databases/databaseXML.xml'"/> | ||||
|                     <xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/> | ||||
|                 </fileName> | ||||
|                 <textContent> | ||||
|                     <xsl:value-of select="$concat/root/param"/> | ||||
|                     <xsl:value-of select="$Render-XML/xmlString"/> | ||||
|                 </textContent> | ||||
|             </ns:WriteActivityInputTextClass> | ||||
|         </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>1305</pd:x> | ||||
|         <pd:y>203</pd:y> | ||||
|     <pd:activity name="Render-XML-1"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType> | ||||
|         <pd:x>193</pd:x> | ||||
|         <pd:y>339</pd:y> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|             <renderAsText>text</renderAsText> | ||||
|             <validateInput>false</validateInput> | ||||
|             <term ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings/> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Write-File-1"> | ||||
|         <pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType> | ||||
|         <pd:x>508</pd:x> | ||||
|         <pd:y>341</pd:y> | ||||
|         <config> | ||||
|             <encoding>text</encoding> | ||||
|             <compressFile>None</compressFile> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input> | ||||
|                 <root> | ||||
|                     <status> | ||||
|                         <xsl:value-of select="'działa'"/> | ||||
|                     </status> | ||||
|                 </root> | ||||
|             </input> | ||||
|             <ns:WriteActivityInputTextClass> | ||||
|                 <fileName> | ||||
|                     <xsl:value-of select="'/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/databaseXML.xml'"/> | ||||
|                 </fileName> | ||||
|                 <textContent> | ||||
|                     <xsl:value-of select="$Render-XML-1/xmlString"/> | ||||
|                 </textContent> | ||||
|             </ns:WriteActivityInputTextClass> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Generate Error"> | ||||
|         <pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.throw</pd:resourceType> | ||||
|         <pd:x>341</pd:x> | ||||
|         <pd:y>63</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx2:ActivityInput/> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>Read File</pd:from> | ||||
|         <pd:to>Render-authors</pd:to> | ||||
|         <pd:xpathDescription>file is empty</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>xpath</pd:conditionType> | ||||
|         <pd:xpath>string-length($Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent)=0</pd:xpath> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Render-authors</pd:from> | ||||
|         <pd:to>Write File</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Read File</pd:from> | ||||
|         <pd:to>remove closing tag</pd:to> | ||||
|         <pd:xpathDescription>otherwise</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>xpath</pd:conditionType> | ||||
|         <pd:xpath>string-length($Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent)>0</pd:xpath> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>remove closing tag</pd:from> | ||||
|         <pd:to>Render-author</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Render-author</pd:from> | ||||
|         <pd:to>remove configuration at the beggining</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>remove configuration at the beggining</pd:from> | ||||
|         <pd:to>concat</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>concat</pd:from> | ||||
|         <pd:to>Write-File-1</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Write File</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>Write-File-1</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:transition> | ||||
|         <pd:from>Start</pd:from> | ||||
|         <pd:to>Read File</pd:to> | ||||
| @@ -341,4 +154,71 @@ | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Read File</pd:from> | ||||
|         <pd:to>Parse XML</pd:to> | ||||
|         <pd:xpathDescription>file not empty</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>xpath</pd:conditionType> | ||||
|         <pd:xpath>string-length($Read-File/ns:ReadActivityOutputTextClass/fileContent/textContent)>0</pd:xpath> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Parse XML</pd:from> | ||||
|         <pd:to>Map Data</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>otherwise</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Map Data</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>Write File</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Write File</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>Read File</pd:from> | ||||
|         <pd:to>Render-XML-1</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>otherwise</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Render-XML-1</pd:from> | ||||
|         <pd:to>Write-File-1</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Write-File-1</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>Parse XML</pd:from> | ||||
|         <pd:to>Generate Error</pd:to> | ||||
|         <pd:xpathDescription>author with given id already exist</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>xpath</pd:conditionType> | ||||
|         <pd:xpath>boolean($Parse-XML/pfx:authors/pfx:author[@id=$Start/root/pfx:author/@id])</pd:xpath> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
| @@ -1,40 +1,31 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <authors> | ||||
|     <ns0:author xmlns:ns0="http://www.demo.com/author" id="64"> | ||||
|         <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> | ||||
|  | ||||
| <ns0:author xmlns:ns0="http://www.demo.com/author" id="65"> | ||||
|     <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> | ||||
| <ns0:author xmlns:ns0="http://www.demo.com/author" id="66"> | ||||
|     <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> | ||||
| <ns0:author xmlns:ns0="http://www.demo.com/author" id="76"> | ||||
|     <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> | ||||
|  | ||||
| <ns0:author xmlns:ns0="http://www.demo.com/author" id="69"> | ||||
|     <ns0:firstName>69</ns0:firstName> | ||||
|     <ns0:lastName>69</ns0:lastName> | ||||
|     <ns0:age>69</ns0:age> | ||||
|     <ns0:dateOfBirth>1999-01-01</ns0:dateOfBirth> | ||||
|     <ns0:dateOfDeath>1999-01-01</ns0:dateOfDeath> | ||||
| </ns0:author> | ||||
| </authors> | ||||
| <ns0:authors xmlns:ns0="http://www.demo.com/author"> | ||||
|     <author xmlns="http://www.demo.com/author" id="15"> | ||||
|         <firstName>piwo</firstName> | ||||
|         <lastName>harnas</lastName> | ||||
|         <age>12</age> | ||||
|         <dateOfBirth>2000-12-12</dateOfBirth> | ||||
|         <dateOfDeath>2000-12-12</dateOfDeath> | ||||
|     </author> | ||||
|     <author xmlns:ns0="http://www.demo.com/author" xmlns="http://www.demo.com/author" id="12"> | ||||
|         <firstName>piwo</firstName> | ||||
|         <lastName>harnas</lastName> | ||||
|         <age>12</age> | ||||
|         <dateOfBirth>2000-12-12</dateOfBirth> | ||||
|         <dateOfDeath>2000-12-12</dateOfDeath> | ||||
|     </author> | ||||
|     <author xmlns:ns0="http://www.demo.com/author" xmlns="http://www.demo.com/author" id="12"> | ||||
|         <firstName>piwo</firstName> | ||||
|         <lastName>harnas</lastName> | ||||
|         <age>12</age> | ||||
|         <dateOfBirth>2000-12-12</dateOfBirth> | ||||
|         <dateOfDeath>2000-12-12</dateOfDeath> | ||||
|     </author> | ||||
|     <author xmlns:ns0="http://www.demo.com/author" xmlns="http://www.demo.com/author" id="12"> | ||||
|         <firstName>piwo</firstName> | ||||
|         <lastName>harnas</lastName> | ||||
|         <age>12</age> | ||||
|         <dateOfBirth>2000-12-12</dateOfBirth> | ||||
|         <dateOfDeath>2000-12-12</dateOfDeath> | ||||
|     </author> | ||||
| </ns0:authors> | ||||
		Reference in New Issue
	
	Block a user
	 wojciech
					wojciech