refactor
This commit is contained in:
		@@ -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:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 | 
			
		||||
<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/schemas/httpRequest/Resources/schemas/Schema.xsd2" 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 | 
			
		||||
    <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"/>
 | 
			
		||||
    <pd:name>Processes/sql/author/SqlPOST.process</pd:name>
 | 
			
		||||
    <pd:startName>Start</pd:startName>
 | 
			
		||||
    <pd:startType>
 | 
			
		||||
@@ -34,10 +35,12 @@
 | 
			
		||||
    </pd:endType>
 | 
			
		||||
    <pd:endX>778</pd:endX>
 | 
			
		||||
    <pd:endY>112</pd:endY>
 | 
			
		||||
    <pd:errorSchemas/>
 | 
			
		||||
    <pd:errorSchemas>
 | 
			
		||||
        <PostError ref="pfx2:root"/>
 | 
			
		||||
    </pd:errorSchemas>
 | 
			
		||||
    <pd:processVariables/>
 | 
			
		||||
    <pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace>
 | 
			
		||||
    <pd:activity name="AddAuthor">
 | 
			
		||||
    <pd:activity name="Add Author">
 | 
			
		||||
        <pd:type>com.tibco.plugin.jdbc.JDBCUpdateActivity</pd:type>
 | 
			
		||||
        <pd:resourceType>ae.activities.JDBCUpdateActivity</pd:resourceType>
 | 
			
		||||
        <pd:x>384</pd:x>
 | 
			
		||||
@@ -119,7 +122,7 @@
 | 
			
		||||
            </jdbcUpdateActivityInput>
 | 
			
		||||
        </pd:inputBindings>
 | 
			
		||||
    </pd:activity>
 | 
			
		||||
    <pd:activity name="LogInputData">
 | 
			
		||||
    <pd:activity name="Log Input Data">
 | 
			
		||||
        <pd:type>com.tibco.pe.core.WriteToLogActivity</pd:type>
 | 
			
		||||
        <pd:resourceType>ae.activities.log</pd:resourceType>
 | 
			
		||||
        <pd:x>274</pd:x>
 | 
			
		||||
@@ -138,8 +141,8 @@
 | 
			
		||||
    <pd:activity name="Catch">
 | 
			
		||||
        <pd:type>com.tibco.pe.core.CatchActivity</pd:type>
 | 
			
		||||
        <pd:resourceType>ae.activities.catch</pd:resourceType>
 | 
			
		||||
        <pd:x>281</pd:x>
 | 
			
		||||
        <pd:y>239</pd:y>
 | 
			
		||||
        <pd:x>288</pd:x>
 | 
			
		||||
        <pd:y>323</pd:y>
 | 
			
		||||
        <pd:handler>true</pd:handler>
 | 
			
		||||
        <config>
 | 
			
		||||
            <catchAll>true</catchAll>
 | 
			
		||||
@@ -149,21 +152,28 @@
 | 
			
		||||
    <pd:activity name="Generate Error">
 | 
			
		||||
        <pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
 | 
			
		||||
        <pd:resourceType>ae.activities.throw</pd:resourceType>
 | 
			
		||||
        <pd:x>422</pd:x>
 | 
			
		||||
        <pd:y>240</pd:y>
 | 
			
		||||
        <pd:x>429</pd:x>
 | 
			
		||||
        <pd:y>324</pd:y>
 | 
			
		||||
        <config>
 | 
			
		||||
            <faultName/>
 | 
			
		||||
            <faultName>PostError</faultName>
 | 
			
		||||
        </config>
 | 
			
		||||
        <pd:inputBindings>
 | 
			
		||||
            <ns1:ActivityInput>
 | 
			
		||||
                <message>
 | 
			
		||||
                    <xsl:value-of select="string($Catch/exceptiondata)"/>
 | 
			
		||||
                </message>
 | 
			
		||||
                <data>
 | 
			
		||||
                    <pfx2:root>
 | 
			
		||||
                        <pfx2:error>
 | 
			
		||||
                            <xsl:value-of select="'could not add the author with given id, because it already exist'"/>
 | 
			
		||||
                        </pfx2:error>
 | 
			
		||||
                    </pfx2:root>
 | 
			
		||||
                </data>
 | 
			
		||||
            </ns1:ActivityInput>
 | 
			
		||||
        </pd:inputBindings>
 | 
			
		||||
    </pd:activity>
 | 
			
		||||
    <pd:transition>
 | 
			
		||||
        <pd:from>AddAuthor</pd:from>
 | 
			
		||||
        <pd:from>Add Author</pd:from>
 | 
			
		||||
        <pd:to>End</pd:to>
 | 
			
		||||
        <pd:lineType>Default</pd:lineType>
 | 
			
		||||
        <pd:lineColor>-16777216</pd:lineColor>
 | 
			
		||||
@@ -171,14 +181,14 @@
 | 
			
		||||
    </pd:transition>
 | 
			
		||||
    <pd:transition>
 | 
			
		||||
        <pd:from>Start</pd:from>
 | 
			
		||||
        <pd:to>LogInputData</pd:to>
 | 
			
		||||
        <pd:to>Log Input Data</pd:to>
 | 
			
		||||
        <pd:lineType>Default</pd:lineType>
 | 
			
		||||
        <pd:lineColor>-16777216</pd:lineColor>
 | 
			
		||||
        <pd:conditionType>always</pd:conditionType>
 | 
			
		||||
    </pd:transition>
 | 
			
		||||
    <pd:transition>
 | 
			
		||||
        <pd:from>LogInputData</pd:from>
 | 
			
		||||
        <pd:to>AddAuthor</pd:to>
 | 
			
		||||
        <pd:from>Log Input Data</pd:from>
 | 
			
		||||
        <pd:to>Add Author</pd:to>
 | 
			
		||||
        <pd:lineType>Default</pd:lineType>
 | 
			
		||||
        <pd:lineColor>-16777216</pd:lineColor>
 | 
			
		||||
        <pd:conditionType>always</pd:conditionType>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user