spring-projects / spring-projects/spring-integration

Add templating support to ObjectToStringTransformer [INT-1036]

Open
#5,031 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: core type: enhancement
Dominant language
Java
Stars
1.6k
Forks
1.2k
Avg merge
17h 48m
Merged PRs (30d)
62

Description

Keith Donald opened INT-1036 and commented

As a user I'd like the ability to reference a template to use to generate the transformed String, where the model for the template would be the payload.

Example usage:

<object-to-string-transformer input-channel="newAppointmentsChannel" template="classpath:templates/new-appointment-email.st" output-channel="doctorEmailChannel" />	

Code attached using foundational bits in SPR-6987.


Affects: 2.0 M2

Attachments:

Issue Links:

  • SPR-6987 String Template support
    ("depends on")
  • #7771 Consider Adding a Freemarker Transformer

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached ObjectToStringTransformer.java and compare the requested template behavior with the foundational String Template support in SPR-6987. Review issue #7771 for related transformer scope, then identify the current implementation and tests before defining completion criteria for template-based string transformation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.