diff --git a/src/main/java/com/exactpro/th2/FixHandler.java b/src/main/java/com/exactpro/th2/FixHandler.java index dcf77bf..e31251e 100644 --- a/src/main/java/com/exactpro/th2/FixHandler.java +++ b/src/main/java/com/exactpro/th2/FixHandler.java @@ -1336,6 +1336,10 @@ private Map transformProcessor( if(transformation.getUpdateChecksum()) { updateChecksum(message); } + + if(transformation.getComment() != null) { + metadata.put("transformationComment", transformation.getComment()); + } return Unit.INSTANCE; } ); diff --git a/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/brokenconn/configuration/TransformMessageConfiguration.kt b/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/brokenconn/configuration/TransformMessageConfiguration.kt index 31e0ab6..27314d6 100644 --- a/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/brokenconn/configuration/TransformMessageConfiguration.kt +++ b/src/main/kotlin/com/exactpro/th2/conn/dirty/fix/brokenconn/configuration/TransformMessageConfiguration.kt @@ -46,7 +46,8 @@ data class TransformationConfiguration( val passwordKeyEncryptAlgorithm: String? = null, val passwordEncryptAlgorithm: String? = null, val encryptKey: String? = null, - val updateChecksum: Boolean = true + val updateChecksum: Boolean = true, + val comment: String? = null ) { private val simpleActions: List init {