Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mule: support <transactional /> component in mule #138

Closed
sanagaraj-pivotal opened this issue May 29, 2022 · 0 comments
Closed

Mule: support <transactional /> component in mule #138

sanagaraj-pivotal opened this issue May 29, 2022 · 0 comments
Labels
type: enhancement New feature or request
Milestone

Comments

@sanagaraj-pivotal
Copy link
Contributor

sanagaraj-pivotal commented May 29, 2022

What needs to be done

Transactional syntax in mule is as follows:

Mule template

<flow name="exampleFlow">
   <transactional action="..." >
     Mule Flow Statement 1
     Mule Flow Statement 2
     .....
      Mule Flow Statement n
   </transactional>
</flow>

Flow Mule Flow Statement 1.. n are in a transactional block, this transactions component needs to be converted into DSL template as below:

DSL translation template

    @Bean
    IntegrationFlow exampleFlow(IntegrationFlow exampleFlowTransaction_1) {
        return IntegrationFlows.from(....)
                .gateway(exampleFlowTransaction_1, e -> e.transactional(true))
                ....
                .get();
    }

    @Bean
    IntegrationFlow exampleFlowTransaction_1() {
        return f -> { f
                 ./* Java DSL translation of Mule Flow Statement 1 */
                 ./* Java DSL translation of Mule Flow Statement 2 */
                 //......
                ./* Java DSL translation of Mule Flow Statement n */
                };
    }
@fabapp2 fabapp2 closed this as completed in e7fe085 Jun 7, 2022
@fabapp2 fabapp2 added this to the v0.12.0 milestone Sep 20, 2022
@fabapp2 fabapp2 added the type: enhancement New feature or request label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants