Skip to content

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

@sanagaraj-pivotal

Description

@sanagaraj-pivotal

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 */
                };
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions