Code in Java Action gets erased during deloyment

1
Hello, I have created a microflow, in which I have a Java action component. I have written code in this action handler. Whenever I try to deploy this component, my code gets erased and the user operation fails since there is no action defined. -Amit
asked
1 answers
5

Hey Amit,

First of all Mendix Generates the java code everytime you run the app from the modeler.

In Mendix Java Actions you have comments like the following:

// BEGIN USER CODE

...your code

// END USER CODE

 

You should write all your custom methods in between those comments to ensure that they are save for the next deploy

answered