Oracle Magazine, May/June 2018
Mobile APPLICATION DEVELOPER CR component property Description cards The cards property defines the configuration of a single card Multiple cards can be configured in BotML or as in this example generated from content in an iterator title This property is the title of a card pizzaMenu name references the current item in an iterator and reads the name attribute ORACLE MAGAZINE MAY JUNE 2018 59 from it iteratorVariable This property references the pizzaMenu variable which is an array of objects For each entry in the array the cards section prints a card rangeStart This property references the cardsRangestart variable to indicate to the CR component where in the iterator it should start printing the cards rangeSize This property defines how many cards should be printed starting from the rangeStart index actions This property defines an action for each individual card In this example the action is a postback that sets the pizzaType variables value to the name of the selected pizza In addition it returns order as an action to prompt the dialogue flow to navigate to the askSize state processUserMessage If set to true this property ensures that the component will wait for and handle user input transitions This section defines where in a conversation the dialogue flow engine transitions to based on the user interaction in the component As you see an action of order issued when the Order button is clicked leads the navigation to the askSize state
You must have JavaScript enabled to view digital editions.