Skip to content

Commit

Permalink
👌 IMPROVE: Update parent-pom
Browse files Browse the repository at this point in the history
  • Loading branch information
jpontdia committed Nov 2, 2023
1 parent 4b47194 commit 8ba33d7
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 28 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<parent>
<groupId>078efef1-d139-48ed-92f5-f8d4a0592374</groupId>
<artifactId>common-parent-pom</artifactId>
<version>1.0.28</version>
<version>1.0.30</version>
<relativePath/>
</parent>

<groupId>078efef1-d139-48ed-92f5-f8d4a0592374</groupId>
<artifactId>common-core</artifactId>
<version>1.0.22</version>
<version>1.0.23</version>
<packaging>mule-application</packaging>
<name>common-core</name>
<description>Shared Mule library that provides reusable flows, resources and configuration settings common for all applications</description>
Expand Down
5 changes: 4 additions & 1 deletion src/main/mule/global-configuration-salesforce.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
consumerKey="${salesforce.consumerkey}"
keyStore="${salesforce.keystore}"
storePassword="${salesforce.storepassword}"
principal="${salesforce.principal}" certificateAlias="${salesforce.certificatealias}" tokenEndpoint="${salesforce.tokenendpoint}" audienceUrl="${salesforce.audienceurl}">
principal="${salesforce.principal}"
certificateAlias="${salesforce.certificatealias}"
tokenEndpoint="${salesforce.tokenendpoint}"
audienceUrl="${salesforce.audienceurl}">
<reconnection >
<reconnect />
</reconnection>
Expand Down
51 changes: 29 additions & 22 deletions src/main/mule/global-error.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
<ee:transform doc:name="Response">
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.apikit-404}"}]]></ee:set-payload>
output application/json
---
{message: "${messages.apikit-404}"}]]>
</ee:set-payload>
</ee:message>
<ee:variables >
<ee:set-variable variableName="httpStatus" ><![CDATA[404]]></ee:set-variable>
Expand All @@ -41,9 +42,10 @@ output application/json
<ee:transform doc:name="Response" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.apikit-400}"}]]></ee:set-payload>
output application/json
---
{message: "${messages.apikit-400}"}]]>
</ee:set-payload>
</ee:message>
<ee:variables >
<ee:set-variable variableName="httpStatus" ><![CDATA[400]]></ee:set-variable>
Expand All @@ -61,9 +63,10 @@ output application/json
<ee:transform doc:name="Response" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.apikit-405}"}]]></ee:set-payload>
output application/json
---
{message: "${messages.apikit-405}"}]]>
</ee:set-payload>
</ee:message>
<ee:variables >
<ee:set-variable variableName="httpStatus" ><![CDATA[405]]></ee:set-variable>
Expand All @@ -81,9 +84,10 @@ output application/json
<ee:transform doc:name="Response" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.apikit-406}"}]]></ee:set-payload>
output application/json
---
{message: "${messages.apikit-406}"}]]>
</ee:set-payload>
</ee:message>
<ee:variables >
<ee:set-variable variableName="httpStatus" ><![CDATA[406]]></ee:set-variable>
Expand All @@ -100,9 +104,10 @@ output application/json
<ee:transform doc:name="Response" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.apikit-501}"}]]></ee:set-payload>
output application/json
---
{message: "${messages.apikit-501}"}]]>
</ee:set-payload>
</ee:message>
<ee:variables >
<ee:set-variable variableName="httpStatus" ><![CDATA[501]]></ee:set-variable>
Expand All @@ -119,9 +124,10 @@ output application/json
<ee:transform doc:name="Response" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.apikit-415}"}]]></ee:set-payload>
output application/json
---
{message: "${messages.apikit-415}"}]]>
</ee:set-payload>
</ee:message>
<ee:variables >
<ee:set-variable variableName="httpStatus" ><![CDATA[415]]></ee:set-variable>
Expand All @@ -140,10 +146,11 @@ output application/json
<ee:transform doc:name="Response" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
---
{message: "${messages.backend-error}"}
]]></ee:set-payload>
output application/json
---
{message: "${messages.backend-error}"}
]]>
</ee:set-payload>
</ee:message>
</ee:transform>
</on-error-propagate>
Expand Down
9 changes: 6 additions & 3 deletions src/main/mule/test-salesforce-endpoint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@
doc:name="Query"
config-ref="GlobalSalesforceConfig">

<salesforce:salesforce-query ><![CDATA[SELECT firstName__c, lastName__c, address__c, Id
FROM Customer__c
WHERE Id ='a018b00000z9s56AAA']]></salesforce:salesforce-query>
<salesforce:salesforce-query ><![CDATA[
SELECT firstName__c, lastName__c, address__c, Id
FROM Customer__c
WHERE Id ='a018b00000z9s56AAA'
]]>
</salesforce:salesforce-query>
</salesforce:query>
<logger level="INFO" doc:name="show payload" message="#[payload]"/>
</flow>
Expand Down

0 comments on commit 8ba33d7

Please sign in to comment.