Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Ameur Baccoucha
    System.ConditionExists Component
    Topic posted August 9, 2018 by Ameur BaccouchaGold Medal: 3,500+ Points, tagged Bots, OMCE 
    55 Views, 2 Comments
    Title:
    System.ConditionExists Component
    Summary:
    I am asking why this built-in component always pass to the exists action.
    Content:

    Here how i use it :

    conditionExists:
        component: "System.ConditionExists"
        properties:
          variable: "destinDate"
        transitions:
          actions:
            exists: "done"
            notexists: "askForTripType"

    Always it take the action of exists wich is "done"  here. this is my payload where the "destinDate"  variable is null but the component act like it's not. 

    "destinAir":"MIR",
    "user.botsUserError":false,
    "profile.locale":"fr-FR",
    "destinDate":null,
    "profile.timezoneOffset":-7200000,
    "tripType":null,
    "profile.firstName":"Ameur",
    "departAir":"CDG",
    "departDate":{  
       "date":1534582854109,
       "entityName":"DATE",
       "originalString":"08/18/2018"
    },
    "system.processedUserMessage":true
    },
    "currentDialogState":"done"

    Any idea please :( 

    Comment