Skip to content

Add wildcard for contextKey#9777

Merged
nielsm5 merged 3 commits intomasterfrom
feature/9755_ParamAllContextKeys
Oct 17, 2025
Merged

Add wildcard for contextKey#9777
nielsm5 merged 3 commits intomasterfrom
feature/9755_ParamAllContextKeys

Conversation

@tnleeuw
Copy link
Contributor

@tnleeuw tnleeuw commented Oct 16, 2025

Closes #9755

@tnleeuw tnleeuw self-assigned this Oct 16, 2025
Copy link
Member

@nielsm5 nielsm5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je laat nu de parameter het al vertalen naar een formaat, maar je zou ook kunnen stellen dat de XsltSender en DataSonnetPipe een Map object moeten kunnen omzetten? Dan ga je wel mogelijk rare messages krijgen, dus zeer waarschijnlijk een enorm slecht idee dit...

@tnleeuw tnleeuw marked this pull request as ready for review October 16, 2025 16:01
@tnleeuw tnleeuw requested review from evandongen and nielsm5 October 16, 2025 16:01
@tnleeuw
Copy link
Contributor Author

tnleeuw commented Oct 16, 2025

Je laat nu de parameter het al vertalen naar een formaat, maar je zou ook kunnen stellen dat de XsltSender en DataSonnetPipe een Map object moeten kunnen omzetten? Dan ga je wel mogelijk rare messages krijgen, dus zeer waarschijnlijk een enorm slecht idee dit...

Het lijkt me dat het erg "messy" gaat worden als we een java.util.Map instance aanbieden. En zelfs van een parameter van type MAP wordt nu een XML gemaakt.
Dus dit leek mij het beste -- Default XML, en JSON als dat wenselijk lijkt.

Copy link
Contributor

@evandongen evandongen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 opmerking, verder akkoord!

} else {
Message sourceMsg = Message.asMessage(sourceObject);
if (StringUtils.isNotEmpty(getContextKey())) {
if ("*".equals(getContextKey())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kan je hier een constant van maken die beschrijft wat het betekent?

@@ -490,9 +496,74 @@ public Object getValue(ParameterValueList alreadyResolvedParameters, Message mes
return result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pff, wat een method is dit zeg.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja, vreselijk. Ik probeer af en toe om er langzamerhand iets beters van te maken, maar dat is lastig. Misschien in een volgende change, wanneer we value-methods gaan aanpakken (#1242)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@sonarqubecloud
Copy link

@nielsm5 nielsm5 merged commit 2294ee1 into master Oct 17, 2025
32 checks passed
@nielsm5 nielsm5 deleted the feature/9755_ParamAllContextKeys branch October 17, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to easily use any contextkey in transformers

3 participants