Just a short blogpost describing a solution that I needed for the bot that I’m currently developing. This bot has a typical requirement doing different things during office hours and after closing time. As such I need to know when the user is invoking the bot. Here’s how I ended up doing this.
What time is it?
The developer guide has a section on how to use Built-In FreeMarker Date Operations (see resources below). That is a very resource. I started with using the ‘now’ variable, combined with date time. That should return me exactly what I want.
So in oBotML that looks like:
Unfortunately when I use ‘now’ to get access to the date-time, it will return the date-time of the server that hosts the actual Bot. This means I cannot use that date-time because it is not the correct date/time of the user’s location. After doing a bit of research, I found that the profile property enables your bot to recognise a user’s name, local, and local time. Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.