Interviews, Languages and URL Arguments
The other day I was part of a discussion regarding the launch of Interviews. A couple of questions arose that formed the basis for an interesting discussion.
The details are not really important, but the basic thread was
- How can we be sure to launch an Interview in a specific language?
- How can we pass information into an Interview in respect of the language of the user?
Of course these two questions can be synthesised further to :
- What are the ways to find out what language the user is using?
- How do I pass seed information in the URL?
What language are you using?
Suppose we want to pass that information to Oracle Policy Automation?
Let’s get down to basics.
In the image above :
- Whenever a Project is launched from a button, we can add the correct locale information to the URL to ensure it is launched correctly. So in the silly example above, there are two buttons. One uses”fr-FR”, the other “en-US”.
- This information is appended to the root URL via the ClickMe (mypath) function.
In the Interview itself, we can recover the information using the URL Argument feature in our mapped Project:
Of course the attribute can now be used in our Interview or our rules, should we need to display or leverage this information:
This little set of examples does illustrate that Oracle Policy Modelling could really do with some functions to at least allow the rule designer to capture the locale of the user (which language did they choose to view my interview in, so to speak).