第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在Oracle Digital Assistant中調(diào)試自定義組件?

如何在Oracle Digital Assistant中調(diào)試自定義組件?

慕慕森 2021-03-30 10:26:37
我正在為Oracle Chatbot編寫組件,但是我不能也不知道要調(diào)試我的代碼。我的組件成功導(dǎo)入了Oracle Digital Assistant(ODA),但是我還有很多工作需要測試。我的組件:"use strict"module.exports = {    metadata: () => ({        "name": "DocumentNumber",        "properties": {            "numberDocument": { "type": "string", "required": true }        },        "supportedActions": [            "allow",            "block"        ]    }),    invoke: (conversation, done) => {        // Parse a number out of the incoming message        const text = conversation.text();        var document = "";        if (text) {            const textSize = text.length;            if (textSize < 10) {                conversation.invalidUserInput("xxxxxx");                done();                return;            } else {                document = text;            }        } else {            var errText = "xxxx";            conversation.logger().error(errText);            done(new Error(errText));            return;        }        conversation.logger().info('DocumentNumber: using numberDocumento=' + document);        var express = require('express');        var linkReturn = "";        axios.put('http://xxxxx', {            numeroDocumento: document,            filial: 0001          })          .then(function (response) {            linkReturn = response;            console.log(response);          })          .catch(function (error) {            linkReturn = "";            console.log(error);          });        // Set action based on age check        //conversation.invalidUserInput(linkReturn);        if (linkReturn !== ""){            conversation.invalidUserInput(linkReturn);            conversation.transition('allow');        } else {            conversation.invalidUserInput(response.data);            conversation.transition('block');        }        done();    }};我想知道如何調(diào)試為屬性numberDocument設(shè)置值的組件。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 174 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號