This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new b75ca26  Regen for commit e01f5b6fd5e6a04512c8364a22b0318ebc21f6a7
b75ca26 is described below

commit b75ca26be60c707e5259ab602177262a8c975f13
Author: orpiske <orpi...@users.noreply.github.com>
AuthorDate: Fri Sep 10 12:29:32 2021 +0000

    Regen for commit e01f5b6fd5e6a04512c8364a22b0318ebc21f6a7
    
    Signed-off-by: GitHub <nore...@github.com>
---
 .../modules/languages/pages/hl7terser-language.adoc      | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/components/modules/languages/pages/hl7terser-language.adoc 
b/docs/components/modules/languages/pages/hl7terser-language.adoc
index 21834fe..20fd2a0 100644
--- a/docs/components/modules/languages/pages/hl7terser-language.adoc
+++ b/docs/components/modules/languages/pages/hl7terser-language.adoc
@@ -140,4 +140,20 @@ from("direct:test1")
   .transform(ack())
 ----
 
+=== Custom Acknowledgement for MLLP
+
+In particural situations you may want to set a custom acknowledgement without 
using Exceptions.
+This can be achieved using the `ack` expression:
+
+[source,java]
+----
+import org.apache.camel.component.mllp.MllpConstants;
+import ca.uhn.hl7v2.AcknowledgmentCode;
+import ca.uhn.hl7v2.ErrorCode;
+
+// In process block
+exchange.setProperty(MllpConstants.MLLP_ACKNOWLEDGEMENT,
+  ack(AcknowledgmentCode.AR, "Server didn't accept this message", 
ErrorCode.UNKNOWN_KEY_IDENTIFIER).evaluate(exchange, Object.class)
+----
+
 include::{page-component-version}@camel-spring-boot::page$hl7-starter.adoc[]

Reply via email to