in serverless-workflow-examples/serverless-workflow-qas-service-showcase/query-service/src/main/resources/META-INF/resources/app.js [49:72]
function resolveQuery() {
const form = $('#resolveQueryForm');
const processInstanceId = form.find('#processInstanceId').val();
const response = form.find('#response').val();
const resolveRequestJson = {
"processInstanceId": processInstanceId,
"queryResponse": response
}
const resolveRequest = JSON.stringify(resolveRequestJson);
$.ajax({
url: "/query-service/resolveQuery",
type: "POST",
dataType: "json",
contentType: "application/json; charset=UTF-8",
data: resolveRequest,
success: function () {
form.modal('hide');
refreshPendingQueriesTable();
},
}).fail(function () {
form.modal('hide');
showError("An error was produced during the query response sending, please check that the query-service application is running.");
});
}