spring-attic / spring-integration-dsl-groovy

Groovy DSL for Spring Integration
Apache License 2.0
56 stars 40 forks source link

IntegrationContext.getMessageFlowByName() always returns the first flow #15

Closed skoolkid closed 8 years ago

skoolkid commented 8 years ago

IntegrationContext.getMessageFlowByName() always returns the first flow instead of the named flow.

The problem is the method implementation:

messageFlows.find {it.name = name}

It should be:

messageFlows.find {it.name == name}
artembilan commented 8 years ago

Thank you for pointing that out! Have been fixed and pushed to the master.