Community
Participate
Working Groups
CodeService.findCodeTypeById as well as CodeServiceClientProxy.findCodeTypeById works on cached data. The cache is populated incrementally, whenever a new ICodeType class is created. Hence it is not guaranteed that a code type is already part of the cache at the time the findCodeTypeById method is invoked. Proposed solution: As a side effect, the cache is populated by calling getAllCodeTypes. Hence the findCodeTypeById should first consult the cache. If the code type has been found, we are done. Otherwise the cache is populated by invoking getAllCodeTypes and the code type is searched again. This approach also copes with different languages and partitions (code type caches exist per <language, partition> pair).
implemented as proposed.
resolved as fixed...
ticket closed. deliverd as part of eclipse scout 3.8.0 (juno release train)