Database product name support for DB2 for z/OS
After updating from 5.8 to 5.17 the following exception is thrown on engine startup:
Looking back in the change history of the ProcessEngineConfigurationImpl, the commit https://github.com/Activiti/Activiti/commit/424f373f986247c1cba8ba3bd3491f3d1c2d0a6b introduced constants for the six supported database types which are used for the mapping to database product names.
The DB2 constant 'db2' is used both for database product name and database type:
That is the cause of the exception, because the database product name of DB2 for z/OS is 'DB2' (upper case).
Side note: The above code line is actually added twice.
It should be changed to:
As a workaround, the database type can be configured directly as a property (ProcessEngineConfiguration.setDatabaseType(String)) of the ProcessEngineConfigurationImpl.
DB2 10 for z/OS