Using the RAW command in Apache FreeMarker Expressions As A Life Saver by Frank Nimphius

imageOften the unexpected is the best teacher. While participating in a team effort to build a digital assistant, one of my skills failed after adding a component developed by one of my peer developers.

The error message was pretty clear and reported my standard error handler as the dialog flow state the error happens. Apparently, the user message my standard error handler passes to a custom component contained invalid characters.

If you look at the error message, you can see that the last user message is actually a JSON payload, not a string. The JSON payload actually contained a lot of double quotes, which actually seems to confuse the BotML. Don’t ask me how the JSON payload got in, but this also is what made it unexpected.

On my journey to find a fix, I came a cross a specific Apache FreeMarker expression that does not try to understand the message it passes but treat it as a raw payload. The dialog flow state below shows the original dialog flow definition. As you see for the Last user message property, it accessed the last user input and passed it to the custom component. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.