-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: additional message to retrieve paymentId from reference
- Loading branch information
1 parent
35c4aa3
commit f7f7d8d
Showing
5 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/main/configurations/bpel/Bpel/Payment/Model/LookUpPaymentsMessage.xslt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<xsl:stylesheet exclude-result-prefixes="xs xsl zgw" version="3.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:zgw="http://google.com/zgw" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:payment="http://www.emaxx.org/functional/cases/payment" | ||
xmlns:payments="http://www.emaxx.org/functional/cases/payments" | ||
> | ||
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" exclude-result-prefixes="xsi"/> | ||
<xsl:include href="../../BpelFunctionsBase.xslt" /> | ||
|
||
<!-- Map --> | ||
|
||
<!-- Create/Enrich --> | ||
<xsl:param name="LookUpPaymentsMessage" as="node()"><payments:lookUpPayments /></xsl:param> | ||
|
||
<xsl:param name="Id" select="''" as="xs:string" /> | ||
<xsl:param name="Id_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="CaseId" select="''" as="xs:string" /> | ||
<xsl:param name="CaseId_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="ReferenceNumber" select="''" as="xs:string" /> | ||
<xsl:param name="ReferenceNumber_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="Description" select="''" as="xs:string" /> | ||
<xsl:param name="Description_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="Price" select="''" as="xs:string" /> | ||
<xsl:param name="Price_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="SetDate" select="''" as="xs:string" /> | ||
<xsl:param name="SetDate_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="EndDate" select="''" as="xs:string" /> | ||
<xsl:param name="EndDate_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="ExtReferenceNumber" select="''" as="xs:string" /> | ||
<xsl:param name="ExtReferenceNumber_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="ExtSystem_Code" select="''" as="xs:string" /> | ||
<xsl:param name="ExtSystem_Code_Operator" select="'EQUAL'" as="xs:string" /> | ||
<xsl:param name="ExtSystem_Description" select="''" as="xs:string" /> | ||
<xsl:param name="ExtSystem_Description_Operator" select="'EQUAL'" as="xs:string" /> | ||
|
||
<xsl:template match="/"> | ||
<payments:lookUpPayments> | ||
<payment:paymentSearchMessage> | ||
<payment:referenceNumber operator="EQUAL"> | ||
<xsl:copy-of select="zgw:FromOrderedSource( | ||
$ReferenceNumber, | ||
$LookUpPaymentsMessage//payment:referenceNumber, | ||
'', | ||
//payment:referenceNumber)"/> | ||
</payment:referenceNumber> | ||
</payment:paymentSearchMessage> | ||
</payments:lookUpPayments> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/main/configurations/bpel/Configuration_Bpel_Payment_PostLookUpPayments.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd"> | ||
<Adapter | ||
name="Bpel_Payment_PostLookUpPayments" | ||
active="${Bpel_Payment_PostLookUpPayments.Active}" | ||
description="" | ||
> | ||
|
||
<Receiver name="Bpel_Payment_PostLookUpPayments"> | ||
<JavaListener name="Bpel_Payment_PostLookUpPayments" /> | ||
</Receiver> | ||
|
||
<Pipeline> | ||
<Exits> | ||
<Exit name="EXIT" state="SUCCESS" /> | ||
<Exit name="EXCEPTION" state="ERROR" /> | ||
</Exits> | ||
|
||
<SenderPipe | ||
name="PostBpelPaymentLookUpPaymentsSender" | ||
> | ||
<SoapInputWrapper | ||
direction="WRAP" | ||
soapHeaderStyleSheet="Bpel/Documents/Model/Security.xslt" | ||
> | ||
<Param name="Username" pattern="{username}@MidOffice" authAlias="${openforms2bpel.bpel.basic-service.authAlias}" /> | ||
<Param name="Password" pattern="{password}" authAlias="${openforms2bpel.bpel.basic-service.authAlias}" hidden="true"/> | ||
<Param name="Created" xpathExpression="string($NowDateTime)" > | ||
<Param name="NowDateTime" pattern="{now}" type="DATETIME" /> | ||
</Param> | ||
</SoapInputWrapper> | ||
<WebServiceSender | ||
name="PostBpelPaymentLookUpPaymentsWebServiceSender" | ||
soap="false" | ||
methodType="POST" | ||
contentType="text/xml" | ||
soapAction="payments:lookUpPayments" | ||
verifyHostname="${openforms2bpel.bpel.payment-service.verify-hostname}" | ||
allowSelfSignedCertificates="${openforms2bpel.bpel.payment-service.allow-self-signed-certs}" | ||
ignoreCertificateExpiredException="${openforms2bpel.bpel.payment-service.ignore-expired-certs}" | ||
timeout="${openforms2bpel.bpel.payment-service.timeout}" | ||
throwApplicationFaults="false" | ||
> | ||
<Param name="url" value="${openforms2bpel.bpel.payment-service.endoint}" /> | ||
</WebServiceSender> | ||
<Forward name="success" path="UnwrapResponse" /> | ||
<Forward name="exception" path="EXCEPTION" /> | ||
</SenderPipe> | ||
|
||
<SoapWrapperPipe | ||
name="UnwrapResponse" | ||
direction="UNWRAP" | ||
/> | ||
|
||
<!-- TODO: Error handling based on http code --> | ||
|
||
</Pipeline> | ||
</Adapter> | ||
</Module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters