Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SCL-3365 Fixed: Errors on RestResourceService initialization on TTY environment

Description:

We have resolved an issue with the initialization of the RestResourceService on TTY platforms. The issue caused the service initialization to fail. Error messages seen in the AppServer logfile might have looked like this:

No Format

Error initializing Business Entity for Consultingwerk/SmartFramework/Repository/Class/SupportedInstanceObjectTypeBusinessEntity.annotations
An Progress.Lang.SysError has occurred:
** "Consultingwerk/SmartFramework/Repository/Class/SupportedInstanceObjectTypeBusinessEntity.annotations" was not found. (293)
** Cannot find or open file Consultingwerk/SmartFramework/Repository/Class/SupportedInstanceObjectTypeBusinessEntity.annotations, errno = 2. (43)

...

SCL-2417 Implemented a more user friendly way to translate the Menu

Description:

We have implemented a new way of translating menu items. Based on a translation scope defined in the .applicationsettings/.restapplicationsettings file as the MenuTranslationScope attribute the MenuBusinessEntity will now use the ITranslationProvider service to translate menu item labels based on the original text.

Code Block
languageabl

"MenuTranslationScope": "menu"

...

SCL-3318 SmartUnit now supports overloading ServiceContainer and Factory via Annotation

Description:

The SmartUnit @Test annotation on a test method now supports two new optional attributes:

Code Block
languageabl

@Test (services="path/to/services.xml", factories="path/to/factories.xml") .


Those attributes allow to specify a comma delimited list of services.xml or factories.xml files that should be loaded into an overloading service container or factory for the duration of the execution of the test method.

New Feature

SCL-3238 Scenario Runner now supports assertions based on Data Source Query and Indexes

Description:

The ScenarioRunner for scenario based unit tests ( https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094112/Scenario+based+Unit+Tests+for+Business+Entity+FetchData+read+operations ) now supports assertions on the data-source query and indexes.
The assertion on the data-source query is a single character value, resolving into the expected data-source query string.
The assertions on WholeIndex and IndexNames expect a JSON Array of boolean values (WholeIndex) or strings (IndexNames) where the entries are matching the expected data-source buffer query index properties.

Code Block
languageabl

{
    "SerializedType": "Consultingwerk.SmartUnit.OERA.RetrieveDataScenario.Scenario",
    "EntityName": "Consultingwerk.SimpleCustomerBusinessEntity.CustomerBusinessEntity",
    "EntityTables": "eCustomer",
    "BatchSize": 100,
    "StopAfter": 5,
    "QueryStrings": [
        "FOR EACH eCustomer WHERE eCustomer.CustNum = 1 or Customer.Country = \"USA\"  BY eCustomer.CustNum"
    ],
    "Assertions": [
        {
            "DataSourceQuery": "FOR EACH Customer WHERE Customer.CustNum = 1 or Customer.Country = \"USA\" BY Customer.CustNum INDEXED-REPOSITION"
        },
        {
            "WholeIndex": [false] 
        },
        {
            "IndexNames": ["CustNum,CountryPost"]
        }
    ]
}

...

SCL-3286 Added support to generate annotations for interfaces

Description:

We have ensured that the ClassAnnotationParser and the ClassAnnotationContainer can also be used to manage Annotations on Interface types.

SCL-3356 Business Entity designer now provides option to select database indexes to be used with temp-tables

Description:

We have implemented a new plugin for the Business Entity Designer. The plugin Consultingwerk,BusinessEntityDesigner.Plugins.IndexSelectionPlugin will show a dialog that allows the developer to select those indexes that should be copied from the database table schema to the temp-table when dragging a database table to the design canvas of the Business Entity Designer.
By default this plugin pre-selects tha primary unique index only. Additional indexes can be selected by the developer.

SCL-3371 Implemented Business Entity Designer Plugin to generate static names for Business Entity Fields

Description:

We have implemented a new plugin Consultingwerk.BusinessEntityDesigner.Plugins.TableAndFieldStaticClassGeneratorPlugin for the Business Entity Designer.
This plugin generates a static class with read-only properties service as Character constants with the field names of a Business Entity Temp-Table. Those field names (including the temp-table name) can be used to implement strong-typed query manipulation routines.