Localization of processes

Hi,

I’ve recently discovered that the engine has some support for localization of user tasks (Localization of user task texts) and also that it supports a custom TaskLocalizationManager by providing the property internalTaskLocalizationManager for the ProcessEngineConfiguration.
This is a very important feature for me because I don’t want to provide translations directly in the BPMN model since they change very frequently.

On the other hand, I’ve noticed that process instances are also localized but the engine is only supporting translations directly in the BPMN. There is no support for a custom LocalizationManager for process instances.
I’ve also discovered that there is no support for translations when querying for process definitions. Both the ProcessDefinitionQuery and ProcessDefinition classes are not yet ready for localization: they’re missing the .locale(), setLocalizedName(), setLocalizedDescription(), getLocalizedName(), getLocalizedDescription().

Is this a known problem ? Do you consider it something that would be welcomed in the Engine?
I’m open to make a pull request to add this feature, by applying the same logic that was added to the tasks service.

Thank you,
David.

2 Likes

It is. The feature as it currently is indeed limited to models only and it hasn’t been brought to other API’s as you mention.

PR’s are always appreciated, that would be awesome!

Hi,

I have made a pull request into your repository to add this functionality: https://github.com/flowable/flowable-engine/pull/2049

Let me know if there’s anything that needs to be changed.

Thank you,
David.