propagate soap errors
This commit is contained in:
		| @@ -1,6 +1,8 @@ | ||||
| <?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:ns2="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:ns4="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:ns4="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="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.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" schemaLocation="/Resources/schemas/errorSchema.xsd"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/xml/author/XmlDELETE.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
| @@ -34,7 +36,9 @@ | ||||
|     </pd:endType> | ||||
|     <pd:endX>1010</pd:endX> | ||||
|     <pd:endY>262</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:errorSchemas> | ||||
|         <DeleteError wsMsgRef="pfx3:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719483544323</pd:targetNamespace> | ||||
|     <pd:activity name="Read File"> | ||||
| @@ -124,10 +128,20 @@ | ||||
|         <pd:x>460</pd:x> | ||||
|         <pd:y>88</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|             <faultName>DeleteError</faultName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns3:ActivityInput/> | ||||
|             <ns3:ActivityInput> | ||||
|                 <data> | ||||
|                     <pfx3:ErrorMessage> | ||||
|                         <part1> | ||||
|                             <pfx2:error> | ||||
|                                 <xsl:value-of select="'could not remove author with given id because it does not exist'"/> | ||||
|                             </pfx2:error> | ||||
|                         </part1> | ||||
|                     </pfx3:ErrorMessage> | ||||
|                 </data> | ||||
|             </ns3:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|   | ||||
| @@ -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.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.demo.com/author" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/xml/author/XmlGET.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
| @@ -37,7 +37,7 @@ | ||||
|     <pd:endX>924</pd:endX> | ||||
|     <pd:endY>81</pd:endY> | ||||
|     <pd:errorSchemas> | ||||
|         <Schema0 wsMsgRef="pfx3:ErrorMessage"/> | ||||
|         <GETError wsMsgRef="pfx3:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace> | ||||
| @@ -94,7 +94,7 @@ | ||||
|         <pd:x>705</pd:x> | ||||
|         <pd:y>277</pd:y> | ||||
|         <config> | ||||
|             <faultName>Schema0</faultName> | ||||
|             <faultName>GETError</faultName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns2:ActivityInput> | ||||
| @@ -102,7 +102,7 @@ | ||||
|                     <pfx3:ErrorMessage> | ||||
|                         <part1> | ||||
|                             <ns3:error> | ||||
|                                 <xsl:value-of select="'piwo'"/> | ||||
|                                 <xsl:value-of select="'could not get the author with given id, because it does not exist'"/> | ||||
|                             </ns3:error> | ||||
|                         </part1> | ||||
|                     </pfx3:ErrorMessage> | ||||
| @@ -145,6 +145,6 @@ | ||||
|         <pd:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|         <pd:conditionType>otherwise</pd:conditionType> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
| @@ -1,6 +1,7 @@ | ||||
| <?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: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"> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 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:pfx3="http://xmlns.example.com/1721737885605" 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:ns4="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns3="http://www.tibco.com/namespaces/tnt/plugins/file/v2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/xml/author/XmlPOST.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
| @@ -34,7 +35,9 @@ | ||||
|     </pd:endType> | ||||
|     <pd:endX>940</pd:endX> | ||||
|     <pd:endY>218</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:errorSchemas> | ||||
|         <PostError wsMsgRef="pfx3:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace> | ||||
|     <pd:activity name="Read File"> | ||||
| @@ -154,13 +157,23 @@ | ||||
|     <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> | ||||
|         <pd:x>343</pd:x> | ||||
|         <pd:y>59</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|             <faultName>PostError</faultName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx2:ActivityInput/> | ||||
|             <pfx2:ActivityInput> | ||||
|                 <data> | ||||
|                     <pfx3:ErrorMessage> | ||||
|                         <part1> | ||||
|                             <ns4:error> | ||||
|                                 <xsl:value-of select="'could not add author with given id because this id is already in use'"/> | ||||
|                             </ns4:error> | ||||
|                         </part1> | ||||
|                     </pfx3:ErrorMessage> | ||||
|                 </data> | ||||
|             </pfx2:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| <?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: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"> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 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:pfx4="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/xml/author/XmlPUT.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
| @@ -34,7 +35,9 @@ | ||||
|     </pd:endType> | ||||
|     <pd:endX>848</pd:endX> | ||||
|     <pd:endY>151</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:errorSchemas> | ||||
|         <PutError wsMsgRef="pfx4:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace> | ||||
|     <pd:activity name="Read-File-1"> | ||||
| @@ -123,13 +126,23 @@ | ||||
|     <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> | ||||
|         <pd:x>347</pd:x> | ||||
|         <pd:y>291</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|             <faultName>PutError</faultName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx3:ActivityInput/> | ||||
|             <pfx3:ActivityInput> | ||||
|                 <data> | ||||
|                     <pfx4:ErrorMessage> | ||||
|                         <part1> | ||||
|                             <ns3:error> | ||||
|                                 <xsl:value-of select="'could not update author with given id becuase it  does not exist'"/> | ||||
|                             </ns3:error> | ||||
|                         </part1> | ||||
|                     </pfx4:ErrorMessage> | ||||
|                 </data> | ||||
|             </pfx3:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wojciech
					wojciech