1
0
-1

Hi there,

I use next code to get an envrironment value :

AppDefinition appDef = (AppDefinition) getProperty("appDefinition");
ApplicationContext appContext = AppUtil.getApplicationContext();
EnvironmentVariableDao environmentVariableDao = (EnvironmentVariableDao) appContext.getBean("environmentVariableDao");
EnvironmentVariable archiveRepository = environmentVariableDao.loadById("archiveRepository", appDef);

I have 2 versions of my App on my computer (version 1 and 2). When version 2 is published I get the variable of my unpublished version 1 ...

Any idea of what could it be ?

Cheers,

Matthieu.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0
       

      I got it fixed doing this :

       
      public Object execute(Map props) {
      ...
      AppDefinition appDef = (AppDefinition) props.get("appDef");
       
        CommentAdd your comment...