Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Sikaar Keita
    How to set a flow variable from a custom component
    Topic posted August 2, 2018 by Sikaar KeitaGreen Ribbon: 100+ Points, tagged Bots, Conversational AI 
    227 Views, 2 Comments
    Title:
    How to set a flow variable from a custom component
    Summary:
    Trying to set the value of a variable from a custom component and use this value later in the bot flow
    Content:

    Hi,

    I would like a custom component to populate a flow variable but can't succeed .

    The custom component is properly called and the flow works fine, but the variable is not populated , what in my usage of conversation.variable() is wrong as i thought it would populate the variable responseVar1 properly ?

    NB : I am an Oracle Employee Running IBCS on a VM

     

     

    Code Snippet:

    Comment

     

    • Marcelo Jabali

      As an Oracle employee you should use the internal mailing lists for help.

      It looks like you are setting the value to responseVar in your custom component but trying to print responseVar1 in the printData state. 

    • Frank Nimphius

      This here is wrong;

       

       getData:
          component: "DataRetrieval"
          properties:
            responseVar: "${responseVar1}

       

      Should be 

       getData:
          component: "DataRetrieval"
          properties:
            responseVar: "responseVar1" 

       

      Frank