in serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-answer-service/src/main/resources/META-INF/resources/app.js [43:65]
function createQuery() {
const form = $('#createQueryForm');
const query = form.find('#query').val();
const processInputJson = {
"query": query
};
const processInput = JSON.stringify(processInputJson);
$.ajax({
url: "/qaservice",
type: "POST",
dataType: "json",
contentType: "application/json; charset=UTF-8",
data: processInput,
success: function (result) {
console.log(JSON.stringify(result));
form.modal('hide');
refreshQueriesTable();
},
}).fail(function () {
form.modal('hide');
showError("An error was produced during the serverless workflow instance create attempt, please check that que query-answer-service application is running.");
});
}