AS400NaturalCustomerInAppSvc/AS400NaturalCustomerInAppSvc/operations/updateCustomerData/proxy/AS400NaturalCustomerInAppSvc_updateCustomerData.pipeline
2025-11-18 22:51:57 +01:00

736 lines
63 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<con:pipelineEntry xmlns:con="http://www.bea.com/wli/sb/pipeline/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config" xmlns:con2="http://www.bea.com/wli/sb/stages/config">
<con:coreEntry>
<con:binding type="SOAP" isSoap12="false" xsi:type="con:SoapBindingType">
<con:wsdl ref="AS400NaturalCustomerInAppSvc/wsdl/AS400NaturalCustomerInAppSvc"/>
<con:binding>
<con:name>AS400NaturalCustomerInAppSvcSOAP</con:name>
<con:namespace>http://xmlns.banesco.com/ApplicationService/AS400NaturalCustomerInAppSvc</con:namespace>
</con:binding>
</con:binding>
<con:xqConfiguration>
<con:snippetVersion>1.0</con:snippetVersion>
</con:xqConfiguration>
</con:coreEntry>
<con:router errorHandler="error-N3f579cff.77e31d8c.0.156c73c5fb5.N8000">
<con:pipeline name="error-N3f579cff.77e31d8c.0.156c73c5fb5.N8000" type="error">
<con:stage name="ErrorGlobalHandler">
<con:context xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config"/>
<con:actions>
<con6:assign varName="message" xmlns:con4="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con6="http://www.bea.com/wli/sb/stages/transform/config" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f69</con2:id>
<con6:expr>
<con6:xqueryText xmlns:con6="http://www.bea.com/wli/sb/stages/config">"Node: NOT-DEFINED Stage: NOT-DEFINED"</con6:xqueryText>
</con6:expr>
</con6:assign>
<con6:ifThenElse xmlns:con6="http://www.bea.com/wli/sb/stages/transform/config" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f68</con2:id>
<con6:case id="_BranchId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f67">
<con6:condition>
<con2:xqueryText>exists($fault[ctx:location/ctx:stage= "DVMs"])</con2:xqueryText>
</con6:condition>
<con6:actions>
<con7:replace varName="message" xmlns:con1="http://www.bea.com/wli/sb/stages/config">
<con1:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f66</con1:id>
<con7:expr>
<con1:xqueryText>concat("DVMs ", fn-bea:serialize($dvmRequest))</con1:xqueryText>
</con7:expr>
</con7:replace>
</con6:actions>
</con6:case>
<con6:case id="_BranchId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f65">
<con6:condition>
<con2:xqueryText>exists($fault/ctx:location)</con2:xqueryText>
</con6:condition>
<con6:actions>
<con7:replace varName="message" xmlns:con1="http://www.bea.com/wli/sb/stages/config">
<con1:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f64</con1:id>
<con7:expr>
<con1:xqueryText>concat("Node: ", data($fault/ctx:location/ctx:node), " Stage: ",data($fault/ctx:location/ctx:stage))</con1:xqueryText>
</con7:expr>
</con7:replace>
</con6:actions>
</con6:case>
</con6:ifThenElse>
<con4:log xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f63</con2:id>
<con4:logLevel>error</con4:logLevel>
<con4:expr>
<con2:xqueryText>fn:concat('[',fn:current-dateTime(),'][MessageID : ',$messageID,'][Global Error Handler][',fn:tokenize($inbound/@name,'\$')[last()],'/',$operation,'- message : ',$message,' - fault: ',fn-bea:serialize($fault),' - body : ',fn-bea:serialize($backupBody/*),'][Global Error Handler]')</con2:xqueryText>
</con4:expr>
<con4:message>Error Global</con4:message>
</con4:log>
<con5:alert xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f62</con2:id>
<con5:destination ref="BanescoCommonArtifacts/alert/ErrorComunicacionAlert"/>
<con5:description>Banesco: Oracle Service Bus Error</con5:description>
<con5:severity>fatal</con5:severity>
<con5:payload>
<con2:xqueryText>fn:concat('[',fn:current-dateTime(),'][MessageID : ',$messageID,'][Global Error Handler][',fn:tokenize($inbound/@name,'\$')[last()],'/',$operation,'- message : ',$message,' - fault: ',fn-bea:serialize($fault),' - body : ',fn-bea:serialize($backupBody/*),'][Global Error Handler]')</con2:xqueryText>
</con5:payload>
</con5:alert>
<con6:replace varName="message" xmlns:con6="http://www.bea.com/wli/sb/stages/transform/config" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f61</con2:id>
<con6:expr>
<con2:xqueryTransform>
<con2:resource ref="BanescoCommonArtifacts/xq/errorHandler/ProxyErrorHandler"/>
<con2:param name="inbound">
<con2:path>$inbound</con2:path>
</con2:param>
<con2:param name="backupBody">
<con2:path>$backupBody</con2:path>
</con2:param>
<con2:param name="fault">
<con2:path>$fault</con2:path>
</con2:param>
</con2:xqueryTransform>
</con6:expr>
</con6:replace>
<con6:rename varName="message" xmlns:con6="http://www.bea.com/wli/sb/stages/transform/config" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f60</con2:id>
<con6:location>
<con2:xpathText>./*</con2:xpathText>
</con6:location>
<con6:namespace>http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc</con6:namespace>
</con6:rename>
<con6:rename varName="message" xmlns:con6="http://www.bea.com/wli/sb/stages/transform/config" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f5f</con2:id>
<con6:location>
<con6:xpathText xmlns:con6="http://www.bea.com/wli/sb/stages/config">.</con6:xpathText>
</con6:location>
<con6:namespace>http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc</con6:namespace>
</con6:rename>
<con6:replace contents-only="true" varName="body" xmlns:con6="http://www.bea.com/wli/sb/stages/transform/config" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con7="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f5e</con2:id>
<con6:location>
<con6:xpathText xmlns:con6="http://www.bea.com/wli/sb/stages/config">.</con6:xpathText>
</con6:location>
<con6:expr>
<con6:xqueryText xmlns:con6="http://www.bea.com/wli/sb/stages/config">$message</con6:xqueryText>
</con6:expr>
</con6:replace>
<con2:reply isError="false" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config" xmlns:env="http://www.bea.com/wli/config/env" xmlns:con5="http://www.bea.com/wli/sb/stages/alert/config" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f5d</con2:id>
</con2:reply>
</con:actions>
</con:stage>
</con:pipeline>
<con:pipeline name="request-a7c048f.N15255722.0.157c4111c0e.N7e53" type="request">
<con:stage name="BakcupRequest">
<con:context xmlns:con4="http://www.bea.com/wli/sb/stages/alert/config" xmlns:con5="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con3="http://www.bea.com/wli/sb/stages/logging/config"/>
<con:actions>
<con1:assign varName="backupHeader" xmlns:con4="http://www.bea.com/wli/sb/stages/alert/config" xmlns:con5="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con3="http://www.bea.com/wli/sb/stages/logging/config">
<con2:id>_ActionId-a7c048f.N15255722.0.157c4111c0e.N7e51</con2:id>
<con1:expr>
<con2:xqueryText>$header</con2:xqueryText>
</con1:expr>
</con1:assign>
<con1:assign varName="backupBody" xmlns:con4="http://www.bea.com/wli/sb/stages/alert/config" xmlns:con5="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con3="http://www.bea.com/wli/sb/stages/logging/config">
<con2:id>_ActionId-a7c048f.N15255722.0.157c4111c0e.N7e50</con2:id>
<con1:expr>
<con2:xqueryText>$body</con2:xqueryText>
</con1:expr>
</con1:assign>
<con1:assign varName="proxyName" xmlns:con4="http://www.bea.com/wli/sb/stages/alert/config" xmlns:con5="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con3="http://www.bea.com/wli/sb/stages/logging/config">
<con2:id>_ActionId-N56015f30.7f264938.0.15a951a94ef.N7ff2</con2:id>
<con1:expr>
<con2:xqueryText>$proxyName</con2:xqueryText>
</con1:expr>
</con1:assign>
</con:actions>
</con:stage>
</con:pipeline>
<con:pipeline name="response-a7c048f.N15255722.0.157c4111c0e.N7e4f" type="response"/>
<con:pipeline name="request-N3f579cff.77e31d8c.0.156c73c5fb5.N7f1a" type="request">
<con:stage name="ValidationApplicationRequest">
<con:context>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
</con:context>
<con:actions>
<con1:validate xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f14</con2:id>
<con1:schema ref="BanescoCommonArtifacts/xsd/canonical/Services/NaturalCustomerMgmtSvc"/>
<con1:schemaElement xmlns:nat="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc">nat:updateCustomerData_Rq</con1:schemaElement>
<con1:varName>body</con1:varName>
<con1:location>
<con2:xpathText>./nat:updateCustomerData_Rq</con2:xpathText>
</con1:location>
</con1:validate>
</con:actions>
</con:stage>
<con:stage name="DVMs">
<con:context>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
</con:context>
<con:actions>
<con1:wsCallout xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f0c</con2:id>
<con1:service ref="MessageEnrichUtilMgmtSvc/proxy/MessageEnrichUtilMgmtSvc" xsi:type="ref:ProxyRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
<con1:operation>readDVM</con1:operation>
<con1:request>
<con1:body wrapped="false">dvmRequest</con1:body>
</con1:request>
<con1:response>
<con1:body wrapped="false">dvmResponse</con1:body>
</con1:response>
<con1:requestTransform>
<con1:assign varName="dvmRequest">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f09</con2:id>
<con1:expr>
<con2:xqueryTransform>
<con2:resource ref="BanescoCommonArtifacts/xq/utilities/MessageEnrichUtilMgmtSvc_readDVM_InputToDVMProtocol"/>
<con2:param name="msgRqHdr1">
<con2:path>$backupBody/nat:updateCustomerData_Rq/nat:MsgRqHdr</con2:path>
</con2:param>
</con2:xqueryTransform>
</con1:expr>
</con1:assign>
</con1:requestTransform>
<con1:responseTransform/>
</con1:wsCallout>
</con:actions>
</con:stage>
<con:stage name="TransformationToBackend">
<con:context>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
</con:context>
<con:actions>
<con1:replace varName="body" contents-only="true" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7ffd</con2:id>
<con1:location>
<con2:xpathText>.</con2:xpathText>
</con1:location>
<con1:expr>
<con2:xqueryTransform>
<con2:resource ref="AS400NaturalCustomerInAppSvc/operations/updateCustomerData/xq/AS400NaturalCustomerInAppSvc_updateCustomerData_CanonicalToInput"/>
<con2:param name="readDVM_Rs1">
<con2:path>$dvmResponse</con2:path>
</con2:param>
<con2:param name="updateCustomerData_Rq1">
<con2:path>$body/nat:updateCustomerData_Rq</con2:path>
</con2:param>
</con2:xqueryTransform>
</con1:expr>
</con1:replace>
</con:actions>
</con:stage>
<con:stage name="VbProtocol">
<con:context>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
<con2:userNsDecl prefix="stat" namespace="http://xmlns.banesco.com/EnterpriseObjects/Status" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config"/>
<con2:userNsDecl prefix="direct" namespace="http://Obi_Wan/EjecutaTRX" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config"/>
<con2:userNsDecl prefix="mes" namespace="http://xmlns.banesco.com/Service/MessageEnrichUtilMgmtSvc" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config"/>
</con:context>
<con:actions>
<con3:wsCallout xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f71</con2:id>
<con3:service xsi:type="ref:ProxyRef" ref="MessageEnrichUtilMgmtSvc/proxy/MessageEnrichUtilMgmtSvc" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
<con3:operation>readProtocoloVB</con3:operation>
<con3:request>
<con3:body wrapped="false">vbRequest</con3:body>
</con3:request>
<con3:response>
<con3:body wrapped="false">vbResponse</con3:body>
</con3:response>
<con3:requestTransform>
<con3:assign varName="vbRequest">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f70</con2:id>
<con3:expr>
<con2:xqueryTransform>
<con2:resource ref="BanescoCommonArtifacts/xq/utilities/MessageEnrichUtilMgmtSvc_readProtocoloVB_InputToVBProtocol"/>
<con2:param name="ejecutaTRX1">
<con2:path>$body/direct:EjecutaTRX</con2:path>
</con2:param>
<con2:param name="msgRqHdr1">
<con2:path>$backupBody/nat:updateCustomerData_Rq/nat:MsgRqHdr</con2:path>
</con2:param>
</con2:xqueryTransform>
</con3:expr>
</con3:assign>
</con3:requestTransform>
<con3:responseTransform>
<con3:ifThenElse>
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f6f</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7f6e">
<con3:condition>
<con2:xqueryConditionExpr>
<con2:compExpr operator="=">
<con2:leftPath>fn:upper-case($vbResponse/mes:Status/stat:StatusCode)</con2:leftPath>
<con2:rightPath>"OK"</con2:rightPath>
</con2:compExpr>
</con2:xqueryConditionExpr>
</con3:condition>
<con3:actions>
<con3:replace varName="body" contents-only="true">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f6d</con2:id>
<con3:location>
<con2:xpathText>.</con2:xpathText>
</con3:location>
<con3:expr>
<con2:xqueryText>$vbResponse/direct:EjecutaTRX</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:actions>
</con3:case>
<con3:default>
<con3:replace varName="body" contents-only="true">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f6c</con2:id>
<con3:location>
<con2:xpathText>.</con2:xpathText>
</con3:location>
<con3:expr>
<con2:xqueryTransform>
<con2:resource ref="BanescoCommonArtifacts/xq/utilities/MessageEnrichUtilMgmtSvc_readProtocoloVB_VBProtocolErrorToInput"/>
<con2:param name="inbound">
<con2:path>$inbound</con2:path>
</con2:param>
<con2:param name="readProtocoloVB_Rs1">
<con2:path>$vbResponse</con2:path>
</con2:param>
</con2:xqueryTransform>
</con3:expr>
</con3:replace>
<con3:rename varName="body">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f6b</con2:id>
<con3:location>
<con2:xpathText>./*</con2:xpathText>
</con3:location>
<con3:namespace>http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc</con3:namespace>
</con3:rename>
<con3:rename varName="body">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f6a</con2:id>
<con3:location>
<con2:xpathText>././*</con2:xpathText>
</con3:location>
<con3:namespace>http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc</con3:namespace>
</con3:rename>
<con2:reply>
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f69</con2:id>
</con2:reply>
</con3:default>
</con3:ifThenElse>
</con3:responseTransform>
</con3:wsCallout>
</con:actions>
</con:stage>
<con:stage id="_StageId-a960f41.6595f72c.0.16be24764de.N8000" name="Replace Header TRX Multigestion">
<con:context>
<con2:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc"/>
<con2:userNsDecl prefix="msg" namespace="http://xmlns.banesco.com/EnterpriseObjects/MsgRqHdr"/>
<con2:userNsDecl prefix="nat1" namespace="http://xmlns.banesco.com/EnterpriseObjects/NaturalCustomer"/>
<con2:userNsDecl prefix="direct" namespace="http://Obi_Wan/EjecutaTRX"/>
<con2:userNsDecl prefix="per" namespace="http://xmlns.banesco.com/EnterpriseObjects/PersonInfo_v2.0"/>
</con:context>
<con:actions>
<con1:ifThenElse>
<con2:id>_ActionId-a960f41.6595f72c.0.16be24764de.N7ff3</con2:id>
<con1:case id="_BranchId-a960f41.6595f72c.0.16be24764de.N7ff2">
<con1:condition>
<con2:xqueryText>data($backupBody/nat:updateCustomerData_Rq/nat:MsgRqHdr/msg:NetworkTrnInfo/msg:TransactionCode)='8910N' and
data($backupBody/nat:updateCustomerData_Rq/nat:MsgRqHdr/msg:ApplicantData/msg:Application)='PORTALAGS'</con2:xqueryText>
</con1:condition>
<con1:actions>
<con1:replace varName="body" contents-only="true">
<con2:id>_ActionId-a960f41.6595f72c.0.16be24764de.N7ffd</con2:id>
<con1:location>
<con2:xpathText>./direct:EjecutaTRX/direct:TRXS/direct:ListaTrxs/direct:TRX/@CODSUP</con2:xpathText>
</con1:location>
<con1:expr>
<con2:xqueryText>concat(data($backupBody/nat:updateCustomerData_Rq/nat:NaturalCustomer/nat1:CustInfo/nat1:PersonInfo/per:GovIssueIdent/per:IdentSerialNumPrefix),data($backupBody/nat:updateCustomerData_Rq/nat:NaturalCustomer/nat1:CustInfo/nat1:PersonInfo/per:GovIssueIdent/per:IdentSerialNum))</con2:xqueryText>
</con1:expr>
</con1:replace>
</con1:actions>
</con1:case>
<con1:default/>
</con1:ifThenElse>
</con:actions>
</con:stage>
<con:stage name="ValidationBackendRequest">
<con:context xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:userNsDecl prefix="direct" namespace="http://Obi_Wan/EjecutaTRX"/>
</con:context>
<con:actions>
<con1:assign varName="backupTRX">
<con2:id>_ActionId-a960f41.4d24e6fd.0.16b2846b7b6.N7fd3</con2:id>
<con1:expr>
<con2:xqueryText>$body</con2:xqueryText>
</con1:expr>
</con1:assign>
<con1:validate xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7f62</con2:id>
<con1:schema ref="AS400NaturalCustomerInAppSvc/operations/updateCustomerData/xsd/AS400NaturalCustomerInAppSvc_updateCustomerData"/>
<con1:schemaElement xmlns:ejec="http://Obi_Wan/EjecutaTRX">ejec:EjecutaTRX</con1:schemaElement>
<con1:varName>body</con1:varName>
<con1:location>
<con2:xpathText>./direct:EjecutaTRX</con2:xpathText>
</con1:location>
</con1:validate>
</con:actions>
</con:stage>
</con:pipeline>
<con:pipeline name="response-N3f579cff.77e31d8c.0.156c73c5fb5.N7f19" type="response">
<con:stage name="ValidationBackendResponse">
<con:context xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:userNsDecl prefix="direct" namespace="http://Obi_Wan/EjecutaTRX"/>
</con:context>
<con:actions>
<con1:validate xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.77e31d8c.0.156c73c5fb5.N7f11</con2:id>
<con1:schema ref="AS400NaturalCustomerInAppSvc/operations/updateCustomerData/xsd/AS400NaturalCustomerInAppSvc_updateCustomerData"/>
<con1:schemaElement xmlns:ejec="http://Obi_Wan/EjecutaTRX">ejec:EjecutaTRXResponse</con1:schemaElement>
<con1:varName>body</con1:varName>
<con1:location>
<con2:xpathText>./direct:EjecutaTRXResponse</con2:xpathText>
</con1:location>
</con1:validate>
</con:actions>
</con:stage>
<con:stage name="DVMs">
<con:context>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
<con2:userNsDecl namespace="http://xmlns.banesco.com/Service/MessageEnrichUtilMgmtSvc" prefix="ns" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config"/>
<con2:userNsDecl namespace="http://Obi_Wan/EjecutaTRX" prefix="direct" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config"/>
</con:context>
<con:actions>
<con3:assign varName="dvm" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7e06</con2:id>
<con3:expr>
<con2:xqueryText>"&lt;dvm>"</con2:xqueryText>
</con3:expr>
</con3:assign>
<con3:ifThenElse xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7e05</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7e04">
<con3:condition>
<con2:xqueryText>exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta[1]/@NUMREG)</con2:xqueryText>
</con3:condition>
<con3:actions>
<con3:wsCallout>
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7e03</con2:id>
<con3:service xsi:type="ref:ProxyRef" ref="MessageEnrichUtilMgmtSvc/proxy/MessageEnrichUtilMgmtSvc" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
<con3:operation>readDVM</con3:operation>
<con3:request>
<con3:body wrapped="false">dvmRequest</con3:body>
</con3:request>
<con3:response>
<con3:body wrapped="false">dvmResponse</con3:body>
</con3:response>
<con3:requestTransform>
<con3:replace varName="dvmRequest">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7e02</con2:id>
<con3:location>
<con2:xpathText>.</con2:xpathText>
</con3:location>
<con3:expr>
<con2:xqueryTransform>
<con2:resource ref="BanescoCommonArtifacts/xq/utilities/MessageEnrichUtilMgmtSvc_readDVM_InputToDVMTranslateErrors"/>
<con2:param name="dvmname">
<con2:path>"DVM_RESPONSE_CODE"</con2:path>
</con2:param>
<con2:param name="name">
<con2:path>"VC"</con2:path>
</con2:param>
<con2:param name="errors">
<con2:path>$body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta[1]/@NUMREG</con2:path>
</con2:param>
<con2:param name="msgRqHdr1">
<con2:path>$backupBody/nat:updateCustomerData_Rq/nat:MsgRqHdr</con2:path>
</con2:param>
<con2:param name="field">
<con2:path>"AS400"</con2:path>
</con2:param>
</con2:xqueryTransform>
</con3:expr>
</con3:replace>
</con3:requestTransform>
<con3:responseTransform>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7e01</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;numreg>",$dvmResponse/ns:Outputs/ns:Output[1]/ns:Attributes/ns:Attribute[1]/ns:Value/text(),"&lt;/numreg>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:responseTransform>
</con3:wsCallout>
</con3:actions>
</con3:case>
<con3:default>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7e00</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;numreg>&lt;/numreg>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:default>
</con3:ifThenElse>
<con3:assign varName="errors" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dff</con2:id>
<con3:expr>
<con2:xqueryText>""</con2:xqueryText>
</con3:expr>
</con3:assign>
<con3:ifThenElse xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dfe</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7dfd">
<con3:condition>
<con2:xqueryText>exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR1)</con2:xqueryText>
</con3:condition>
<con3:actions>
<con3:replace varName="errors">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dfc</con2:id>
<con3:expr>
<con2:xqueryText>concat($errors,$body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR1,",")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:actions>
</con3:case>
<con3:default>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dfb</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;coderr1>&lt;/coderr1>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:default>
</con3:ifThenElse>
<con3:ifThenElse xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dfa</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7df9">
<con3:condition>
<con2:xqueryText>exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR2)</con2:xqueryText>
</con3:condition>
<con3:actions>
<con3:replace varName="errors">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df8</con2:id>
<con3:expr>
<con2:xqueryText>concat($errors,$body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR2, ",")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:actions>
</con3:case>
<con3:default>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df7</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;coderr2>&lt;/coderr2>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:default>
</con3:ifThenElse>
<con3:ifThenElse xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df6</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7df5">
<con3:condition>
<con2:xqueryText>exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR3)</con2:xqueryText>
</con3:condition>
<con3:actions>
<con3:replace varName="errors">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df4</con2:id>
<con3:expr>
<con2:xqueryText>concat($errors,$body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR3, ",")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:actions>
</con3:case>
<con3:default>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df3</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;coderr3>&lt;/coderr3>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:default>
</con3:ifThenElse>
<con3:ifThenElse xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df2</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7df1">
<con3:condition>
<con2:xqueryText>exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR4)</con2:xqueryText>
</con3:condition>
<con3:actions>
<con3:replace varName="errors">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7df0</con2:id>
<con3:expr>
<con2:xqueryText>concat($errors,$body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas[1]/direct:Respuesta/direct:CODERR4)</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:actions>
</con3:case>
<con3:default>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7def</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;coderr4>&lt;/coderr4>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:default>
</con3:ifThenElse>
<con3:ifThenElse xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dee</con2:id>
<con3:case id="_BranchId-N3f579cff.3a5f33bd.0.156c7673296.N7ded">
<con3:condition>
<con2:xqueryConditionExpr>
<con2:compExpr operator="!=">
<con2:leftPath>$errors</con2:leftPath>
<con2:rightPath>""</con2:rightPath>
</con2:compExpr>
</con2:xqueryConditionExpr>
</con3:condition>
<con3:actions>
<con3:ifThenElse>
<con2:id>_ActionId-a960f8a.N5f5dd6ea.0.1692f34a3f5.N7e80</con2:id>
<con3:case id="_BranchId-a960f8a.N5f5dd6ea.0.1692f34a3f5.N7e7f">
<con3:condition>
<con2:xqueryText>(exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR1) and data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR1)!='') or
(exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR2) and data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR2)!='') or
(exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR3) and data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR3)!='') or
(exists($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR4) and data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR4)!='')</con2:xqueryText>
</con3:condition>
<con3:actions>
<con3:replace varName="dvm">
<con2:id>_ActionId-a960f8a.N5f5dd6ea.0.1692f34a3f5.N7e7e</con2:id>
<con3:expr>
<con2:xqueryText><![CDATA[concat($dvm, "<coderr1>",data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR1),"</coderr1><coderr2>",data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR2),"</coderr2><coderr3>",data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR3),"</coderr3><coderr4>",data($body/direct:EjecutaTRXResponse/direct:EjecutaTRXResult/direct:TRXSResults/direct:Respuestas/direct:Respuesta/direct:DSCERR4),"</coderr4>")]]></con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:actions>
</con3:case>
<con3:default>
<con3:wsCallout>
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dec</con2:id>
<con3:service xsi:type="ref:ProxyRef" ref="MessageEnrichUtilMgmtSvc/proxy/MessageEnrichUtilMgmtSvc" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
<con3:operation>readDVM</con3:operation>
<con3:request>
<con3:body wrapped="false">dvmRequest</con3:body>
</con3:request>
<con3:response>
<con3:body wrapped="false">dvmResponse</con3:body>
</con3:response>
<con3:requestTransform>
<con3:replace varName="dvmRequest">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7deb</con2:id>
<con3:location>
<con2:xpathText>.</con2:xpathText>
</con3:location>
<con3:expr>
<con2:xqueryTransform>
<con2:resource ref="BanescoCommonArtifacts/xq/utilities/MessageEnrichUtilMgmtSvc_readDVM_InputToDVMTranslateErrors"/>
<con2:param name="dvmname">
<con2:path>"DVM_MESSAGE_ERROR"</con2:path>
</con2:param>
<con2:param name="name">
<con2:path>"MESSAGE"</con2:path>
</con2:param>
<con2:param name="errors">
<con2:path>$errors</con2:path>
</con2:param>
<con2:param name="msgRqHdr1">
<con2:path>$backupBody/nat:updateCustomerData_Rq/nat:MsgRqHdr</con2:path>
</con2:param>
<con2:param name="field">
<con2:path>"AS400"</con2:path>
</con2:param>
</con2:xqueryTransform>
</con3:expr>
</con3:replace>
</con3:requestTransform>
<con3:responseTransform>
<con3:replace varName="dvm">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7dea</con2:id>
<con3:expr>
<con2:xqueryText><![CDATA[concat($dvm, "<coderr1>",$dvmResponse/ns:Outputs/ns:Output[1]/ns:Attributes/ns:Attribute[1]/ns:Value/text(),"</coderr1><coderr2>",$dvmResponse/ns:Outputs/ns:Output[2]/ns:Attributes/ns:Attribute[1]/ns:Value/text(),"</coderr2><coderr3>",$dvmResponse/ns:Outputs/ns:Output[3]/ns:Attributes/ns:Attribute[1]/ns:Value/text(),"</coderr3><coderr4>",$dvmResponse/ns:Outputs/ns:Output[4]/ns:Attributes/ns:Attribute[1]/ns:Value/text(),"</coderr4>")]]></con2:xqueryText>
</con3:expr>
</con3:replace>
</con3:responseTransform>
</con3:wsCallout>
</con3:default>
</con3:ifThenElse>
</con3:actions>
</con3:case>
</con3:ifThenElse>
<con3:replace varName="dvm" xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:con1="http://www.bea.com/wli/sb/stages/routing/config" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:oper="http://xmlns.oracle.com/servicebus/pipeline/operations" xmlns:env="http://www.bea.com/wli/config/env" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7de9</con2:id>
<con3:expr>
<con2:xqueryText>concat($dvm, "&lt;/dvm>")</con2:xqueryText>
</con3:expr>
</con3:replace>
</con:actions>
</con:stage>
<con:stage name="TransformationToApplication">
<con:context>
<con1:userNsDecl prefix="msg" namespace="http://xmlns.banesco.com/EnterpriseObjects/MsgRqHdr" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
<con1:userNsDecl prefix="direct" namespace="http://Obi_Wan/EjecutaTRX" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
</con:context>
<con:actions>
<con1:replace varName="body" contents-only="true" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7de5</con2:id>
<con1:location>
<con2:xpathText>.</con2:xpathText>
</con1:location>
<con1:expr>
<con2:xqueryTransform>
<con2:resource ref="AS400NaturalCustomerInAppSvc/operations/updateCustomerData/xq/AS400NaturalCustomerInAppSvc_updateCustomerData_InputToCanonical"/>
<con2:param name="updateCustomerData_Rq1">
<con2:path>$backupBody/nat:updateCustomerData_Rq</con2:path>
</con2:param>
<con2:param name="ejecutaTRXResponse1">
<con2:path>$body/direct:EjecutaTRXResponse</con2:path>
</con2:param>
<con2:param name="ejecutaTRX1">
<con2:path>$backupTRX/direct:EjecutaTRX</con2:path>
</con2:param>
<con2:param name="dvm">
<con2:path>fn-bea:inlinedXML($dvm)</con2:path>
</con2:param>
</con2:xqueryTransform>
</con1:expr>
</con1:replace>
</con:actions>
</con:stage>
<con:stage name="ValidationApplicationResponse">
<con:context>
<con1:userNsDecl prefix="nat" namespace="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc" xmlns:con1="http://www.bea.com/wli/sb/stages/config"/>
</con:context>
<con:actions>
<con1:validate xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7de1</con2:id>
<con1:schema ref="BanescoCommonArtifacts/xsd/canonical/Services/NaturalCustomerMgmtSvc"/>
<con1:schemaElement xmlns:nat="http://xmlns.banesco.com/Service/NaturalCustomerMgmtSvc">nat:updateCustomerData_Rs</con1:schemaElement>
<con1:varName>body</con1:varName>
<con1:location>
<con2:xpathText>./nat:updateCustomerData_Rs</con2:xpathText>
</con1:location>
</con1:validate>
</con:actions>
</con:stage>
</con:pipeline>
<con:flow>
<con:pipeline-node name="InitPipeline">
<con:request>request-a7c048f.N15255722.0.157c4111c0e.N7e53</con:request>
<con:response>response-a7c048f.N15255722.0.157c4111c0e.N7e4f</con:response>
</con:pipeline-node>
<con:pipeline-node name="InAppSvcPipeline">
<con:request>request-N3f579cff.77e31d8c.0.156c73c5fb5.N7f1a</con:request>
<con:response>response-N3f579cff.77e31d8c.0.156c73c5fb5.N7f19</con:response>
</con:pipeline-node>
<con:route-node name="SocketAdapterRoute">
<con:context xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config"/>
<con:actions>
<con3:route xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config">
<con2:id>_ActionId-N3f579cff.3a5f33bd.0.156c7673296.N7ef9</con2:id>
<con3:service ref="SocketAdapterUtilMgmtSvc/proxy/SocketAdapterUtilMgmtSvc" xsi:type="ref:ProxyRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
<con3:operation>CallVBAny</con3:operation>
<con3:outboundTransform/>
<con3:responseTransform/>
</con3:route>
</con:actions>
</con:route-node>
</con:flow>
<con:shared-variables>
<con:variable>proxyName</con:variable>
<con:variable>backupHeader</con:variable>
<con:variable>backupBody</con:variable>
</con:shared-variables>
</con:router>
</con:pipelineEntry>