Introduction of the new iteratorExpression property for the System.CommonResponse component in ODA 21.10 by Frank Nimphius

image

A long-awaited feature made it earlier in Oracle Digital Assistant 21.10. Starting with Oracle Digital Assistant 21.10, the System.CommonResponse component has a new iteratorExpression property that enables the component to display values from arrays stored in a nested object as would be returned from a REST service call. This article explains how to work with this new feature.

The problem solved by the new iteratorExpression

The System.CommonResponse component in Oracle Digital Assistant can loop through arrays to print multiple message responses or dynamically generate action items based on the content in that array.

A limitation of this functionality in versions prior to Oracle Digital Assistant 21.10 was that the array had to be a top-level element of a variable. In other words, the iterator required a variable reference added to its iteratorVariable property, which often required developers to copy the content of a REST service result set into a variable before the contents could be displayed in a list. With the iteratorExpression property, this intermediate step is no longer required.

How to use the iteratorExpression

The sample code below creates an object with a property items holding an aarray for employee names and employee Id. The variable mocksup a result set returned from a REST call. 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

Advertisement

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 )

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.