fix put
This commit is contained in:
		| @@ -14,8 +14,24 @@ | ||||
|     </pd:startType> | ||||
|     <pd:startX>51</pd:startX> | ||||
|     <pd:startY>212</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
|             <satus> | ||||
|                 <xsl:value-of select="'author added'"/> | ||||
|             </satus> | ||||
|         </root> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endType> | ||||
|         <xsd:element name="root"> | ||||
|             <xsd:complexType> | ||||
|                 <xsd:sequence> | ||||
|                     <xsd:element ref="pfx:author" minOccurs="0"/> | ||||
|                     <xsd:element name="satus" type="xsd:string"/> | ||||
|                 </xsd:sequence> | ||||
|             </xsd:complexType> | ||||
|         </xsd:element> | ||||
|     </pd:endType> | ||||
|     <pd:endX>940</pd:endX> | ||||
|     <pd:endY>218</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|   | ||||
| @@ -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"> | ||||
| <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://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="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/XMLPUT.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
| @@ -14,179 +14,124 @@ | ||||
|     </pd:startType> | ||||
|     <pd:startX>35</pd:startX> | ||||
|     <pd:startY>148</pd:startY> | ||||
|     <pd:returnBindings/> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
|             <status> | ||||
|                 <xsl:value-of select="'author updated'"/> | ||||
|             </status> | ||||
|         </root> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endType> | ||||
|         <xsd:element name="root"> | ||||
|             <xsd:complexType> | ||||
|                 <xsd:sequence> | ||||
|                     <xsd:element ref="pfx:author" minOccurs="0"/> | ||||
|                     <xsd:element name="status" type="xsd:string"/> | ||||
|                 </xsd:sequence> | ||||
|             </xsd:complexType> | ||||
|         </xsd:element> | ||||
|     </pd:endType> | ||||
|     <pd:endX>848</pd:endX> | ||||
|     <pd:endY>151</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace> | ||||
|     <pd:activity name="Transform-XML-1"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLTransformActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLTransformActivity</pd:resourceType> | ||||
|         <pd:x>422</pd:x> | ||||
|         <pd:y>151</pd:y> | ||||
|         <config> | ||||
|             <inputStyle>binary</inputStyle> | ||||
|             <engine>TibcoXML</engine> | ||||
|             <stylesheet>/Resources/xslt transformers/XSLT File.xslt</stylesheet> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <bytesInput> | ||||
|                 <xmlBytesIn> | ||||
|                     <xsl:value-of select="$Read-File-1/ns:ReadActivityOutputBinaryClass/fileContent/binaryContent"/> | ||||
|                 </xmlBytesIn> | ||||
|                 <parameter> | ||||
|                     <name> | ||||
|                         <xsl:value-of select="'id'"/> | ||||
|                     </name> | ||||
|                     <value> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/@id"/> | ||||
|                     </value> | ||||
|                     <isXMLDocument> | ||||
|                         <xsl:value-of select="'false'"/> | ||||
|                     </isXMLDocument> | ||||
|                 </parameter> | ||||
|                 <parameter> | ||||
|                     <name> | ||||
|                         <xsl:value-of select="'firstname'"/> | ||||
|                     </name> | ||||
|                     <value> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:firstName"/> | ||||
|                     </value> | ||||
|                     <isXMLDocument> | ||||
|                         <xsl:value-of select="'false'"/> | ||||
|                     </isXMLDocument> | ||||
|                 </parameter> | ||||
|                 <parameter> | ||||
|                     <name> | ||||
|                         <xsl:value-of select="'secondname'"/> | ||||
|                     </name> | ||||
|                     <value> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:lastName"/> | ||||
|                     </value> | ||||
|                     <isXMLDocument> | ||||
|                         <xsl:value-of select="'false'"/> | ||||
|                     </isXMLDocument> | ||||
|                 </parameter> | ||||
|                 <parameter> | ||||
|                     <name> | ||||
|                         <xsl:value-of select="'date-of-birth'"/> | ||||
|                     </name> | ||||
|                     <value> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:dateOfBirth"/> | ||||
|                     </value> | ||||
|                     <isXMLDocument> | ||||
|                         <xsl:value-of select="'false'"/> | ||||
|                     </isXMLDocument> | ||||
|                 </parameter> | ||||
|                 <parameter> | ||||
|                     <name> | ||||
|                         <xsl:value-of select="'date-of-death'"/> | ||||
|                     </name> | ||||
|                     <value> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:dateOfDeath"/> | ||||
|                     </value> | ||||
|                     <isXMLDocument> | ||||
|                         <xsl:value-of select="'false'"/> | ||||
|                     </isXMLDocument> | ||||
|                 </parameter> | ||||
|                 <parameter> | ||||
|                     <name> | ||||
|                         <xsl:value-of select="'age'"/> | ||||
|                     </name> | ||||
|                     <value> | ||||
|                         <xsl:value-of select="$Start/root/pfx:author/pfx:age"/> | ||||
|                     </value> | ||||
|                     <isXMLDocument> | ||||
|                         <xsl:value-of select="'false'"/> | ||||
|                     </isXMLDocument> | ||||
|                 </parameter> | ||||
|             </bytesInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Read-File-1"> | ||||
|         <pd:type>com.tibco.plugin.file.FileReadActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.FileReadActivity</pd:resourceType> | ||||
|         <pd:x>239</pd:x> | ||||
|         <pd:y>148</pd:y> | ||||
|         <pd:x>193</pd:x> | ||||
|         <pd:y>147</pd:y> | ||||
|         <config> | ||||
|             <encoding>binary</encoding> | ||||
|             <encoding>text</encoding> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns:ReadActivityInputClass> | ||||
|             <ns2: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> | ||||
|             </ns:ReadActivityInputClass> | ||||
|             </ns2:ReadActivityInputClass> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Write-File-1"> | ||||
|     <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>148</pd:y> | ||||
|         <config> | ||||
|             <inputStyle>text</inputStyle> | ||||
|             <xsdVersion>default</xsdVersion> | ||||
|             <validateOutput>true</validateOutput> | ||||
|             <term ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <xmlString> | ||||
|                 <xsl:value-of select="$Read-File-1/ns:ReadActivityOutputTextClass/fileContent/textContent"/> | ||||
|             </xmlString> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Map Data"> | ||||
|         <pd:type>com.tibco.plugin.mapper.MapperActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.MapperActivity</pd:resourceType> | ||||
|         <pd:x>475</pd:x> | ||||
|         <pd:y>150</pd:y> | ||||
|         <config> | ||||
|             <element ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx:authors> | ||||
|                 <xsl:copy-of select="$Start/root/pfx:author"/> | ||||
|                 <xsl:variable name="var" select="$Start/root/pfx:author/@id"/> | ||||
|                 <xsl:copy-of select="$Parse-XML/pfx:authors/pfx:author[@id!=$var]"/> | ||||
|             </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>598</pd:x> | ||||
|         <pd:y>149</pd:y> | ||||
|         <config> | ||||
|             <renderAsText>text</renderAsText> | ||||
|             <validateInput>false</validateInput> | ||||
|             <term ref="pfx:authors"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <xsl:copy-of select="$Map-Data/pfx:authors"/> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Write File"> | ||||
|         <pd:type>com.tibco.plugin.file.FileWriteActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.FileWriteActivity</pd:resourceType> | ||||
|         <pd:x>613</pd:x> | ||||
|         <pd:y>152</pd:y> | ||||
|         <pd:x>725</pd:x> | ||||
|         <pd:y>150</pd:y> | ||||
|         <config> | ||||
|             <encoding>binary</encoding> | ||||
|             <encoding>text</encoding> | ||||
|             <compressFile>None</compressFile> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns:WriteActivityInputBinaryClass> | ||||
|             <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> | ||||
|                 <binaryContent> | ||||
|                     <xsl:value-of select="$Transform-XML-1/xmlBytes/xmlOutput"/> | ||||
|                 </binaryContent> | ||||
|             </ns:WriteActivityInputBinaryClass> | ||||
|                 <textContent> | ||||
|                     <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>729</pd:x> | ||||
|         <pd:y>151</pd:y> | ||||
|     <pd:activity name="Generate Error"> | ||||
|         <pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.throw</pd:resourceType> | ||||
|         <pd:x>342</pd:x> | ||||
|         <pd:y>286</pd:y> | ||||
|         <config> | ||||
|             <sharedConfig>/Resources/configurations/Notify Configuration.sharednotify</sharedConfig> | ||||
|             <faultName/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <input> | ||||
|                 <root> | ||||
|                     <status> | ||||
|                         <xsl:value-of select="'put'"/> | ||||
|                     </status> | ||||
|                 </root> | ||||
|             </input> | ||||
|             <pfx3:ActivityInput/> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>Read-File-1</pd:from> | ||||
|         <pd:to>Transform-XML-1</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Transform-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>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-1</pd:to> | ||||
| @@ -194,4 +139,48 @@ | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Read-File-1</pd:from> | ||||
|         <pd:to>Parse XML</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>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>Parse XML</pd:from> | ||||
|         <pd:to>Generate Error</pd:to> | ||||
|         <pd:xpathDescription>author does not exist</pd:xpathDescription> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>xpath</pd:conditionType> | ||||
|         <pd:xpath>not(boolean($Parse-XML/pfx:authors/pfx:author[@id=$Start/root/pfx:author/@id]))</pd:xpath> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
		Reference in New Issue
	
	Block a user
	 wojciech
					wojciech