Skip to content

Commit

Permalink
transformationComment
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Plotnikov committed Oct 26, 2023
1 parent 737560d commit f700ec6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,10 @@ private Map<String, String> transformProcessor(
if(transformation.getUpdateChecksum()) {
updateChecksum(message);
}

if(transformation.getComment() != null) {
metadata.put("transformationComment", transformation.getComment());
}
return Unit.INSTANCE;
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Action>
init {
Expand Down

0 comments on commit f700ec6

Please sign in to comment.