blob: b84253b6048f02f4b2451b96639078092706fcfb [file] [log] [blame]
[[stop-eip]]
= Stop EIP
:page-source: core/camel-core-engine/src/main/docs/eips/stop-eip.adoc
The Stop EIP stops the processing of the current message
== Options
// eip options: START
The Stop EIP has no options.
// eip options: END
== Examples
[source,java]
----
from("direct:start")
.choice()
.when(body().contains("Hello")).to("mock:hello")
.when(body().contains("Bye")).to("mock:bye").stop()
.otherwise().to("mock:other")
.end()
.to("mock:result");
----