Classe java

I have a flow that some tasks it sends emails through a java class, but now I need to change the text of the email that is in the class, how do I make the processes already started use this changed text, because if you create a new version only the processes new ones will go with the new text

Java classes are not versioned - if you change the class and deploy it. All versions will share the same java class.

So I did the following I changed the class I compiled the code and the generated .class file was placed on the server where the process was deployed replacing this file, it worked perfectly.