Cómo puedo crear un archivo Properties y usar las variables cradas en el en un proyecto Enterprise?
how to create a properties file and use the variables with an Enterprise project?
Puedes seguir los siguientes pasos
Crear la carpeta WebContent en el proyecto Enterprise
Dentro de la carpeta crear una carpeta con el nombre del proyecto enterprise seguido de _ROOT.jar pe: testEnterprise_ROOT.jar
En esta carpeta crear el archivo WebRatio.properties
mivariable=23
Crear las variables deseadas en el archivo
crear una página
Crear un view component
Crear un message component el que mostrará el valor de la variable
crear un script component
#input variableEntrada
#output variable
System.out.println("mivariable "+variableEntrada)
return ["variable": variableEntrada]
Enlazar con flows y configurar los bindings
Follow the next steps:
Create the WebContent folder into Enterprise project
Into the folder you have to create a folder with project name followed by _ROOT.jar pe: testEnterprise_ROOT.jar
Into this folder create the WebRatio.properties folder
myvariable=23
You can create as many variables as necessary
Create a page
Create a view component
Create a message component to show the variable value
Create a script component
System.out.println("myvariable "+variableEntrada)
Match the flows y set the bindings