cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-lingual values as a property value

steve1
Champ on-the-rise
Champ on-the-rise
I want multi-lingual values can be set as a property value in Activiti Designer.

If, for example, One specify name of the node in multi-lingual values, the same process will be shown in user's native language in design time, and also in runtime.

This is required when we design a global process, and the process name, task name and process image, etc need to be shown in user's native language.

Especially in custom node, it will be great if we can specify multi-lingual values on the property names, help messages, property items, etc.

How can I implement this feature?

Any comment will be appreciated.
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Hi,

Are you using the Activiti Explorer or another custom web application?
Because the part that needs the most work is in the UI I guess.

Best regards,

steve1
Champ on-the-rise
Champ on-the-rise
Hi,

Thank you for reply.

I'm using Activiti in my own web application as embedded.

A node name is specified in a specific language in  Activiti Designer, and that is shown in  design file and runtime process image also.

I don't understand how can it be shown in multi-lingual on UI.

Can you explain some more?

Thanks.

steve1
Champ on-the-rise
Champ on-the-rise
Hi,

As there is no way to specify multilingual value as a property value in Designer,
I think one workaround to display a runtime multilingual diagram.

1. Design a process with Activiti Designer.
2. Save mapping multilingual names per each task node in another place.
3. Extend ProcessDiagramGenerator, and replace a name property value with the specified language's name value.

Is this a right direction? Or any other way?

Your comment will be appreciated.

steve1
Champ on-the-rise
Champ on-the-rise
Hi,

I tried ResourceBundle as a mapping file, and can get runtime multilingual diagram now.

I wish this may help someone like me.

Thanks.