Translate work statuses for exporting to a SCV file.
Hello. I have an issue of exporting work items to a csv file. I have a work item's properties, such as: pyID, pyStatusWork and other custom properties.
I've solved a problem of exporting to csv, but there is a trouble with pyStatusWork property, because I get values as 'Resolved_Rejected', 'Destroyed', 'Resolved_Completed'. But want to translate it in Russian and other languages. How can I do it for a csv file? Thank you.
P.S.: Export to CSV has been written in Java using Pega Java API.
***Updated by moderator: Lochan to add Categories***
Maybe you can create field values for the status property to store language specific value for the status, and before you export use any of the pega functions like getLocalizedValue() to convert the status and then use this converted value in your java code. But this would mean you need to have a language specific localized ruleset in your appln.
Or a crude way would be is to create a decision table to map english -russian status and use it in your java code.