Skip to content

Commit

Permalink
👌 IMPROVE: Add balance to orchestraor 2.1.85
Browse files Browse the repository at this point in the history
  • Loading branch information
jpontdia committed Jun 20, 2024
1 parent 2176118 commit 3c38877
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>176302a0-a94d-44e9-a517-9e6dc9548d0d</groupId>
<artifactId>bcrm-etl-service-asset</artifactId>
<version>2.1.84</version>
<version>2.1.85</version>
<packaging>mule-application</packaging>
<name>bcrm-etl-service</name>
<description>BCRM ETL process for SSOT</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/mule/scheduler-tools.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
]]></ee:set-attributes>
</ee:message>
</ee:transform>
<flow-ref doc:name="call contact status" name="endpoint-etl-status" />
<flow-ref name="endpoint-etl-status" />

<!-- <logger level="INFO" category="app" message="#[output application/json - payload]" /> -->

Expand Down
36 changes: 34 additions & 2 deletions src/main/mule/scheduler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<scheduler doc:name="contact orchestrator" disallowConcurrentExecution="true">
<scheduling-strategy>
<fixed-frequency frequency="10" timeUnit="MINUTES" startDelay="1"/>
<fixed-frequency frequency="25" timeUnit="MINUTES" startDelay="1"/>
</scheduling-strategy>
</scheduler>

Expand Down Expand Up @@ -55,7 +55,7 @@
<flow name="scheduler-account">
<scheduler doc:name="account orchestrator" disallowConcurrentExecution="true">
<scheduling-strategy>
<fixed-frequency frequency="20" timeUnit="MINUTES" startDelay="5"/>
<fixed-frequency frequency="30" timeUnit="MINUTES" startDelay="6"/>
</scheduling-strategy>
</scheduler>
<logger level="INFO" category="app" message="#['Account orchestrator: The service was invoked for not implemented yet']" />
Expand Down Expand Up @@ -97,6 +97,38 @@
</when>
</choice>

<!-- Reprocess Contact and Account -->

<choice doc:name="process view account ? " >
<when expression='#[ vars.processNextView == true ]'>
<!-- Maximum 3 minutes -->
<set-variable variableName="untilMaxRetries" value="#[12]" />
<set-variable variableName="untilMillisBetweenRetries" value="#[15000]" />
<flow-ref name="set-view-contact" />
<flow-ref name="execute-orchestrator" />
</when>
</choice>

<choice doc:name="process view account ? " >
<when expression='#[ vars.processNextView == true ]'>
<!-- Maximum 3 minutes -->
<set-variable variableName="untilMaxRetries" value="#[12]" />
<set-variable variableName="untilMillisBetweenRetries" value="#[15000]" />
<flow-ref name="set-view-account" />
<flow-ref name="execute-orchestrator" />
</when>
</choice>

<choice doc:name="process view balance ? " >
<when expression='#[ vars.processNextView == true ]'>
<!-- Maximum 90 minutes -->
<set-variable variableName="untilMaxRetries" value="#[90]" />
<set-variable variableName="untilMillisBetweenRetries" value="#[60000]" />
<flow-ref name="set-view-balance" />
<flow-ref name="execute-orchestrator" />
</when>
</choice>

</flow>

</mule>

0 comments on commit 3c38877

Please sign in to comment.