Skip to content

Commit

Permalink
👌 IMPROVE: Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
jpontdia committed Apr 2, 2024
1 parent 0d68f6d commit 543b03f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>176302a0-a94d-44e9-a517-9e6dc9548d0d</groupId>
<artifactId>bcrm-etl-service-asset</artifactId>
<version>1.0.11</version>
<version>1.0.12-snapshot</version>
<packaging>mule-application</packaging>

<name>bcrm-etl-service</name>
Expand Down
21 changes: 18 additions & 3 deletions src/main/mule/tools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@
<flow-ref name="response"/>
</sub-flow>




<!-- ********************************************* -->
<!-- Sql Server read/write -->
<!-- Sql Server operations -->
<!-- ********************************************* -->
<sub-flow name="mssql-query">

<sub-flow name="mssql-query">

<logger doc:name="sql query" level="INFO" category="app"
message="#[output application/java --- vars.query]"/>
Expand Down Expand Up @@ -110,6 +114,13 @@
message="#[${file::script-records-found.dwl}]"/>
</sub-flow>




<!-- ********************************************* -->
<!-- HTTP request utilities -->
<!-- ********************************************* -->

<flow name="http-post">
<logger doc:name="call post method" level="INFO" category="app"
message='#[ "Call POST method, path: " ++ vars.servicePath ++ ", statusValidator: " ++ (vars.statusValidator as String) ]' />
Expand Down Expand Up @@ -142,7 +153,11 @@
</error-handler>
</flow>

<sub-flow name="send-api">
<!-- ********************************************* -->
<!-- Common flows -->
<!-- ********************************************* -->

<sub-flow name="send-api">
<flow-ref name="http-post"/>

<choice doc:name="verify http call" >
Expand Down

0 comments on commit 543b03f

Please sign in to comment.